summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-04-02 17:04:33 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-04-02 17:04:33 +0000
commit494f339ca8c726e1c91ce95c61eae2cb765c35b5 (patch)
tree4d48d73e4d0ecfbfb1279f0fb791275743bf2368 /source3/include
parent35d546ecd1efee9b5284cdbb9680363223d34a6d (diff)
downloadsamba-494f339ca8c726e1c91ce95c61eae2cb765c35b5.tar.gz
samba-494f339ca8c726e1c91ce95c61eae2cb765c35b5.tar.bz2
samba-494f339ca8c726e1c91ce95c61eae2cb765c35b5.zip
Add const (from a patch by Stephan Kulow <coolo@kde.org>)
(This used to be commit 8b5ad24231e5001e612c5fd4bbde2762caef5856)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/libsmbclient.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/include/libsmbclient.h b/source3/include/libsmbclient.h
index 0c905edcbc..a9f83cfbd3 100644
--- a/source3/include/libsmbclient.h
+++ b/source3/include/libsmbclient.h
@@ -257,8 +257,8 @@ typedef int (*smbc_remove_unused_server_fn)(SMBCCTX * c, SMBCSRV *srv);
*
*/
typedef int (*smbc_add_cached_srv_fn) (SMBCCTX * c, SMBCSRV *srv,
- char * server, char * share,
- char * workgroup, char * username);
+ const char * server, const char * share,
+ const char * workgroup, const char * username);
/**@ingroup callback
@@ -277,8 +277,9 @@ typedef int (*smbc_add_cached_srv_fn) (SMBCCTX * c, SMBCSRV *srv,
* @return pointer to SMBCSRV on success. NULL on failure.
*
*/
-typedef SMBCSRV * (*smbc_get_cached_srv_fn) (SMBCCTX * c, char * server,
- char * share, char * workgroup, char * username);
+typedef SMBCSRV * (*smbc_get_cached_srv_fn) (SMBCCTX * c, const char * server,
+ const char * share, const char * workgroup,
+ const char * username);
/**@ingroup callback