From fb4013444677629af4b663a61da3b575bba49195 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Fri, 12 Jan 2001 05:10:45 +0000 Subject: 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) --- source3/include/libsmbclient.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'source3/include') 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 */ -- cgit