summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2001-01-05 13:11:29 +0000
committerRichard Sharpe <sharpe@samba.org>2001-01-05 13:11:29 +0000
commitdca808cbc4b52e38701f814f7aac043ddd1ca1c1 (patch)
treee46027ede552d316c37c0a615915bb8553002526 /source3/libsmb
parente70b103fff25f5bf4244a6ba2aed9593c99f749d (diff)
downloadsamba-dca808cbc4b52e38701f814f7aac043ddd1ca1c1.tar.gz
samba-dca808cbc4b52e38701f814f7aac043ddd1ca1c1.tar.bz2
samba-dca808cbc4b52e38701f814f7aac043ddd1ca1c1.zip
Needed a callback arg on cli_list ...
(This used to be commit d45e667a74fc2fcbf69c4819d480269c03dbfae4)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clilist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c
index 2e904e06b7..ae1607c1c4 100644
--- a/source3/libsmb/clilist.c
+++ b/source3/libsmb/clilist.c
@@ -148,7 +148,7 @@ static int interpret_long_filename(int level,char *p,file_info *finfo)
do a directory listing, calling fn on each file found
****************************************************************************/
int cli_list(struct cli_state *cli,const char *Mask,uint16 attribute,
- void (*fn)(file_info *, const char *))
+ void (*fn)(file_info *, const char *, void *), void *state)
{
int max_matches = 512;
/* NT uses 260, OS/2 uses 2. Both accept 1. */
@@ -300,7 +300,7 @@ int cli_list(struct cli_state *cli,const char *Mask,uint16 attribute,
for (p=dirlist,i=0;i<total_received;i++) {
p += interpret_long_filename(info_level,p,&finfo);
- fn(&finfo, Mask);
+ fn(&finfo, Mask, state);
}
/* free up the dirlist buffer */