From a99b6219a810a1cd10bd62a6716780602808f0cd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 2 Nov 2004 12:15:17 +0000 Subject: r3481: split out client.h and events.h (This used to be commit c6f486574470a311e0d336c026103f131451e21e) --- source4/libcli/clideltree.c | 3 ++- source4/libcli/clilist.c | 21 +++++++++++---------- source4/libcli/raw/clitransport.c | 1 + 3 files changed, 14 insertions(+), 11 deletions(-) (limited to 'source4/libcli') diff --git a/source4/libcli/clideltree.c b/source4/libcli/clideltree.c index aa73f5b90b..7dd3803735 100644 --- a/source4/libcli/clideltree.c +++ b/source4/libcli/clideltree.c @@ -19,6 +19,7 @@ */ #include "includes.h" +#include "client.h" struct delete_state { struct smbcli_tree *tree; @@ -29,7 +30,7 @@ struct delete_state { /* callback function for torture_deltree() */ -static void delete_fn(file_info *finfo, const char *name, void *state) +static void delete_fn(struct file_info *finfo, const char *name, void *state) { struct delete_state *dstate = state; char *s, *n; diff --git a/source4/libcli/clilist.c b/source4/libcli/clilist.c index dde2a7befa..e8b97f324d 100644 --- a/source4/libcli/clilist.c +++ b/source4/libcli/clilist.c @@ -20,10 +20,11 @@ */ #include "includes.h" +#include "client.h" #include "libcli/raw/libcliraw.h" struct search_private { - file_info *dirlist; + struct file_info *dirlist; TALLOC_CTX *mem_ctx; int dirlist_len; int ff_searchcount; /* total received in 1 server trip */ @@ -39,9 +40,9 @@ struct search_private { ****************************************************************************/ static BOOL interpret_long_filename(enum smb_search_level level, union smb_search_data *info, - file_info *finfo) + struct file_info *finfo) { - file_info finfo2; + struct file_info finfo2; if (!finfo) finfo = &finfo2; ZERO_STRUCTP(finfo); @@ -81,7 +82,7 @@ static BOOL interpret_long_filename(enum smb_search_level level, static BOOL smbcli_list_new_callback(void *private, union smb_search_data *file) { struct search_private *state = (struct search_private*) private; - file_info *tdl; + struct file_info *tdl; /* add file info to the dirlist pool */ tdl = talloc_realloc(state, @@ -105,7 +106,7 @@ static BOOL smbcli_list_new_callback(void *private, union smb_search_data *file) int smbcli_list_new(struct smbcli_tree *tree, const char *Mask, uint16_t attribute, enum smb_search_level level, - void (*fn)(file_info *, const char *, void *), + void (*fn)(struct file_info *, const char *, void *), void *caller_state) { union smb_search_first first_parms; @@ -208,9 +209,9 @@ int smbcli_list_new(struct smbcli_tree *tree, const char *Mask, uint16_t attribu ****************************************************************************/ static BOOL interpret_short_filename(int level, union smb_search_data *info, - file_info *finfo) + struct file_info *finfo) { - file_info finfo2; + struct file_info finfo2; if (!finfo) finfo = &finfo2; ZERO_STRUCTP(finfo); @@ -228,7 +229,7 @@ static BOOL interpret_short_filename(int level, static BOOL smbcli_list_old_callback(void *private, union smb_search_data *file) { struct search_private *state = (struct search_private*) private; - file_info *tdl; + struct file_info *tdl; /* add file info to the dirlist pool */ tdl = talloc_realloc(state, @@ -251,7 +252,7 @@ static BOOL smbcli_list_old_callback(void *private, union smb_search_data *file) } int smbcli_list_old(struct smbcli_tree *tree, const char *Mask, uint16_t attribute, - void (*fn)(file_info *, const char *, void *), + void (*fn)(struct file_info *, const char *, void *), void *caller_state) { union smb_search_first first_parms; @@ -337,7 +338,7 @@ int smbcli_list_old(struct smbcli_tree *tree, const char *Mask, uint16_t attribu ****************************************************************************/ int smbcli_list(struct smbcli_tree *tree, const char *Mask,uint16_t attribute, - void (*fn)(file_info *, const char *, void *), void *state) + void (*fn)(struct file_info *, const char *, void *), void *state) { if (tree->session->transport->negotiate.protocol <= PROTOCOL_LANMAN1) return smbcli_list_old(tree, Mask, attribute, fn, state); diff --git a/source4/libcli/raw/clitransport.c b/source4/libcli/raw/clitransport.c index c5e3d39545..00e52f3a14 100644 --- a/source4/libcli/raw/clitransport.c +++ b/source4/libcli/raw/clitransport.c @@ -23,6 +23,7 @@ #include "libcli/raw/libcliraw.h" #include "system/time.h" #include "dlinklist.h" +#include "events.h" static void smbcli_transport_process_recv(struct smbcli_transport *transport); -- cgit