summaryrefslogtreecommitdiff
path: root/examples/libsmbclient
diff options
context:
space:
mode:
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>2008-03-02 16:21:48 -0500
committerKarolin Seeger <ks@sernet.de>2008-03-04 09:02:00 +0100
commit0621dfe10f1fd3d8ce04a039d2d44d6c67407746 (patch)
tree02d68fe44caaa61e24097542642f14d196328b74 /examples/libsmbclient
parent8bf707c13794539029be2229f0c587b713b4fd20 (diff)
downloadsamba-0621dfe10f1fd3d8ce04a039d2d44d6c67407746.tar.gz
Remove use of deprecated function
(cherry picked from commit 93580bce833453ba512ee436d6dfdbdcd2c53777)
Diffstat (limited to 'examples/libsmbclient')
-rw-r--r--examples/libsmbclient/smbwrapper/smbw.c6
-rw-r--r--examples/libsmbclient/testacl.c2
-rw-r--r--examples/libsmbclient/testacl2.c2
-rw-r--r--examples/libsmbclient/testacl3.c2
-rw-r--r--examples/libsmbclient/testbrowse.c4
5 files changed, 8 insertions, 8 deletions
diff --git a/examples/libsmbclient/smbwrapper/smbw.c b/examples/libsmbclient/smbwrapper/smbw.c
index d3439e436dd..e2e44c1f0f4 100644
--- a/examples/libsmbclient/smbwrapper/smbw.c
+++ b/examples/libsmbclient/smbwrapper/smbw.c
@@ -176,9 +176,9 @@ static void do_init(StartupType startupType)
smbc_setDebug(smbw_ctx, debug_level);
smbc_setFunctionAuthData(smbw_ctx, get_auth_data_fn);
- smbc_option_set(smbw_ctx, "browse_max_lmb_count", 0);
- smbc_option_set(smbw_ctx, "urlencode_readdir_entries", 1);
- smbc_option_set(smbw_ctx, "one_share_per_server", 1);
+ smbc_setOptionBrowseMaxLmbCount(smbw_ctx, 0);
+ smbc_setOptionUrlEncodeReaddirEntries(smbw_ctx, 1);
+ smbc_setOptionOneSharePerServer(smbw_ctx, 1);
if (smbc_init_context(smbw_ctx) == NULL) {
fprintf(stderr, "Could not initialize context.\n");
diff --git a/examples/libsmbclient/testacl.c b/examples/libsmbclient/testacl.c
index 51cc90f1015..00e1c2c9da9 100644
--- a/examples/libsmbclient/testacl.c
+++ b/examples/libsmbclient/testacl.c
@@ -143,7 +143,7 @@ int main(int argc, const char *argv[])
if (full_time_names) {
SMBCCTX *context = smbc_set_context(NULL);
- smbc_option_set(context, "full_time_names", 1);
+ smbc_setOptionFullTimeNames(context, 1);
}
/* Perform requested action */
diff --git a/examples/libsmbclient/testacl2.c b/examples/libsmbclient/testacl2.c
index df38fe208ed..d2a97cf2d21 100644
--- a/examples/libsmbclient/testacl2.c
+++ b/examples/libsmbclient/testacl2.c
@@ -39,7 +39,7 @@ int main(int argc, const char *argv[])
}
SMBCCTX *context = smbc_set_context(NULL);
- smbc_option_set(context, "full_time_names", 1);
+ smbc_setOptionFullTimeNames(context, 1);
the_acl = strdup("system.nt_sec_desc.*");
ret = smbc_getxattr(argv[1], the_acl, value, sizeof(value));
diff --git a/examples/libsmbclient/testacl3.c b/examples/libsmbclient/testacl3.c
index 91024056597..4ef6e80a7bd 100644
--- a/examples/libsmbclient/testacl3.c
+++ b/examples/libsmbclient/testacl3.c
@@ -28,7 +28,7 @@ int main(int argc, char * argv[])
smbc_init(get_auth_data_fn, debug);
context = smbc_set_context(NULL);
- smbc_option_set(context, "full_time_names", 1);
+ smbc_setOptionFullTimeNames(context, 1);
for (;;)
{
diff --git a/examples/libsmbclient/testbrowse.c b/examples/libsmbclient/testbrowse.c
index 1b0b54f9f02..c4ca6667e01 100644
--- a/examples/libsmbclient/testbrowse.c
+++ b/examples/libsmbclient/testbrowse.c
@@ -120,7 +120,7 @@ main(int argc, char * argv[])
/* If we've been asked to log to stderr instead of stdout, ... */
if (debug_stderr) {
/* ... then set the option to do so */
- smbc_option_set(context, "debug_to_stderr", 1);
+ smbc_setOptionDebugToStderr(context, 1);
}
/* Initialize the context using the previously specified options */
@@ -196,7 +196,7 @@ get_auth_data_with_context_fn(SMBCCTX * context,
{
printf("Authenticating with context 0x%lx", context);
if (context != NULL) {
- char *user_data = smbc_option_get(context, "user_data");
+ char *user_data = smbc_getOptionUserData(context);
printf(" with user data %s", user_data);
}
printf("\n");