diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-11-02 12:15:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:20 -0500 |
commit | a99b6219a810a1cd10bd62a6716780602808f0cd (patch) | |
tree | 56cd12199083444dda5b66ef3c276327bbe864cd /source4/client | |
parent | 8228a362a9d70ae51c04d11840fa081794d26c68 (diff) | |
download | samba-a99b6219a810a1cd10bd62a6716780602808f0cd.tar.gz samba-a99b6219a810a1cd10bd62a6716780602808f0cd.tar.bz2 samba-a99b6219a810a1cd10bd62a6716780602808f0cd.zip |
r3481: split out client.h and events.h
(This used to be commit c6f486574470a311e0d336c026103f131451e21e)
Diffstat (limited to 'source4/client')
-rw-r--r-- | source4/client/client.c | 17 | ||||
-rw-r--r-- | source4/client/clitar.c | 9 |
2 files changed, 14 insertions, 12 deletions
diff --git a/source4/client/client.c b/source4/client/client.c index e80d4ebef4..0b33101600 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -22,6 +22,7 @@ */ #include "includes.h" +#include "client.h" #include "lib/cmdline/popt_common.h" #include "librpc/gen_ndr/ndr_srvsvc.h" #include "libcli/raw/libcliraw.h" @@ -355,7 +356,7 @@ BOOL mask_match(struct smbcli_state *c, const char *string, char *pattern, /******************************************************************* decide if a file should be operated on ********************************************************************/ -static BOOL do_this_one(file_info *finfo) +static BOOL do_this_one(struct file_info *finfo) { if (finfo->mode & FILE_ATTRIBUTE_DIRECTORY) return(True); @@ -381,7 +382,7 @@ static BOOL do_this_one(file_info *finfo) /**************************************************************************** display info about a file ****************************************************************************/ -static void display_finfo(file_info *finfo) +static void display_finfo(struct file_info *finfo) { if (do_this_one(finfo)) { time_t t = finfo->mtime; /* the time is assumed to be passed as GMT */ @@ -400,7 +401,7 @@ static void display_finfo(file_info *finfo) /**************************************************************************** accumulate size of a file ****************************************************************************/ -static void do_du(file_info *finfo) +static void do_du(struct file_info *finfo) { if (do_this_one(finfo)) { dir_total += finfo->size; @@ -413,7 +414,7 @@ static char *do_list_queue = 0; static long do_list_queue_size = 0; static long do_list_queue_start = 0; static long do_list_queue_end = 0; -static void (*do_list_fn)(file_info *); +static void (*do_list_fn)(struct file_info *); /**************************************************************************** functions for do_list_queue @@ -532,7 +533,7 @@ static int do_list_queue_empty(void) /**************************************************************************** a helper for do_list ****************************************************************************/ -static void do_list_helper(file_info *f, const char *mask, void *state) +static void do_list_helper(struct file_info *f, const char *mask, void *state) { if (f->mode & FILE_ATTRIBUTE_DIRECTORY) { if (do_list_dirs && do_this_one(f)) { @@ -564,7 +565,7 @@ static void do_list_helper(file_info *f, const char *mask, void *state) /**************************************************************************** a wrapper around smbcli_list that adds recursion ****************************************************************************/ -void do_list(const char *mask,uint16_t attribute,void (*fn)(file_info *),BOOL rec, BOOL dirs) +void do_list(const char *mask,uint16_t attribute,void (*fn)(struct file_info *),BOOL rec, BOOL dirs) { static int in_do_list = 0; @@ -879,7 +880,7 @@ static BOOL yesno(char *p) /**************************************************************************** do a mget operation on one file ****************************************************************************/ -static void do_mget(file_info *finfo) +static void do_mget(struct file_info *finfo) { pstring rname; pstring quest; @@ -2546,7 +2547,7 @@ typedef struct { int len; } completion_remote_t; -static void completion_remote_filter(file_info *f, const char *mask, void *state) +static void completion_remote_filter(struct file_info *f, const char *mask, void *state) { completion_remote_t *info = (completion_remote_t *)state; diff --git a/source4/client/clitar.c b/source4/client/clitar.c index ca2c55bcbf..40ff5a79ab 100644 --- a/source4/client/clitar.c +++ b/source4/client/clitar.c @@ -36,6 +36,7 @@ #include "includes.h" +#include "client.h" #include "clitar.h" #include "system/time.h" #include "system/iconv.h" @@ -169,8 +170,8 @@ static int tarhandle; static void writetarheader(int f, const char *aname, uint64_t size, time_t mtime, const char *amode, uint8_t ftype); -static void do_atar(char *rname,const char *lname,file_info *finfo1); -static void do_tar(file_info *finfo); +static void do_atar(char *rname,const char *lname,struct file_info *finfo1); +static void do_tar(struct file_info *finfo); static void oct_it(uint64_t value, int ndgs, char *p); static void fixtarname(char *tptr, const char *fp, int l); static int dotarbuf(int f, char *b, int n); @@ -642,7 +643,7 @@ static void do_setrattr(char *name, uint16_t attr, int set) /**************************************************************************** append one remote file to the tar file ***************************************************************************/ -static void do_atar(char *rname,const char *lname,file_info *finfo1) +static void do_atar(char *rname,const char *lname,struct file_info *finfo1) { int fnum; uint64_t nread=0; @@ -825,7 +826,7 @@ static void do_atar(char *rname,const char *lname,file_info *finfo1) /**************************************************************************** Append single file to tar file (or not) ***************************************************************************/ -static void do_tar(file_info *finfo) +static void do_tar(struct file_info *finfo) { pstring rname; |