summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>2008-03-01 20:44:21 -0500
committerDerrell Lipman <derrell.lipman@unwireduniverse.com>2008-03-01 20:47:22 -0500
commit64b7150d92849a1e1e2416b9dcc12fae8d6bea99 (patch)
treeb7c4efa3dfd1d658d421dd08f5bac0eec08bea31 /examples
parent56429a3d60b2a48963342f6340b3c01469a892c6 (diff)
downloadsamba-64b7150d92849a1e1e2416b9dcc12fae8d6bea99.tar.gz
Additional revamped libsmbclient documentation
- Ensured that all public functions have documentation in libsmbclient.h - Reformatted for "proper" indentation - Re-added temporarily-disabled alternate authentication function capability Derrell
Diffstat (limited to 'examples')
-rw-r--r--examples/libsmbclient/testbrowse.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/examples/libsmbclient/testbrowse.c b/examples/libsmbclient/testbrowse.c
index 495cf0fbec0..1b0b54f9f02 100644
--- a/examples/libsmbclient/testbrowse.c
+++ b/examples/libsmbclient/testbrowse.c
@@ -109,22 +109,13 @@ main(int argc, char * argv[])
/* Set mandatory options (is that a contradiction in terms?) */
smbc_setDebug(context, debug);
-#if 0
if (context_auth) {
- context->callbacks.auth_fn = NULL;
- smbc_option_set(context,
- "auth_function",
- (void *) get_auth_data_with_context_fn);
- smbc_option_set(context, "user_data", "hello world");
+ smbc_setFunctionAuthDataWithContext(context,
+ get_auth_data_with_context_fn);
+ smbc_setOptionUserData(context, "hello world");
} else {
- context->callbacks.auth_fn =
- (no_auth ? no_auth_data_fn : get_auth_data_fn);
+ smbc_setFunctionAuthData(context, get_auth_data_fn);
}
-#else
-#warning "temporarily remove setting alternate auth function"
- smbc_setFunctionAuthData(context,
- (no_auth ? no_auth_data_fn : get_auth_data_fn));
-#endif
/* If we've been asked to log to stderr instead of stdout, ... */
if (debug_stderr) {