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");
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 */
}
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));
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 (;;)
{
/* 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 */
{
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");