diff options
author | Luke Leighton <lkcl@samba.org> | 1999-11-26 23:04:19 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-11-26 23:04:19 +0000 |
commit | 9b683054751866af4fb2ac79c092392e31effaff (patch) | |
tree | e9648db6efbff69ff731c1df466f59fd21cc853e /source3/include | |
parent | 5e3bc7875656362770b0c9a2a45d2f83c985c6e5 (diff) | |
download | samba-9b683054751866af4fb2ac79c092392e31effaff.tar.gz samba-9b683054751866af4fb2ac79c092392e31effaff.tar.bz2 samba-9b683054751866af4fb2ac79c092392e31effaff.zip |
whoa. _major_ restructure of rpcclient. fixed some buuugs, created a few.
found out that getopt() _must_ have optind set to 0 before reuse.
still haven't decided what to do with the net* api yet...
(This used to be commit 29c480085e786905bfd92ea3cd93658f94e96e47)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/ntdomain.h | 4 | ||||
-rw-r--r-- | source3/include/proto.h | 21 | ||||
-rw-r--r-- | source3/include/rpcclient.h | 24 |
3 files changed, 21 insertions, 28 deletions
diff --git a/source3/include/ntdomain.h b/source3/include/ntdomain.h index 67befd81dc..603dce0a17 100644 --- a/source3/include/ntdomain.h +++ b/source3/include/ntdomain.h @@ -183,6 +183,10 @@ struct acct_info void (*fn)(const char*, const DOM_SID*, uint32, const char*,\ uint32, const uint32*, char *const *const, uint32* const) +#define DISP_FN(fn)\ + void (*fn)(const char*, const DOM_SID*, uint16, uint32, \ + SAM_DISPINFO_CTR *) + #define REG_FN(fn)\ void (*fn)(int, const char *, int) #define REG_KEY_FN(fn)\ diff --git a/source3/include/proto.h b/source3/include/proto.h index cb61009a64..ec340ec1d6 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -481,8 +481,6 @@ int set_maxfiles(int requested_max); void reg_get_subkey(char *full_keyname, char *key_name, char *subkey_name); BOOL reg_split_key(const char *full_keyname, uint32 *reg_type, char *key_name); BOOL become_user_permanently(uid_t uid, gid_t gid); -BOOL resolve_srv_name(const char* srv_name, fstring dest_host, - struct in_addr *ip); /*The following definitions come from lib/util_array.c */ @@ -805,6 +803,8 @@ FILE *startlmhosts(char *fname); BOOL getlmhostsent( FILE *fp, pstring name, int *name_type, struct in_addr *ipaddr); void endlmhosts(FILE *fp); BOOL resolve_name(const char *name, struct in_addr *return_ip, int name_type); +BOOL resolve_srv_name(const char* srv_name, fstring dest_host, + struct in_addr *ip); BOOL find_master_ip(char *group, struct in_addr *master_ip); /*The following definitions come from libsmb/nmblib.c */ @@ -1776,7 +1776,7 @@ BOOL at_del_job(struct cli_state *cli, uint16 fnum, char *server_name, uint32 min_jobid, uint32 max_jobid); BOOL at_enum_jobs(struct cli_state *cli, uint16 fnum, char *server_name, uint32 *num_jobs, - AT_ENUM_INFO *jobs, fstring *commands); + AT_ENUM_INFO *jobs, char ***commands); BOOL at_query_job(struct cli_state *cli, uint16 fnum, char *server_name, uint32 jobid, AT_JOB_INFO *job, fstring command); @@ -2293,6 +2293,11 @@ BOOL get_samr_query_aliasinfo( BOOL msrpc_sam_create_dom_user(const char* srv_name, DOM_SID *sid1, char *acct_name, uint16 acb_info, uint32 *rid); +BOOL msrpc_sam_query_dispinfo(const char* srv_name, const char* domain, + DOM_SID *sid1, + uint16 switch_value, + uint32 *num_entries, SAM_DISPINFO_CTR *ctr, + DISP_FN(disp_fn)); /*The following definitions come from rpc_parse/parse_at.c */ @@ -3769,7 +3774,8 @@ void display_query_svc_cfg(FILE *out_hnd, enum action_type action, void display_svc_info(FILE *out_hnd, enum action_type action, const ENUM_SRVC_STATUS *const svc); void display_at_enum_info(FILE *out_hnd, enum action_type action, - uint32 num_jobs, const AT_ENUM_INFO *const jobs, const fstring *const commands); + uint32 num_jobs, const AT_ENUM_INFO *const jobs, + char *const *const commands); void display_at_job_info(FILE *out_hnd, enum action_type action, AT_JOB_INFO *const job, fstring command); void display_eventlog_eventrecord(FILE *out_hnd, enum action_type action, EVENTLOGRECORD *const ev); @@ -3784,6 +3790,13 @@ void display_sam_unk_info_2(FILE *out_hnd, enum action_type action, SAM_UNK_INFO_2 *const info2); void display_sam_unk_ctr(FILE *out_hnd, enum action_type action, uint32 switch_value, SAM_UNK_CTR *const ctr); +void display_sam_info_1(FILE *out_hnd, enum action_type action, + SAM_ENTRY1 *const e1, SAM_STR1 *const s1); +void display_sam_info_1_ctr(FILE *out_hnd, enum action_type action, + uint32 count, SAM_DISPINFO_1 *const ctr); +void display_sam_disp_info_ctr(FILE *out_hnd, enum action_type action, + uint16 level, uint32 count, + SAM_DISPINFO_CTR *const ctr); void display_print_info_0(FILE *out_hnd, enum action_type action, PRINTER_INFO_0 *const i0); void display_print_info_1(FILE *out_hnd, enum action_type action, diff --git a/source3/include/rpcclient.h b/source3/include/rpcclient.h index e843d56010..ba284e66f0 100644 --- a/source3/include/rpcclient.h +++ b/source3/include/rpcclient.h @@ -76,34 +76,10 @@ struct client_info { struct in_addr dest_ip; fstring dest_host; - fstring query_host; - uint8 name_type; fstring myhostname; fstring mach_acct; - pstring cur_dir; - pstring base_dir; - pstring file_sel; - - fstring service; - fstring share; - fstring svc_type; - - time_t newer_than; - int archive_level; - int dir_total; - int put_total_time_ms; - int put_total_size; - int get_total_time_ms; - int get_total_size; - int print_mode; - BOOL translation; - BOOL recurse_dir; - BOOL prompt; - BOOL lowercase; - BOOL abort_mget; - struct tar_client_info tar; struct nt_client_info dom; }; |