type for client_info struct
[Samba/gbeck.git] / source / include / rpcclient.h
blob200d590c338c1e1b8c6f0cfe332b260a579e08e0
1 /*
2 Unix SMB/Netbios implementation.
3 Version 1.9.
4 SMB parameters and setup
5 Copyright (C) Andrew Tridgell 1992-1998
6 Copyright (C) Luke Kenneth Casson Leighton 1996-1998
7 Copyright (C) Jeremy Allison 1998
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 #ifndef _RPCCLIENT_H
25 #define _RPCCLIENT_H
27 #define report fprintf
29 struct tar_client_info
31 int blocksize;
32 BOOL inc;
33 BOOL reset;
34 BOOL excl;
35 char type;
36 int attrib;
37 char **cliplist;
38 int clipn;
39 int tp;
40 int num_files;
41 int buf_size;
42 int bytes_written;
43 char *buf;
44 int handle;
45 int print_mode;
46 char *file_mode;
49 struct nt_client_info
51 /************* \PIPE\NETLOGON stuff ******************/
53 fstring mach_acct;
55 uint8 sess_key[16];
56 DOM_CRED clnt_cred;
57 DOM_CRED rtn_cred;
59 NET_ID_INFO_CTR ctr;
60 NET_USER_INFO_3 user_info3;
62 /************** \PIPE\winreg stuff ********************/
64 POLICY_HND reg_pol_connect;
66 /************** \PIPE\lsarpc stuff ********************/
68 POLICY_HND lsa_info_pol;
70 /* domain member */
71 DOM_SID level3_sid;
72 DOM_SID level5_sid;
74 /* domain controller */
75 fstring level3_dom;
76 fstring level5_dom;
78 /************** \PIPE\samr stuff ********************/
80 POLICY_HND samr_pol_connect;
81 POLICY_HND samr_pol_open_domain;
82 POLICY_HND samr_pol_open_user;
84 struct acct_info *sam;
85 int num_sam_entries;
88 /* struct client_info
90 struct in_addr dest_ip;
91 fstring dest_host;
92 fstring query_host;
93 uint8 name_type;
95 fstring myhostname;
96 fstring mach_acct;
98 pstring cur_dir;
99 pstring base_dir;
100 pstring file_sel;
102 fstring service;
103 fstring share;
104 fstring svc_type;
106 time_t newer_than;
107 int archive_level;
108 int dir_total;
109 int put_total_time_ms;
110 int put_total_size;
111 int get_total_time_ms;
112 int get_total_size;
113 int print_mode;
114 BOOL translation;
115 BOOL recurse_dir;
116 BOOL prompt;
117 BOOL lowercase;
118 BOOL abort_mget;
120 struct tar_client_info tar;
121 struct nt_client_info dom;
122 }; */
124 typedef struct client_info
126 struct in_addr dest_ip;
127 fstring dest_host;
129 fstring myhostname;
131 struct tar_client_info tar;
132 struct nt_client_info dom;
134 BOOL reuse;
135 BOOL show_prompt;
136 } CLIENT_INFO;
139 enum action_type {ACTION_HEADER, ACTION_ENUMERATE, ACTION_FOOTER};
141 /****************************************************************************
142 This defines the commands supported by this client
143 ****************************************************************************/
144 struct command_set
146 char *name;
147 uint32 (*fn)(struct client_info*, int, char*[]);
148 char *description;
149 char* (*compl_args[2])(char*, int);
153 #endif /* _RPCCLIENT_H */