Data Structures |
| struct | smbc_dirent |
| struct | print_job_info |
| struct | _SMBCCTX |
| struct | _SMBCCTX::_smbc_callbacks |
| struct | _SMBCCTX::_smbc_options |
Defines |
| #define | DEPRECATED_SMBC_INTERFACE |
| #define | _LARGEFILE64_SOURCE |
| #define | _FILE_OFFSET_BITS 64 |
| #define | SMBC_BASE_FD 10000 |
| #define | SMBC_WORKGROUP 1 |
| #define | SMBC_SERVER 2 |
| #define | SMBC_FILE_SHARE 3 |
| #define | SMBC_PRINTER_SHARE 4 |
| #define | SMBC_COMMS_SHARE 5 |
| #define | SMBC_IPC_SHARE 6 |
| #define | SMBC_DIR 7 |
| #define | SMBC_FILE 8 |
| #define | SMBC_LINK 9 |
| #define | SMBC_XATTR_FLAG_CREATE 0x1 |
| #define | SMBC_XATTR_FLAG_REPLACE 0x2 |
| #define | SMBC_DOS_MODE_READONLY 0x01 |
| #define | SMBC_DOS_MODE_HIDDEN 0x02 |
| #define | SMBC_DOS_MODE_SYSTEM 0x04 |
| #define | SMBC_DOS_MODE_VOLUME_ID 0x08 |
| #define | SMBC_DOS_MODE_DIRECTORY 0x10 |
| #define | SMBC_DOS_MODE_ARCHIVE 0x20 |
| #define | ENOATTR ENOENT |
| #define | SMB_CTX_FLAG_USE_KERBEROS (1 << 0) |
| #define | SMB_CTX_FLAG_FALLBACK_AFTER_KERBEROS (1 << 1) |
| #define | SMBCCTX_FLAG_NO_AUTO_ANONYMOUS_LOGON (1 << 2) |
| #define | SMB_CTX_FLAG_USE_CCACHE (1 << 3) |
Typedefs |
| typedef enum smbc_share_mode | smbc_share_mode |
| typedef enum smbc_smb_encrypt_level | smbc_smb_encrypt_level |
| typedef enum smbc_vfs_feature | smbc_vfs_feature |
| typedef int | smbc_bool |
| typedef struct _SMBCSRV | SMBCSRV |
| typedef struct _SMBCFILE | SMBCFILE |
| typedef struct _SMBCCTX | SMBCCTX |
| 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) |
| typedef SMBCFILE *(* | smbc_open_fn )(SMBCCTX *c, const char *fname, int flags, mode_t mode) |
| typedef SMBCFILE *(* | smbc_creat_fn )(SMBCCTX *c, const char *path, mode_t mode) |
| typedef ssize_t(* | smbc_read_fn )(SMBCCTX *c, SMBCFILE *file, void *buf, size_t count) |
| typedef ssize_t(* | smbc_write_fn )(SMBCCTX *c, SMBCFILE *file, const void *buf, size_t count) |
| typedef int(* | smbc_unlink_fn )(SMBCCTX *c, const char *fname) |
| typedef int(* | smbc_rename_fn )(SMBCCTX *ocontext, const char *oname, SMBCCTX *ncontext, const char *nname) |
| typedef off_t(* | smbc_lseek_fn )(SMBCCTX *c, SMBCFILE *file, off_t offset, int whence) |
| typedef int(* | smbc_stat_fn )(SMBCCTX *c, const char *fname, struct stat *st) |
| typedef int(* | smbc_fstat_fn )(SMBCCTX *c, SMBCFILE *file, struct stat *st) |
| typedef int(* | smbc_statvfs_fn )(SMBCCTX *c, char *path, struct statvfs *st) |
| typedef int(* | smbc_fstatvfs_fn )(SMBCCTX *c, SMBCFILE *file, struct statvfs *st) |
| typedef int(* | smbc_ftruncate_fn )(SMBCCTX *c, SMBCFILE *f, off_t size) |
| typedef int(* | smbc_close_fn )(SMBCCTX *c, SMBCFILE *file) |
| typedef SMBCFILE *(* | smbc_opendir_fn )(SMBCCTX *c, const char *fname) |
| typedef int(* | smbc_closedir_fn )(SMBCCTX *c, SMBCFILE *dir) |
| typedef struct smbc_dirent *(* | smbc_readdir_fn )(SMBCCTX *c, SMBCFILE *dir) |
| typedef int(* | smbc_getdents_fn )(SMBCCTX *c, SMBCFILE *dir, struct smbc_dirent *dirp, int count) |
| typedef int(* | smbc_mkdir_fn )(SMBCCTX *c, const char *fname, mode_t mode) |
| typedef int(* | smbc_rmdir_fn )(SMBCCTX *c, const char *fname) |
| typedef off_t(* | smbc_telldir_fn )(SMBCCTX *c, SMBCFILE *dir) |
| typedef int(* | smbc_lseekdir_fn )(SMBCCTX *c, SMBCFILE *dir, off_t offset) |
| typedef int(* | smbc_fstatdir_fn )(SMBCCTX *c, SMBCFILE *dir, struct stat *st) |
| typedef int(* | smbc_chmod_fn )(SMBCCTX *c, const char *fname, mode_t mode) |
| typedef int(* | smbc_utimes_fn )(SMBCCTX *c, const char *fname, struct timeval *tbuf) |
| typedef int(* | smbc_setxattr_fn )(SMBCCTX *context, const char *fname, const char *name, const void *value, size_t size, int flags) |
| typedef int(* | smbc_getxattr_fn )(SMBCCTX *context, const char *fname, const char *name, const void *value, size_t size) |
| typedef int(* | smbc_removexattr_fn )(SMBCCTX *context, const char *fname, const char *name) |
| typedef int(* | smbc_listxattr_fn )(SMBCCTX *context, const char *fname, char *list, size_t size) |
| typedef int(* | smbc_print_file_fn )(SMBCCTX *c_file, const char *fname, SMBCCTX *c_print, const char *printq) |
| typedef SMBCFILE *(* | smbc_open_print_job_fn )(SMBCCTX *c, const char *fname) |
| typedef int(* | smbc_list_print_jobs_fn )(SMBCCTX *c, const char *fname, smbc_list_print_job_fn fn) |
| typedef int(* | smbc_unlink_print_job_fn )(SMBCCTX *c, const char *fname, int id) |
Enumerations |
| enum | smbc_share_mode {
SMBC_SHAREMODE_DENY_DOS = 0,
SMBC_SHAREMODE_DENY_ALL = 1,
SMBC_SHAREMODE_DENY_WRITE = 2,
SMBC_SHAREMODE_DENY_READ = 3,
SMBC_SHAREMODE_DENY_NONE = 4,
SMBC_SHAREMODE_DENY_FCB = 7
} |
| enum | smbc_smb_encrypt_level { SMBC_ENCRYPTLEVEL_NONE = 0,
SMBC_ENCRYPTLEVEL_REQUEST = 1,
SMBC_ENCRYPTLEVEL_REQUIRE = 2
} |
| enum | smbc_vfs_feature { SMBC_VFS_FEATURE_RDONLY = (1 << 0),
SMBC_VFS_FEATURE_DFS = (1 << 28),
SMBC_VFS_FEATURE_CASE_INSENSITIVE = (1 << 29),
SMBC_VFS_FEATURE_NO_UNIXCIFS = (1 << 30)
} |
Functions |
| int | smbc_getDebug (SMBCCTX *c) |
| void | smbc_setDebug (SMBCCTX *c, int debug) |
| char * | smbc_getNetbiosName (SMBCCTX *c) |
| void | smbc_setNetbiosName (SMBCCTX *c, char *netbios_name) |
| char * | smbc_getWorkgroup (SMBCCTX *c) |
| void | smbc_setWorkgroup (SMBCCTX *c, char *workgroup) |
| char * | smbc_getUser (SMBCCTX *c) |
| void | smbc_setUser (SMBCCTX *c, char *user) |
| int | smbc_getTimeout (SMBCCTX *c) |
| void | smbc_setTimeout (SMBCCTX *c, int timeout) |
| smbc_bool | smbc_getOptionDebugToStderr (SMBCCTX *c) |
| void | smbc_setOptionDebugToStderr (SMBCCTX *c, smbc_bool b) |
| smbc_bool | smbc_getOptionFullTimeNames (SMBCCTX *c) |
| void | smbc_setOptionFullTimeNames (SMBCCTX *c, smbc_bool b) |
| smbc_share_mode | smbc_getOptionOpenShareMode (SMBCCTX *c) |
| void | smbc_setOptionOpenShareMode (SMBCCTX *c, smbc_share_mode share_mode) |
| void * | smbc_getOptionUserData (SMBCCTX *c) |
| void | smbc_setOptionUserData (SMBCCTX *c, void *user_data) |
| smbc_smb_encrypt_level | smbc_getOptionSmbEncryptionLevel (SMBCCTX *c) |
| void | smbc_setOptionSmbEncryptionLevel (SMBCCTX *c, smbc_smb_encrypt_level level) |
| smbc_bool | smbc_getOptionCaseSensitive (SMBCCTX *c) |
| void | smbc_setOptionCaseSensitive (SMBCCTX *c, smbc_bool b) |
| int | smbc_getOptionBrowseMaxLmbCount (SMBCCTX *c) |
| void | smbc_setOptionBrowseMaxLmbCount (SMBCCTX *c, int count) |
| smbc_bool | smbc_getOptionUrlEncodeReaddirEntries (SMBCCTX *c) |
| void | smbc_setOptionUrlEncodeReaddirEntries (SMBCCTX *c, smbc_bool b) |
| smbc_bool | smbc_getOptionOneSharePerServer (SMBCCTX *c) |
| void | smbc_setOptionOneSharePerServer (SMBCCTX *c, smbc_bool b) |
| smbc_bool | smbc_getOptionUseKerberos (SMBCCTX *c) |
| void | smbc_setOptionUseKerberos (SMBCCTX *c, smbc_bool b) |
| smbc_bool | smbc_getOptionFallbackAfterKerberos (SMBCCTX *c) |
| void | smbc_setOptionFallbackAfterKerberos (SMBCCTX *c, smbc_bool b) |
| smbc_bool | smbc_getOptionNoAutoAnonymousLogin (SMBCCTX *c) |
| void | smbc_setOptionNoAutoAnonymousLogin (SMBCCTX *c, smbc_bool b) |
| smbc_bool | smbc_getOptionUseCCache (SMBCCTX *c) |
| void | smbc_setOptionUseCCache (SMBCCTX *c, smbc_bool b) |
| smbc_get_auth_data_fn | smbc_getFunctionAuthData (SMBCCTX *c) |
| void | smbc_setFunctionAuthData (SMBCCTX *c, smbc_get_auth_data_fn fn) |
| smbc_get_auth_data_with_context_fn | smbc_getFunctionAuthDataWithContext (SMBCCTX *c) |
| void | smbc_setFunctionAuthDataWithContext (SMBCCTX *c, smbc_get_auth_data_with_context_fn fn) |
| smbc_check_server_fn | smbc_getFunctionCheckServer (SMBCCTX *c) |
| void | smbc_setFunctionCheckServer (SMBCCTX *c, smbc_check_server_fn fn) |
| smbc_remove_unused_server_fn | smbc_getFunctionRemoveUnusedServer (SMBCCTX *c) |
| void | smbc_setFunctionRemoveUnusedServer (SMBCCTX *c, smbc_remove_unused_server_fn fn) |
| smbc_add_cached_srv_fn | smbc_getFunctionAddCachedServer (SMBCCTX *c) |
| void | smbc_setFunctionAddCachedServer (SMBCCTX *c, smbc_add_cached_srv_fn fn) |
| smbc_get_cached_srv_fn | smbc_getFunctionGetCachedServer (SMBCCTX *c) |
| void | smbc_setFunctionGetCachedServer (SMBCCTX *c, smbc_get_cached_srv_fn fn) |
| smbc_remove_cached_srv_fn | smbc_getFunctionRemoveCachedServer (SMBCCTX *c) |
| void | smbc_setFunctionRemoveCachedServer (SMBCCTX *c, smbc_remove_cached_srv_fn fn) |
| smbc_purge_cached_fn | smbc_getFunctionPurgeCachedServers (SMBCCTX *c) |
| void | smbc_setFunctionPurgeCachedServers (SMBCCTX *c, smbc_purge_cached_fn fn) |
| struct smbc_server_cache * | smbc_getServerCacheData (SMBCCTX *c) |
| void | smbc_setServerCacheData (SMBCCTX *c, struct smbc_server_cache *cache) |
| smbc_open_fn | smbc_getFunctionOpen (SMBCCTX *c) |
| void | smbc_setFunctionOpen (SMBCCTX *c, smbc_open_fn fn) |
| smbc_creat_fn | smbc_getFunctionCreat (SMBCCTX *c) |
| void | smbc_setFunctionCreat (SMBCCTX *c, smbc_creat_fn) |
| smbc_read_fn | smbc_getFunctionRead (SMBCCTX *c) |
| void | smbc_setFunctionRead (SMBCCTX *c, smbc_read_fn fn) |
| smbc_write_fn | smbc_getFunctionWrite (SMBCCTX *c) |
| void | smbc_setFunctionWrite (SMBCCTX *c, smbc_write_fn fn) |
| smbc_unlink_fn | smbc_getFunctionUnlink (SMBCCTX *c) |
| void | smbc_setFunctionUnlink (SMBCCTX *c, smbc_unlink_fn fn) |
| smbc_rename_fn | smbc_getFunctionRename (SMBCCTX *c) |
| void | smbc_setFunctionRename (SMBCCTX *c, smbc_rename_fn fn) |
| smbc_lseek_fn | smbc_getFunctionLseek (SMBCCTX *c) |
| void | smbc_setFunctionLseek (SMBCCTX *c, smbc_lseek_fn fn) |
| smbc_stat_fn | smbc_getFunctionStat (SMBCCTX *c) |
| void | smbc_setFunctionStat (SMBCCTX *c, smbc_stat_fn fn) |
| smbc_fstat_fn | smbc_getFunctionFstat (SMBCCTX *c) |
| void | smbc_setFunctionFstat (SMBCCTX *c, smbc_fstat_fn fn) |
| smbc_statvfs_fn | smbc_getFunctionStatVFS (SMBCCTX *c) |
| void | smbc_setFunctionStatVFS (SMBCCTX *c, smbc_statvfs_fn fn) |
| smbc_fstatvfs_fn | smbc_getFunctionFstatVFS (SMBCCTX *c) |
| void | smbc_setFunctionFstatVFS (SMBCCTX *c, smbc_fstatvfs_fn fn) |
| smbc_ftruncate_fn | smbc_getFunctionFtruncate (SMBCCTX *c) |
| void | smbc_setFunctionFtruncate (SMBCCTX *c, smbc_ftruncate_fn fn) |
| smbc_close_fn | smbc_getFunctionClose (SMBCCTX *c) |
| void | smbc_setFunctionClose (SMBCCTX *c, smbc_close_fn fn) |
| smbc_opendir_fn | smbc_getFunctionOpendir (SMBCCTX *c) |
| void | smbc_setFunctionOpendir (SMBCCTX *c, smbc_opendir_fn fn) |
| smbc_closedir_fn | smbc_getFunctionClosedir (SMBCCTX *c) |
| void | smbc_setFunctionClosedir (SMBCCTX *c, smbc_closedir_fn fn) |
| smbc_readdir_fn | smbc_getFunctionReaddir (SMBCCTX *c) |
| void | smbc_setFunctionReaddir (SMBCCTX *c, smbc_readdir_fn fn) |
| smbc_getdents_fn | smbc_getFunctionGetdents (SMBCCTX *c) |
| void | smbc_setFunctionGetdents (SMBCCTX *c, smbc_getdents_fn fn) |
| smbc_mkdir_fn | smbc_getFunctionMkdir (SMBCCTX *c) |
| void | smbc_setFunctionMkdir (SMBCCTX *c, smbc_mkdir_fn fn) |
| smbc_rmdir_fn | smbc_getFunctionRmdir (SMBCCTX *c) |
| void | smbc_setFunctionRmdir (SMBCCTX *c, smbc_rmdir_fn fn) |
| smbc_telldir_fn | smbc_getFunctionTelldir (SMBCCTX *c) |
| void | smbc_setFunctionTelldir (SMBCCTX *c, smbc_telldir_fn fn) |
| smbc_lseekdir_fn | smbc_getFunctionLseekdir (SMBCCTX *c) |
| void | smbc_setFunctionLseekdir (SMBCCTX *c, smbc_lseekdir_fn fn) |
| smbc_fstatdir_fn | smbc_getFunctionFstatdir (SMBCCTX *c) |
| void | smbc_setFunctionFstatdir (SMBCCTX *c, smbc_fstatdir_fn fn) |
| smbc_chmod_fn | smbc_getFunctionChmod (SMBCCTX *c) |
| void | smbc_setFunctionChmod (SMBCCTX *c, smbc_chmod_fn fn) |
| smbc_utimes_fn | smbc_getFunctionUtimes (SMBCCTX *c) |
| void | smbc_setFunctionUtimes (SMBCCTX *c, smbc_utimes_fn fn) |
| smbc_setxattr_fn | smbc_getFunctionSetxattr (SMBCCTX *c) |
| void | smbc_setFunctionSetxattr (SMBCCTX *c, smbc_setxattr_fn fn) |
| smbc_getxattr_fn | smbc_getFunctionGetxattr (SMBCCTX *c) |
| void | smbc_setFunctionGetxattr (SMBCCTX *c, smbc_getxattr_fn fn) |
| smbc_removexattr_fn | smbc_getFunctionRemovexattr (SMBCCTX *c) |
| void | smbc_setFunctionRemovexattr (SMBCCTX *c, smbc_removexattr_fn fn) |
| smbc_listxattr_fn | smbc_getFunctionListxattr (SMBCCTX *c) |
| void | smbc_setFunctionListxattr (SMBCCTX *c, smbc_listxattr_fn fn) |
| smbc_print_file_fn | smbc_getFunctionPrintFile (SMBCCTX *c) |
| void | smbc_setFunctionPrintFile (SMBCCTX *c, smbc_print_file_fn fn) |
| smbc_open_print_job_fn | smbc_getFunctionOpenPrintJob (SMBCCTX *c) |
| void | smbc_setFunctionOpenPrintJob (SMBCCTX *c, smbc_open_print_job_fn fn) |
| smbc_list_print_jobs_fn | smbc_getFunctionListPrintJobs (SMBCCTX *c) |
| void | smbc_setFunctionListPrintJobs (SMBCCTX *c, smbc_list_print_jobs_fn fn) |
| smbc_unlink_print_job_fn | smbc_getFunctionUnlinkPrintJob (SMBCCTX *c) |
| void | smbc_setFunctionUnlinkPrintJob (SMBCCTX *c, smbc_unlink_print_job_fn fn) |
| SMBCCTX * | smbc_new_context (void) |
| int | smbc_free_context (SMBCCTX *context, int shutdown_ctx) |
| void | smbc_option_set (SMBCCTX *context, char *option_name,...) |
| void * | smbc_option_get (SMBCCTX *context, char *option_name) |
| SMBCCTX * | smbc_init_context (SMBCCTX *context) |
| int | smbc_init (smbc_get_auth_data_fn fn, int debug) |
| SMBCCTX * | smbc_set_context (SMBCCTX *new_context) |
| int | smbc_open (const char *furl, int flags, mode_t mode) |
| int | smbc_creat (const char *furl, mode_t mode) |
| ssize_t | smbc_read (int fd, void *buf, size_t bufsize) |
| ssize_t | smbc_write (int fd, const void *buf, size_t bufsize) |
| off_t | smbc_lseek (int fd, off_t offset, int whence) |
| int | smbc_close (int fd) |
| int | smbc_unlink (const char *furl) |
| int | smbc_rename (const char *ourl, const char *nurl) |
| int | smbc_opendir (const char *durl) |
| int | smbc_closedir (int dh) |
| int | smbc_getdents (unsigned int dh, struct smbc_dirent *dirp, int count) |
| struct smbc_dirent * | smbc_readdir (unsigned int dh) |
| off_t | smbc_telldir (int dh) |
| int | smbc_lseekdir (int fd, off_t offset) |
| int | smbc_mkdir (const char *durl, mode_t mode) |
| int | smbc_rmdir (const char *durl) |
| int | smbc_stat (const char *url, struct stat *st) |
| int | smbc_fstat (int fd, struct stat *st) |
| int | smbc_statvfs (char *url, struct statvfs *st) |
| int | smbc_fstatvfs (int fd, struct statvfs *st) |
| int | smbc_ftruncate (int fd, off_t size) |
| int | smbc_chmod (const char *url, mode_t mode) |
| int | smbc_utimes (const char *url, struct timeval *tbuf) |
| int | smbc_setxattr (const char *url, const char *name, const void *value, size_t size, int flags) |
| int | smbc_lsetxattr (const char *url, const char *name, const void *value, size_t size, int flags) |
| int | smbc_fsetxattr (int fd, const char *name, const void *value, size_t size, int flags) |
| int | smbc_getxattr (const char *url, const char *name, const void *value, size_t size) |
| int | smbc_lgetxattr (const char *url, const char *name, const void *value, size_t size) |
| int | smbc_fgetxattr (int fd, const char *name, const void *value, size_t size) |
| int | smbc_removexattr (const char *url, const char *name) |
| int | smbc_lremovexattr (const char *url, const char *name) |
| int | smbc_fremovexattr (int fd, const char *name) |
| int | smbc_listxattr (const char *url, char *list, size_t size) |
| int | smbc_llistxattr (const char *url, char *list, size_t size) |
| int | smbc_flistxattr (int fd, char *list, size_t size) |
| int | smbc_print_file (const char *fname, const char *printq) |
| int | smbc_open_print_job (const char *fname) |
| int | smbc_list_print_jobs (const char *purl, smbc_list_print_job_fn fn) |
| int | smbc_unlink_print_job (const char *purl, int id) |
| int | smbc_remove_unused_server (SMBCCTX *context, SMBCSRV *srv) |
| int | smbc_urldecode (char *dest, char *src, size_t max_dest_len) |
| int | smbc_urlencode (char *dest, char *src, int max_dest_len) |
| const char * | smbc_version (void) |
| void | smbc_set_credentials (const char *workgroup, const char *user, const char *password, smbc_bool use_kerberos, const char *signing_state) |
| void | smbc_set_credentials_with_fallback (SMBCCTX *ctx, const char *workgroup, const char *user, const char *password) |
| void | smbc_thread_posix (void) |
| void | smbc_thread_impl (int(*create_mutex)(const char *lockname, void **pplock, const char *location), void(*destroy_mutex)(void *plock, const char *location), int(*lock_mutex)(void *plock, int lock_type, const char *location), int(*create_tls)(const char *keyname, void **ppkey, const char *location), void(*destroy_tls)(void **ppkey, const char *location), int(*set_tls)(void *pkey, const void *pval, const char *location), void *(*get_tls)(void *pkey, const char *location)) |