diff options
author | Richard Sharpe <sharpe@samba.org> | 2001-01-12 05:10:45 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 2001-01-12 05:10:45 +0000 |
commit | fb4013444677629af4b663a61da3b575bba49195 (patch) | |
tree | 7651b05326ecf23a1ccfafbdb988b44f0502df6f /source3/include | |
parent | 78b2616049f19f7dad7c259bf04b0fb8645de218 (diff) | |
download | samba-fb4013444677629af4b663a61da3b575bba49195.tar.gz samba-fb4013444677629af4b663a61da3b575bba49195.tar.bz2 samba-fb4013444677629af4b663a61da3b575bba49195.zip |
Many bug fixes to the libsmbclient.c code plus
- an implementation of smbc_readdir
- extensions to tree.c to show files in a second window
- changes to auth_fn to provide buffers for username, password, etc
from caller rather than callee
(This used to be commit 7f559c1a7307b91218d5984f48f65e7dc0ab66b9)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/libsmbclient.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source3/include/libsmbclient.h b/source3/include/libsmbclient.h index 6f608bdc5b..34e9405ff5 100644 --- a/source3/include/libsmbclient.h +++ b/source3/include/libsmbclient.h @@ -60,8 +60,9 @@ struct smbc_dirent { #define SMBC_DIR_MODE (S_IFDIR | 0555) typedef void (*smbc_get_auth_data_fn)(char *server, char *share, - char **workgroup, char **username, - char **password); + char *workgroup, int wgmaxlen, + char *username, int unmaxlen, + char *password, int pwmaxlen); /* * Init the smbc package @@ -160,6 +161,12 @@ int smbc_closedir(int fd); int smbc_getdents(unsigned int fd, struct smbc_dirent *dirp, int count); +/* + * Read a dirent in the old way + */ + +struct smbc_dirent *smbc_readdir(unsigned int fd); + /* * Create a directory on a server, share, dir in fname URL */ |