|
libsmbclient
|
Typedefs | |
| typedef void(* | smbc_get_auth_data_fn )(const char *srv, const char *shr, char *wg, int wglen, char *un, int unlen, char *pw, int pwlen) |
| typedef void(* | smbc_get_auth_data_with_context_fn )(SMBCCTX *c, const char *srv, const char *shr, char *wg, int wglen, char *un, int unlen, char *pw, int pwlen) |
| typedef void(* | smbc_list_print_job_fn )(struct print_job_info *i) |
| typedef int(* | smbc_check_server_fn )(SMBCCTX *c, SMBCSRV *srv) |
| typedef int(* | smbc_remove_unused_server_fn )(SMBCCTX *c, SMBCSRV *srv) |
| typedef int(* | smbc_add_cached_srv_fn )(SMBCCTX *c, SMBCSRV *srv, const char *server, const char *share, const char *workgroup, const char *username) |
| typedef SMBCSRV *(* | smbc_get_cached_srv_fn )(SMBCCTX *c, const char *server, const char *share, const char *workgroup, const char *username) |
| typedef int(* | smbc_remove_cached_srv_fn )(SMBCCTX *c, SMBCSRV *srv) |
| typedef int(* | smbc_purge_cached_fn )(SMBCCTX *c) |
Functions | |
| int | smbc_remove_unused_server (SMBCCTX *context, SMBCSRV *srv) |
Callback functions
| typedef int(* smbc_add_cached_srv_fn)(SMBCCTX *c, SMBCSRV *srv, const char *server, const char *share, const char *workgroup, const char *username) |
Add a server to the cache system
| c | pointer to smb context |
| srv | pointer to server to add |
| server | server name |
| share | share name |
| workgroup | workgroup used to connect |
| username | username used to connect |
Definition at line 415 of file libsmbclient.h.
| typedef int(* smbc_check_server_fn)(SMBCCTX *c, SMBCSRV *srv) |
Check if a server is still good
| c | pointer to smb context |
| srv | pointer to server to check |
Definition at line 382 of file libsmbclient.h.
| typedef void(* smbc_get_auth_data_fn)(const char *srv, const char *shr, char *wg, int wglen, char *un, int unlen, char *pw, int pwlen) |
Authentication callback function type (traditional method)
Type for the the authentication function called by the library to obtain authentication credentals
For kerberos support the function should just be called without prompting the user for credentials. Which means a simple 'return' should work. Take a look at examples/libsmbclient/get_auth_data_fn.h and examples/libsmbclient/testbrowse.c.
| srv | Server being authenticated to |
| shr | Share being authenticated to |
| wg | Pointer to buffer containing a "hint" for the workgroup to be authenticated. Should be filled in with the correct workgroup if the hint is wrong. |
| wglen | The size of the workgroup buffer in bytes |
| un | Pointer to buffer containing a "hint" for the user name to be use for authentication. Should be filled in with the correct workgroup if the hint is wrong. |
| unlen | The size of the username buffer in bytes |
| pw | Pointer to buffer containing to which password copied |
| pwlen | The size of the password buffer in bytes |
Definition at line 314 of file libsmbclient.h.
| typedef void(* smbc_get_auth_data_with_context_fn)(SMBCCTX *c, const char *srv, const char *shr, char *wg, int wglen, char *un, int unlen, char *pw, int pwlen) |
Authentication callback function type (method that includes context)
Type for the the authentication function called by the library to obtain authentication credentals
For kerberos support the function should just be called without prompting the user for credentials. Which means a simple 'return' should work. Take a look at examples/libsmbclient/get_auth_data_fn.h and examples/libsmbclient/testbrowse.c.
| c | Pointer to the smb context |
| srv | Server being authenticated to |
| shr | Share being authenticated to |
| wg | Pointer to buffer containing a "hint" for the workgroup to be authenticated. Should be filled in with the correct workgroup if the hint is wrong. |
| wglen | The size of the workgroup buffer in bytes |
| un | Pointer to buffer containing a "hint" for the user name to be use for authentication. Should be filled in with the correct workgroup if the hint is wrong. |
| unlen | The size of the username buffer in bytes |
| pw | Pointer to buffer containing to which password copied |
| pwlen | The size of the password buffer in bytes |
Definition at line 355 of file libsmbclient.h.
| typedef SMBCSRV*(* smbc_get_cached_srv_fn)(SMBCCTX *c, const char *server, const char *share, const char *workgroup, const char *username) |
Look up a server in the cache system
| c | pointer to smb context |
| server | server name to match |
| share | share name to match |
| workgroup | workgroup to match |
| username | username to match |
Definition at line 435 of file libsmbclient.h.
| typedef void(* smbc_list_print_job_fn)(struct print_job_info *i) |
Print job info callback function type.
| i | pointer to print job information structure |
Definition at line 369 of file libsmbclient.h.
| typedef int(* smbc_purge_cached_fn)(SMBCCTX *c) |
Try to remove all servers from the cache system and disconnect
| c | pointer to smb context |
Definition at line 460 of file libsmbclient.h.
| typedef int(* smbc_remove_cached_srv_fn)(SMBCCTX *c, SMBCSRV *srv) |
Check if a server is still good
| c | pointer to smb context |
| srv | pointer to server to remove |
Definition at line 449 of file libsmbclient.h.
| typedef int(* smbc_remove_unused_server_fn)(SMBCCTX *c, SMBCSRV *srv) |
Remove a server if unused
| c | pointer to smb context |
| srv | pointer to server to remove |
Definition at line 394 of file libsmbclient.h.
Remove a server from the cached server list it's unused.
| context | pointer to smb context |
| srv | pointer to server to remove |
1.7.4