s3:libsmbclient: Use const for setting and getting strings
[metze/samba/wip.git] / source3 / include / libsmbclient.h
index 426ed3cb6a151d53d4c0eda073bee3a87bc4d67a..ca5c7f87f71a3b121e20afbd7f06f7052e6ff36a 100644 (file)
@@ -537,22 +537,22 @@ int
 smbc_setConfiguration(SMBCCTX *c, const char *file);
 
 /** Get the netbios name used for making connections */
-char *
+const char *
 smbc_getNetbiosName(SMBCCTX *c);
 
 /** Set the netbios name used for making connections */
 void
-smbc_setNetbiosName(SMBCCTX *c, char * netbios_name);
+smbc_setNetbiosName(SMBCCTX *c, const char *netbios_name);
 
 /** Get the workgroup used for making connections */
-char *
+const char *
 smbc_getWorkgroup(SMBCCTX *c);
 
 /** Set the workgroup used for making connections */
-void smbc_setWorkgroup(SMBCCTX *c, char * workgroup);
+void smbc_setWorkgroup(SMBCCTX *c, const char *workgroup);
 
 /** Get the username used for making connections */
-char *
+const char *
 smbc_getUser(SMBCCTX *c);
 
 /** Set the username used for making connections */