Remove use of deprecated function
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>
Sun, 2 Mar 2008 21:21:48 +0000 (16:21 -0500)
committerDerrell Lipman <derrell.lipman@unwireduniverse.com>
Sun, 2 Mar 2008 21:21:48 +0000 (16:21 -0500)
(This used to be commit 93580bce833453ba512ee436d6dfdbdcd2c53777)

examples/libsmbclient/smbwrapper/smbw.c
examples/libsmbclient/testacl.c
examples/libsmbclient/testacl2.c
examples/libsmbclient/testacl3.c
examples/libsmbclient/testbrowse.c

index d3439e436dda1dea30e9a0f5a96d9e88e14502d4..e2e44c1f0f47be0707828614584a92262f3b2d26 100644 (file)
@@ -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");
index 51cc90f1015e34289aa4574930448ecade2cd2f7..00e1c2c9da9c838cee7ba9b73900aada4cd4b45f 100644 (file)
@@ -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 */
index df38fe208edc7d25a610cd0dc2d90cd9cf59f191..d2a97cf2d21acf6be89a5e7b3b8e43374b489518 100644 (file)
@@ -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));
index 91024056597a8f22d1fa4e1c34476a5154f8edfa..4ef6e80a7bd626c24f3a1de7ccdc134953647ccd 100644 (file)
@@ -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 (;;)
     {
index 1b0b54f9f029d0a17427bc2664fbfb464fbd4745..c4ca6667e01a9cc4dd1381608b815f9f03f8446a 100644 (file)
@@ -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");