#ifndef _SMBW_H
#define _SMBW_H
#define SMBW_PREFIX "/smb/"
#define SMBW_DUMMY "/dev/null"
#define SMBW_CLI_FD 512
#define SMBW_MAX_OPEN 8192
#define SMBW_FILE_MODE (S_IFREG | 0444)
#define SMBW_DIR_MODE (S_IFDIR | 0555)
struct smbw_server {
struct smbw_server *next, *prev;
struct cli_state cli;
char *server_name;
char *share_name;
char *workgroup;
char *username;
dev_t dev;
BOOL no_pathinfo2;
};
struct smbw_filedes {
int cli_fd;
int ref_count;
char *fname;
off_t offset;
};
struct smbw_file {
struct smbw_file *next, *prev;
struct smbw_filedes *f;
int fd;
struct smbw_server *srv;
};
struct smbw_dir {
struct smbw_dir *next, *prev;
int fd;
int offset, count, malloced;
struct smbw_server *srv;
struct file_info *list;
char *path;
};
typedef void (*smbw_get_auth_data_fn)(char *server, char *share,
char **workgroup, char **username,
char **password);
#endif