1f7ab37a27f861cf8a936437553491a9b9c76e5c
[tprouty/samba.git] / source3 / librpc / gen_ndr / ndr_libnetapi.c
1 /* parser auto-generated by pidl */
2
3 #include "includes.h"
4 #include "librpc/gen_ndr/ndr_libnetapi.h"
5
6 _PUBLIC_ enum ndr_err_code ndr_push_NET_API_STATUS(struct ndr_push *ndr, int ndr_flags, enum NET_API_STATUS r)
7 {
8         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
9         return NDR_ERR_SUCCESS;
10 }
11
12 _PUBLIC_ enum ndr_err_code ndr_pull_NET_API_STATUS(struct ndr_pull *ndr, int ndr_flags, enum NET_API_STATUS *r)
13 {
14         uint32_t v;
15         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
16         *r = v;
17         return NDR_ERR_SUCCESS;
18 }
19
20 _PUBLIC_ void ndr_print_NET_API_STATUS(struct ndr_print *ndr, const char *name, enum NET_API_STATUS r)
21 {
22         const char *val = NULL;
23
24         switch (r) {
25                 case NERR_Success: val = "NERR_Success"; break;
26         }
27         ndr_print_enum(ndr, name, "ENUM", val, r);
28 }
29
30 _PUBLIC_ enum ndr_err_code ndr_push_domsid(struct ndr_push *ndr, int ndr_flags, const struct domsid *r)
31 {
32         uint32_t cntr_sub_auths_0;
33         if (ndr_flags & NDR_SCALARS) {
34                 NDR_CHECK(ndr_push_align(ndr, 4));
35                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->sid_rev_num));
36                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->num_auths));
37                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->id_auth, 6));
38                 for (cntr_sub_auths_0 = 0; cntr_sub_auths_0 < MAXSUBAUTHS; cntr_sub_auths_0++) {
39                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sub_auths[cntr_sub_auths_0]));
40                 }
41         }
42         if (ndr_flags & NDR_BUFFERS) {
43         }
44         return NDR_ERR_SUCCESS;
45 }
46
47 _PUBLIC_ enum ndr_err_code ndr_pull_domsid(struct ndr_pull *ndr, int ndr_flags, struct domsid *r)
48 {
49         uint32_t cntr_sub_auths_0;
50         TALLOC_CTX *_mem_save_sub_auths_0;
51         if (ndr_flags & NDR_SCALARS) {
52                 NDR_CHECK(ndr_pull_align(ndr, 4));
53                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->sid_rev_num));
54                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->num_auths));
55                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->id_auth, 6));
56                 NDR_PULL_ALLOC_N(ndr, r->sub_auths, MAXSUBAUTHS);
57                 _mem_save_sub_auths_0 = NDR_PULL_GET_MEM_CTX(ndr);
58                 NDR_PULL_SET_MEM_CTX(ndr, r->sub_auths, 0);
59                 for (cntr_sub_auths_0 = 0; cntr_sub_auths_0 < MAXSUBAUTHS; cntr_sub_auths_0++) {
60                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sub_auths[cntr_sub_auths_0]));
61                 }
62                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sub_auths_0, 0);
63         }
64         if (ndr_flags & NDR_BUFFERS) {
65         }
66         return NDR_ERR_SUCCESS;
67 }
68
69 _PUBLIC_ void ndr_print_domsid(struct ndr_print *ndr, const char *name, const struct domsid *r)
70 {
71         uint32_t cntr_sub_auths_0;
72         ndr_print_struct(ndr, name, "domsid");
73         ndr->depth++;
74         ndr_print_uint8(ndr, "sid_rev_num", r->sid_rev_num);
75         ndr_print_uint8(ndr, "num_auths", r->num_auths);
76         ndr_print_array_uint8(ndr, "id_auth", r->id_auth, 6);
77         ndr->print(ndr, "%s: ARRAY(%d)", "sub_auths", MAXSUBAUTHS);
78         ndr->depth++;
79         for (cntr_sub_auths_0=0;cntr_sub_auths_0<MAXSUBAUTHS;cntr_sub_auths_0++) {
80                 char *idx_0=NULL;
81                 if (asprintf(&idx_0, "[%d]", cntr_sub_auths_0) != -1) {
82                         ndr_print_uint32(ndr, "sub_auths", r->sub_auths[cntr_sub_auths_0]);
83                         free(idx_0);
84                 }
85         }
86         ndr->depth--;
87         ndr->depth--;
88 }
89
90 _PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_1005(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_1005 *r)
91 {
92         if (ndr_flags & NDR_SCALARS) {
93                 NDR_CHECK(ndr_push_align(ndr, 4));
94                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv1005_comment));
95         }
96         if (ndr_flags & NDR_BUFFERS) {
97         }
98         return NDR_ERR_SUCCESS;
99 }
100
101 _PUBLIC_ enum ndr_err_code ndr_pull_SERVER_INFO_1005(struct ndr_pull *ndr, int ndr_flags, struct SERVER_INFO_1005 *r)
102 {
103         if (ndr_flags & NDR_SCALARS) {
104                 NDR_CHECK(ndr_pull_align(ndr, 4));
105                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv1005_comment));
106         }
107         if (ndr_flags & NDR_BUFFERS) {
108         }
109         return NDR_ERR_SUCCESS;
110 }
111
112 _PUBLIC_ void ndr_print_SERVER_INFO_1005(struct ndr_print *ndr, const char *name, const struct SERVER_INFO_1005 *r)
113 {
114         ndr_print_struct(ndr, name, "SERVER_INFO_1005");
115         ndr->depth++;
116         ndr_print_string(ndr, "sv1005_comment", r->sv1005_comment);
117         ndr->depth--;
118 }
119
120 _PUBLIC_ enum ndr_err_code ndr_push_DOMAIN_CONTROLLER_INFO(struct ndr_push *ndr, int ndr_flags, const struct DOMAIN_CONTROLLER_INFO *r)
121 {
122         if (ndr_flags & NDR_SCALARS) {
123                 NDR_CHECK(ndr_push_align(ndr, 4));
124                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_controller_name));
125                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_controller_address));
126                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->domain_controller_address_type));
127                 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->domain_guid));
128                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_name));
129                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->dns_forest_name));
130                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->flags));
131                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->dc_site_name));
132                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->client_site_name));
133         }
134         if (ndr_flags & NDR_BUFFERS) {
135         }
136         return NDR_ERR_SUCCESS;
137 }
138
139 _PUBLIC_ enum ndr_err_code ndr_pull_DOMAIN_CONTROLLER_INFO(struct ndr_pull *ndr, int ndr_flags, struct DOMAIN_CONTROLLER_INFO *r)
140 {
141         if (ndr_flags & NDR_SCALARS) {
142                 NDR_CHECK(ndr_pull_align(ndr, 4));
143                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_controller_name));
144                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_controller_address));
145                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->domain_controller_address_type));
146                 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->domain_guid));
147                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_name));
148                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->dns_forest_name));
149                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flags));
150                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->dc_site_name));
151                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->client_site_name));
152         }
153         if (ndr_flags & NDR_BUFFERS) {
154         }
155         return NDR_ERR_SUCCESS;
156 }
157
158 _PUBLIC_ void ndr_print_DOMAIN_CONTROLLER_INFO(struct ndr_print *ndr, const char *name, const struct DOMAIN_CONTROLLER_INFO *r)
159 {
160         ndr_print_struct(ndr, name, "DOMAIN_CONTROLLER_INFO");
161         ndr->depth++;
162         ndr_print_string(ndr, "domain_controller_name", r->domain_controller_name);
163         ndr_print_string(ndr, "domain_controller_address", r->domain_controller_address);
164         ndr_print_uint32(ndr, "domain_controller_address_type", r->domain_controller_address_type);
165         ndr_print_GUID(ndr, "domain_guid", &r->domain_guid);
166         ndr_print_string(ndr, "domain_name", r->domain_name);
167         ndr_print_string(ndr, "dns_forest_name", r->dns_forest_name);
168         ndr_print_uint32(ndr, "flags", r->flags);
169         ndr_print_string(ndr, "dc_site_name", r->dc_site_name);
170         ndr_print_string(ndr, "client_site_name", r->client_site_name);
171         ndr->depth--;
172 }
173
174 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_0(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_0 *r)
175 {
176         if (ndr_flags & NDR_SCALARS) {
177                 NDR_CHECK(ndr_push_align(ndr, 4));
178                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri0_name));
179         }
180         if (ndr_flags & NDR_BUFFERS) {
181         }
182         return NDR_ERR_SUCCESS;
183 }
184
185 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_0(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_0 *r)
186 {
187         if (ndr_flags & NDR_SCALARS) {
188                 NDR_CHECK(ndr_pull_align(ndr, 4));
189                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri0_name));
190         }
191         if (ndr_flags & NDR_BUFFERS) {
192         }
193         return NDR_ERR_SUCCESS;
194 }
195
196 _PUBLIC_ void ndr_print_USER_INFO_0(struct ndr_print *ndr, const char *name, const struct USER_INFO_0 *r)
197 {
198         ndr_print_struct(ndr, name, "USER_INFO_0");
199         ndr->depth++;
200         ndr_print_string(ndr, "usri0_name", r->usri0_name);
201         ndr->depth--;
202 }
203
204 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1 *r)
205 {
206         if (ndr_flags & NDR_SCALARS) {
207                 NDR_CHECK(ndr_push_align(ndr, 4));
208                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_name));
209                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_password));
210                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_password_age));
211                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_priv));
212                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_home_dir));
213                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_comment));
214                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_flags));
215                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_script_path));
216         }
217         if (ndr_flags & NDR_BUFFERS) {
218         }
219         return NDR_ERR_SUCCESS;
220 }
221
222 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1 *r)
223 {
224         if (ndr_flags & NDR_SCALARS) {
225                 NDR_CHECK(ndr_pull_align(ndr, 4));
226                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_name));
227                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_password));
228                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_password_age));
229                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_priv));
230                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_home_dir));
231                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_comment));
232                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_flags));
233                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_script_path));
234         }
235         if (ndr_flags & NDR_BUFFERS) {
236         }
237         return NDR_ERR_SUCCESS;
238 }
239
240 _PUBLIC_ void ndr_print_USER_INFO_1(struct ndr_print *ndr, const char *name, const struct USER_INFO_1 *r)
241 {
242         ndr_print_struct(ndr, name, "USER_INFO_1");
243         ndr->depth++;
244         ndr_print_string(ndr, "usri1_name", r->usri1_name);
245         ndr_print_string(ndr, "usri1_password", r->usri1_password);
246         ndr_print_uint32(ndr, "usri1_password_age", r->usri1_password_age);
247         ndr_print_uint32(ndr, "usri1_priv", r->usri1_priv);
248         ndr_print_string(ndr, "usri1_home_dir", r->usri1_home_dir);
249         ndr_print_string(ndr, "usri1_comment", r->usri1_comment);
250         ndr_print_uint32(ndr, "usri1_flags", r->usri1_flags);
251         ndr_print_string(ndr, "usri1_script_path", r->usri1_script_path);
252         ndr->depth--;
253 }
254
255 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_USER(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_USER *r)
256 {
257         if (ndr_flags & NDR_SCALARS) {
258                 NDR_CHECK(ndr_push_align(ndr, 4));
259                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_name));
260                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_comment));
261                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_flags));
262                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_full_name));
263                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_user_id));
264                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_next_index));
265         }
266         if (ndr_flags & NDR_BUFFERS) {
267         }
268         return NDR_ERR_SUCCESS;
269 }
270
271 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_USER(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_USER *r)
272 {
273         if (ndr_flags & NDR_SCALARS) {
274                 NDR_CHECK(ndr_pull_align(ndr, 4));
275                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_name));
276                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_comment));
277                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_flags));
278                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_full_name));
279                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_user_id));
280                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_next_index));
281         }
282         if (ndr_flags & NDR_BUFFERS) {
283         }
284         return NDR_ERR_SUCCESS;
285 }
286
287 _PUBLIC_ void ndr_print_NET_DISPLAY_USER(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_USER *r)
288 {
289         ndr_print_struct(ndr, name, "NET_DISPLAY_USER");
290         ndr->depth++;
291         ndr_print_string(ndr, "usri1_name", r->usri1_name);
292         ndr_print_string(ndr, "usri1_comment", r->usri1_comment);
293         ndr_print_uint32(ndr, "usri1_flags", r->usri1_flags);
294         ndr_print_string(ndr, "usri1_full_name", r->usri1_full_name);
295         ndr_print_uint32(ndr, "usri1_user_id", r->usri1_user_id);
296         ndr_print_uint32(ndr, "usri1_next_index", r->usri1_next_index);
297         ndr->depth--;
298 }
299
300 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_MACHINE(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_MACHINE *r)
301 {
302         if (ndr_flags & NDR_SCALARS) {
303                 NDR_CHECK(ndr_push_align(ndr, 4));
304                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_name));
305                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_comment));
306                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_flags));
307                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_user_id));
308                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_next_index));
309         }
310         if (ndr_flags & NDR_BUFFERS) {
311         }
312         return NDR_ERR_SUCCESS;
313 }
314
315 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_MACHINE(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_MACHINE *r)
316 {
317         if (ndr_flags & NDR_SCALARS) {
318                 NDR_CHECK(ndr_pull_align(ndr, 4));
319                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_name));
320                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_comment));
321                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_flags));
322                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_user_id));
323                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_next_index));
324         }
325         if (ndr_flags & NDR_BUFFERS) {
326         }
327         return NDR_ERR_SUCCESS;
328 }
329
330 _PUBLIC_ void ndr_print_NET_DISPLAY_MACHINE(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_MACHINE *r)
331 {
332         ndr_print_struct(ndr, name, "NET_DISPLAY_MACHINE");
333         ndr->depth++;
334         ndr_print_string(ndr, "usri2_name", r->usri2_name);
335         ndr_print_string(ndr, "usri2_comment", r->usri2_comment);
336         ndr_print_uint32(ndr, "usri2_flags", r->usri2_flags);
337         ndr_print_uint32(ndr, "usri2_user_id", r->usri2_user_id);
338         ndr_print_uint32(ndr, "usri2_next_index", r->usri2_next_index);
339         ndr->depth--;
340 }
341
342 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_GROUP(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_GROUP *r)
343 {
344         if (ndr_flags & NDR_SCALARS) {
345                 NDR_CHECK(ndr_push_align(ndr, 4));
346                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_name));
347                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_comment));
348                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_group_id));
349                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_attributes));
350                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_next_index));
351         }
352         if (ndr_flags & NDR_BUFFERS) {
353         }
354         return NDR_ERR_SUCCESS;
355 }
356
357 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_GROUP(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_GROUP *r)
358 {
359         if (ndr_flags & NDR_SCALARS) {
360                 NDR_CHECK(ndr_pull_align(ndr, 4));
361                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_name));
362                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_comment));
363                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_group_id));
364                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_attributes));
365                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_next_index));
366         }
367         if (ndr_flags & NDR_BUFFERS) {
368         }
369         return NDR_ERR_SUCCESS;
370 }
371
372 _PUBLIC_ void ndr_print_NET_DISPLAY_GROUP(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_GROUP *r)
373 {
374         ndr_print_struct(ndr, name, "NET_DISPLAY_GROUP");
375         ndr->depth++;
376         ndr_print_string(ndr, "grpi3_name", r->grpi3_name);
377         ndr_print_string(ndr, "grpi3_comment", r->grpi3_comment);
378         ndr_print_uint32(ndr, "grpi3_group_id", r->grpi3_group_id);
379         ndr_print_uint32(ndr, "grpi3_attributes", r->grpi3_attributes);
380         ndr_print_uint32(ndr, "grpi3_next_index", r->grpi3_next_index);
381         ndr->depth--;
382 }
383
384 _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r)
385 {
386         ndr_print_struct(ndr, name, "NetJoinDomain");
387         ndr->depth++;
388         if (flags & NDR_SET_VALUES) {
389                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
390         }
391         if (flags & NDR_IN) {
392                 ndr_print_struct(ndr, "in", "NetJoinDomain");
393                 ndr->depth++;
394                 ndr_print_ptr(ndr, "server", r->in.server);
395                 ndr->depth++;
396                 if (r->in.server) {
397                         ndr_print_string(ndr, "server", r->in.server);
398                 }
399                 ndr->depth--;
400                 ndr_print_ptr(ndr, "domain", r->in.domain);
401                 ndr->depth++;
402                 ndr_print_string(ndr, "domain", r->in.domain);
403                 ndr->depth--;
404                 ndr_print_ptr(ndr, "account_ou", r->in.account_ou);
405                 ndr->depth++;
406                 if (r->in.account_ou) {
407                         ndr_print_string(ndr, "account_ou", r->in.account_ou);
408                 }
409                 ndr->depth--;
410                 ndr_print_ptr(ndr, "account", r->in.account);
411                 ndr->depth++;
412                 if (r->in.account) {
413                         ndr_print_string(ndr, "account", r->in.account);
414                 }
415                 ndr->depth--;
416                 ndr_print_ptr(ndr, "password", r->in.password);
417                 ndr->depth++;
418                 if (r->in.password) {
419                         ndr_print_string(ndr, "password", r->in.password);
420                 }
421                 ndr->depth--;
422                 ndr_print_uint32(ndr, "join_flags", r->in.join_flags);
423                 ndr->depth--;
424         }
425         if (flags & NDR_OUT) {
426                 ndr_print_struct(ndr, "out", "NetJoinDomain");
427                 ndr->depth++;
428                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
429                 ndr->depth--;
430         }
431         ndr->depth--;
432 }
433
434 _PUBLIC_ void ndr_print_NetUnjoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetUnjoinDomain *r)
435 {
436         ndr_print_struct(ndr, name, "NetUnjoinDomain");
437         ndr->depth++;
438         if (flags & NDR_SET_VALUES) {
439                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
440         }
441         if (flags & NDR_IN) {
442                 ndr_print_struct(ndr, "in", "NetUnjoinDomain");
443                 ndr->depth++;
444                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
445                 ndr->depth++;
446                 if (r->in.server_name) {
447                         ndr_print_string(ndr, "server_name", r->in.server_name);
448                 }
449                 ndr->depth--;
450                 ndr_print_ptr(ndr, "account", r->in.account);
451                 ndr->depth++;
452                 if (r->in.account) {
453                         ndr_print_string(ndr, "account", r->in.account);
454                 }
455                 ndr->depth--;
456                 ndr_print_ptr(ndr, "password", r->in.password);
457                 ndr->depth++;
458                 if (r->in.password) {
459                         ndr_print_string(ndr, "password", r->in.password);
460                 }
461                 ndr->depth--;
462                 ndr_print_uint32(ndr, "unjoin_flags", r->in.unjoin_flags);
463                 ndr->depth--;
464         }
465         if (flags & NDR_OUT) {
466                 ndr_print_struct(ndr, "out", "NetUnjoinDomain");
467                 ndr->depth++;
468                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
469                 ndr->depth--;
470         }
471         ndr->depth--;
472 }
473
474 _PUBLIC_ void ndr_print_NetGetJoinInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinInformation *r)
475 {
476         ndr_print_struct(ndr, name, "NetGetJoinInformation");
477         ndr->depth++;
478         if (flags & NDR_SET_VALUES) {
479                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
480         }
481         if (flags & NDR_IN) {
482                 ndr_print_struct(ndr, "in", "NetGetJoinInformation");
483                 ndr->depth++;
484                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
485                 ndr->depth++;
486                 if (r->in.server_name) {
487                         ndr_print_string(ndr, "server_name", r->in.server_name);
488                 }
489                 ndr->depth--;
490                 ndr->depth--;
491         }
492         if (flags & NDR_OUT) {
493                 ndr_print_struct(ndr, "out", "NetGetJoinInformation");
494                 ndr->depth++;
495                 ndr_print_ptr(ndr, "name_buffer", r->out.name_buffer);
496                 ndr->depth++;
497                 ndr_print_ptr(ndr, "name_buffer", *r->out.name_buffer);
498                 ndr->depth++;
499                 if (*r->out.name_buffer) {
500                         ndr_print_string(ndr, "name_buffer", *r->out.name_buffer);
501                 }
502                 ndr->depth--;
503                 ndr->depth--;
504                 ndr_print_ptr(ndr, "name_type", r->out.name_type);
505                 ndr->depth++;
506                 ndr_print_uint16(ndr, "name_type", *r->out.name_type);
507                 ndr->depth--;
508                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
509                 ndr->depth--;
510         }
511         ndr->depth--;
512 }
513
514 _PUBLIC_ void ndr_print_NetGetJoinableOUs(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinableOUs *r)
515 {
516         ndr_print_struct(ndr, name, "NetGetJoinableOUs");
517         ndr->depth++;
518         if (flags & NDR_SET_VALUES) {
519                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
520         }
521         if (flags & NDR_IN) {
522                 ndr_print_struct(ndr, "in", "NetGetJoinableOUs");
523                 ndr->depth++;
524                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
525                 ndr->depth++;
526                 if (r->in.server_name) {
527                         ndr_print_string(ndr, "server_name", r->in.server_name);
528                 }
529                 ndr->depth--;
530                 ndr_print_ptr(ndr, "domain", r->in.domain);
531                 ndr->depth++;
532                 ndr_print_string(ndr, "domain", r->in.domain);
533                 ndr->depth--;
534                 ndr_print_ptr(ndr, "account", r->in.account);
535                 ndr->depth++;
536                 if (r->in.account) {
537                         ndr_print_string(ndr, "account", r->in.account);
538                 }
539                 ndr->depth--;
540                 ndr_print_ptr(ndr, "password", r->in.password);
541                 ndr->depth++;
542                 if (r->in.password) {
543                         ndr_print_string(ndr, "password", r->in.password);
544                 }
545                 ndr->depth--;
546                 ndr->depth--;
547         }
548         if (flags & NDR_OUT) {
549                 ndr_print_struct(ndr, "out", "NetGetJoinableOUs");
550                 ndr->depth++;
551                 ndr_print_ptr(ndr, "ou_count", r->out.ou_count);
552                 ndr->depth++;
553                 ndr_print_uint32(ndr, "ou_count", *r->out.ou_count);
554                 ndr->depth--;
555                 ndr_print_ptr(ndr, "ous", r->out.ous);
556                 ndr->depth++;
557                 ndr_print_ptr(ndr, "ous", *r->out.ous);
558                 ndr->depth++;
559                 if (*r->out.ous) {
560                         ndr_print_ptr(ndr, "ous", **r->out.ous);
561                         ndr->depth++;
562                         if (**r->out.ous) {
563                                 ndr_print_string(ndr, "ous", **r->out.ous);
564                         }
565                         ndr->depth--;
566                 }
567                 ndr->depth--;
568                 ndr->depth--;
569                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
570                 ndr->depth--;
571         }
572         ndr->depth--;
573 }
574
575 _PUBLIC_ void ndr_print_NetServerGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerGetInfo *r)
576 {
577         ndr_print_struct(ndr, name, "NetServerGetInfo");
578         ndr->depth++;
579         if (flags & NDR_SET_VALUES) {
580                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
581         }
582         if (flags & NDR_IN) {
583                 ndr_print_struct(ndr, "in", "NetServerGetInfo");
584                 ndr->depth++;
585                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
586                 ndr->depth++;
587                 if (r->in.server_name) {
588                         ndr_print_string(ndr, "server_name", r->in.server_name);
589                 }
590                 ndr->depth--;
591                 ndr_print_uint32(ndr, "level", r->in.level);
592                 ndr->depth--;
593         }
594         if (flags & NDR_OUT) {
595                 ndr_print_struct(ndr, "out", "NetServerGetInfo");
596                 ndr->depth++;
597                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
598                 ndr->depth++;
599                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
600                 ndr->depth++;
601                 if (*r->out.buffer) {
602                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
603                 }
604                 ndr->depth--;
605                 ndr->depth--;
606                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
607                 ndr->depth--;
608         }
609         ndr->depth--;
610 }
611
612 _PUBLIC_ void ndr_print_NetServerSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerSetInfo *r)
613 {
614         ndr_print_struct(ndr, name, "NetServerSetInfo");
615         ndr->depth++;
616         if (flags & NDR_SET_VALUES) {
617                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
618         }
619         if (flags & NDR_IN) {
620                 ndr_print_struct(ndr, "in", "NetServerSetInfo");
621                 ndr->depth++;
622                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
623                 ndr->depth++;
624                 if (r->in.server_name) {
625                         ndr_print_string(ndr, "server_name", r->in.server_name);
626                 }
627                 ndr->depth--;
628                 ndr_print_uint32(ndr, "level", r->in.level);
629                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
630                 ndr->depth++;
631                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
632                 ndr->depth--;
633                 ndr->depth--;
634         }
635         if (flags & NDR_OUT) {
636                 ndr_print_struct(ndr, "out", "NetServerSetInfo");
637                 ndr->depth++;
638                 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
639                 ndr->depth++;
640                 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
641                 ndr->depth--;
642                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
643                 ndr->depth--;
644         }
645         ndr->depth--;
646 }
647
648 _PUBLIC_ void ndr_print_NetGetDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetDCName *r)
649 {
650         ndr_print_struct(ndr, name, "NetGetDCName");
651         ndr->depth++;
652         if (flags & NDR_SET_VALUES) {
653                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
654         }
655         if (flags & NDR_IN) {
656                 ndr_print_struct(ndr, "in", "NetGetDCName");
657                 ndr->depth++;
658                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
659                 ndr->depth++;
660                 if (r->in.server_name) {
661                         ndr_print_string(ndr, "server_name", r->in.server_name);
662                 }
663                 ndr->depth--;
664                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
665                 ndr->depth++;
666                 if (r->in.domain_name) {
667                         ndr_print_string(ndr, "domain_name", r->in.domain_name);
668                 }
669                 ndr->depth--;
670                 ndr->depth--;
671         }
672         if (flags & NDR_OUT) {
673                 ndr_print_struct(ndr, "out", "NetGetDCName");
674                 ndr->depth++;
675                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
676                 ndr->depth++;
677                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
678                 ndr->depth++;
679                 if (*r->out.buffer) {
680                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
681                 }
682                 ndr->depth--;
683                 ndr->depth--;
684                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
685                 ndr->depth--;
686         }
687         ndr->depth--;
688 }
689
690 _PUBLIC_ void ndr_print_NetGetAnyDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetAnyDCName *r)
691 {
692         ndr_print_struct(ndr, name, "NetGetAnyDCName");
693         ndr->depth++;
694         if (flags & NDR_SET_VALUES) {
695                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
696         }
697         if (flags & NDR_IN) {
698                 ndr_print_struct(ndr, "in", "NetGetAnyDCName");
699                 ndr->depth++;
700                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
701                 ndr->depth++;
702                 if (r->in.server_name) {
703                         ndr_print_string(ndr, "server_name", r->in.server_name);
704                 }
705                 ndr->depth--;
706                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
707                 ndr->depth++;
708                 if (r->in.domain_name) {
709                         ndr_print_string(ndr, "domain_name", r->in.domain_name);
710                 }
711                 ndr->depth--;
712                 ndr->depth--;
713         }
714         if (flags & NDR_OUT) {
715                 ndr_print_struct(ndr, "out", "NetGetAnyDCName");
716                 ndr->depth++;
717                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
718                 ndr->depth++;
719                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
720                 ndr->depth++;
721                 if (*r->out.buffer) {
722                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
723                 }
724                 ndr->depth--;
725                 ndr->depth--;
726                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
727                 ndr->depth--;
728         }
729         ndr->depth--;
730 }
731
732 _PUBLIC_ void ndr_print_DsGetDcName(struct ndr_print *ndr, const char *name, int flags, const struct DsGetDcName *r)
733 {
734         ndr_print_struct(ndr, name, "DsGetDcName");
735         ndr->depth++;
736         if (flags & NDR_SET_VALUES) {
737                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
738         }
739         if (flags & NDR_IN) {
740                 ndr_print_struct(ndr, "in", "DsGetDcName");
741                 ndr->depth++;
742                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
743                 ndr->depth++;
744                 if (r->in.server_name) {
745                         ndr_print_string(ndr, "server_name", r->in.server_name);
746                 }
747                 ndr->depth--;
748                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
749                 ndr->depth++;
750                 ndr_print_string(ndr, "domain_name", r->in.domain_name);
751                 ndr->depth--;
752                 ndr_print_ptr(ndr, "domain_guid", r->in.domain_guid);
753                 ndr->depth++;
754                 if (r->in.domain_guid) {
755                         ndr_print_GUID(ndr, "domain_guid", r->in.domain_guid);
756                 }
757                 ndr->depth--;
758                 ndr_print_ptr(ndr, "site_name", r->in.site_name);
759                 ndr->depth++;
760                 if (r->in.site_name) {
761                         ndr_print_string(ndr, "site_name", r->in.site_name);
762                 }
763                 ndr->depth--;
764                 ndr_print_uint32(ndr, "flags", r->in.flags);
765                 ndr->depth--;
766         }
767         if (flags & NDR_OUT) {
768                 ndr_print_struct(ndr, "out", "DsGetDcName");
769                 ndr->depth++;
770                 ndr_print_ptr(ndr, "dc_info", r->out.dc_info);
771                 ndr->depth++;
772                 ndr_print_ptr(ndr, "dc_info", *r->out.dc_info);
773                 ndr->depth++;
774                 if (*r->out.dc_info) {
775                         ndr_print_DOMAIN_CONTROLLER_INFO(ndr, "dc_info", *r->out.dc_info);
776                 }
777                 ndr->depth--;
778                 ndr->depth--;
779                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
780                 ndr->depth--;
781         }
782         ndr->depth--;
783 }
784
785 _PUBLIC_ void ndr_print_NetUserAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetUserAdd *r)
786 {
787         ndr_print_struct(ndr, name, "NetUserAdd");
788         ndr->depth++;
789         if (flags & NDR_SET_VALUES) {
790                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
791         }
792         if (flags & NDR_IN) {
793                 ndr_print_struct(ndr, "in", "NetUserAdd");
794                 ndr->depth++;
795                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
796                 ndr->depth++;
797                 if (r->in.server_name) {
798                         ndr_print_string(ndr, "server_name", r->in.server_name);
799                 }
800                 ndr->depth--;
801                 ndr_print_uint32(ndr, "level", r->in.level);
802                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
803                 ndr->depth++;
804                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
805                 ndr->depth--;
806                 ndr->depth--;
807         }
808         if (flags & NDR_OUT) {
809                 ndr_print_struct(ndr, "out", "NetUserAdd");
810                 ndr->depth++;
811                 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
812                 ndr->depth++;
813                 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
814                 ndr->depth--;
815                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
816                 ndr->depth--;
817         }
818         ndr->depth--;
819 }
820
821 _PUBLIC_ void ndr_print_NetUserDel(struct ndr_print *ndr, const char *name, int flags, const struct NetUserDel *r)
822 {
823         ndr_print_struct(ndr, name, "NetUserDel");
824         ndr->depth++;
825         if (flags & NDR_SET_VALUES) {
826                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
827         }
828         if (flags & NDR_IN) {
829                 ndr_print_struct(ndr, "in", "NetUserDel");
830                 ndr->depth++;
831                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
832                 ndr->depth++;
833                 if (r->in.server_name) {
834                         ndr_print_string(ndr, "server_name", r->in.server_name);
835                 }
836                 ndr->depth--;
837                 ndr_print_ptr(ndr, "user_name", r->in.user_name);
838                 ndr->depth++;
839                 ndr_print_string(ndr, "user_name", r->in.user_name);
840                 ndr->depth--;
841                 ndr->depth--;
842         }
843         if (flags & NDR_OUT) {
844                 ndr_print_struct(ndr, "out", "NetUserDel");
845                 ndr->depth++;
846                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
847                 ndr->depth--;
848         }
849         ndr->depth--;
850 }
851
852 _PUBLIC_ void ndr_print_NetUserEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetUserEnum *r)
853 {
854         ndr_print_struct(ndr, name, "NetUserEnum");
855         ndr->depth++;
856         if (flags & NDR_SET_VALUES) {
857                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
858         }
859         if (flags & NDR_IN) {
860                 ndr_print_struct(ndr, "in", "NetUserEnum");
861                 ndr->depth++;
862                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
863                 ndr->depth++;
864                 if (r->in.server_name) {
865                         ndr_print_string(ndr, "server_name", r->in.server_name);
866                 }
867                 ndr->depth--;
868                 ndr_print_uint32(ndr, "level", r->in.level);
869                 ndr_print_uint32(ndr, "filter", r->in.filter);
870                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
871                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
872                 ndr->depth++;
873                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
874                 ndr->depth--;
875                 ndr->depth--;
876         }
877         if (flags & NDR_OUT) {
878                 ndr_print_struct(ndr, "out", "NetUserEnum");
879                 ndr->depth++;
880                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
881                 ndr->depth++;
882                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
883                 ndr->depth++;
884                 if (*r->out.buffer) {
885                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
886                 }
887                 ndr->depth--;
888                 ndr->depth--;
889                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
890                 ndr->depth++;
891                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
892                 ndr->depth--;
893                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
894                 ndr->depth++;
895                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
896                 ndr->depth--;
897                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
898                 ndr->depth++;
899                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
900                 ndr->depth--;
901                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
902                 ndr->depth--;
903         }
904         ndr->depth--;
905 }
906
907 _PUBLIC_ void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetQueryDisplayInformation *r)
908 {
909         ndr_print_struct(ndr, name, "NetQueryDisplayInformation");
910         ndr->depth++;
911         if (flags & NDR_SET_VALUES) {
912                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
913         }
914         if (flags & NDR_IN) {
915                 ndr_print_struct(ndr, "in", "NetQueryDisplayInformation");
916                 ndr->depth++;
917                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
918                 ndr->depth++;
919                 if (r->in.server_name) {
920                         ndr_print_string(ndr, "server_name", r->in.server_name);
921                 }
922                 ndr->depth--;
923                 ndr_print_uint32(ndr, "level", r->in.level);
924                 ndr_print_uint32(ndr, "idx", r->in.idx);
925                 ndr_print_uint32(ndr, "entries_requested", r->in.entries_requested);
926                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
927                 ndr->depth--;
928         }
929         if (flags & NDR_OUT) {
930                 ndr_print_struct(ndr, "out", "NetQueryDisplayInformation");
931                 ndr->depth++;
932                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
933                 ndr->depth++;
934                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
935                 ndr->depth--;
936                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
937                 ndr->depth--;
938         }
939         ndr->depth--;
940 }
941
942 _PUBLIC_ void ndr_print_NetGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupAdd *r)
943 {
944         ndr_print_struct(ndr, name, "NetGroupAdd");
945         ndr->depth++;
946         if (flags & NDR_SET_VALUES) {
947                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
948         }
949         if (flags & NDR_IN) {
950                 ndr_print_struct(ndr, "in", "NetGroupAdd");
951                 ndr->depth++;
952                 ndr_print_string(ndr, "server_name", r->in.server_name);
953                 ndr_print_uint32(ndr, "level", r->in.level);
954                 ndr_print_ptr(ndr, "buf", r->in.buf);
955                 ndr->depth++;
956                 ndr_print_uint8(ndr, "buf", *r->in.buf);
957                 ndr->depth--;
958                 ndr->depth--;
959         }
960         if (flags & NDR_OUT) {
961                 ndr_print_struct(ndr, "out", "NetGroupAdd");
962                 ndr->depth++;
963                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
964                 ndr->depth++;
965                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
966                 ndr->depth--;
967                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
968                 ndr->depth--;
969         }
970         ndr->depth--;
971 }
972
973 _PUBLIC_ void ndr_print_NetGroupDel(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupDel *r)
974 {
975         ndr_print_struct(ndr, name, "NetGroupDel");
976         ndr->depth++;
977         if (flags & NDR_SET_VALUES) {
978                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
979         }
980         if (flags & NDR_IN) {
981                 ndr_print_struct(ndr, "in", "NetGroupDel");
982                 ndr->depth++;
983                 ndr_print_string(ndr, "server_name", r->in.server_name);
984                 ndr_print_string(ndr, "group_name", r->in.group_name);
985                 ndr->depth--;
986         }
987         if (flags & NDR_OUT) {
988                 ndr_print_struct(ndr, "out", "NetGroupDel");
989                 ndr->depth++;
990                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
991                 ndr->depth--;
992         }
993         ndr->depth--;
994 }
995
996 _PUBLIC_ void ndr_print_NetGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupSetInfo *r)
997 {
998         ndr_print_struct(ndr, name, "NetGroupSetInfo");
999         ndr->depth++;
1000         if (flags & NDR_SET_VALUES) {
1001                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1002         }
1003         if (flags & NDR_IN) {
1004                 ndr_print_struct(ndr, "in", "NetGroupSetInfo");
1005                 ndr->depth++;
1006                 ndr_print_string(ndr, "server_name", r->in.server_name);
1007                 ndr_print_string(ndr, "group_name", r->in.group_name);
1008                 ndr_print_uint32(ndr, "level", r->in.level);
1009                 ndr_print_ptr(ndr, "buf", r->in.buf);
1010                 ndr->depth++;
1011                 ndr_print_uint8(ndr, "buf", *r->in.buf);
1012                 ndr->depth--;
1013                 ndr->depth--;
1014         }
1015         if (flags & NDR_OUT) {
1016                 ndr_print_struct(ndr, "out", "NetGroupSetInfo");
1017                 ndr->depth++;
1018                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
1019                 ndr->depth++;
1020                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
1021                 ndr->depth--;
1022                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1023                 ndr->depth--;
1024         }
1025         ndr->depth--;
1026 }
1027
1028 _PUBLIC_ void ndr_print_NetGroupGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupGetInfo *r)
1029 {
1030         ndr_print_struct(ndr, name, "NetGroupGetInfo");
1031         ndr->depth++;
1032         if (flags & NDR_SET_VALUES) {
1033                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1034         }
1035         if (flags & NDR_IN) {
1036                 ndr_print_struct(ndr, "in", "NetGroupGetInfo");
1037                 ndr->depth++;
1038                 ndr_print_string(ndr, "server_name", r->in.server_name);
1039                 ndr_print_string(ndr, "group_name", r->in.group_name);
1040                 ndr_print_uint32(ndr, "level", r->in.level);
1041                 ndr->depth--;
1042         }
1043         if (flags & NDR_OUT) {
1044                 ndr_print_struct(ndr, "out", "NetGroupGetInfo");
1045                 ndr->depth++;
1046                 ndr_print_ptr(ndr, "buf", r->out.buf);
1047                 ndr->depth++;
1048                 ndr_print_ptr(ndr, "buf", *r->out.buf);
1049                 ndr->depth++;
1050                 if (*r->out.buf) {
1051                         ndr_print_uint8(ndr, "buf", **r->out.buf);
1052                 }
1053                 ndr->depth--;
1054                 ndr->depth--;
1055                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1056                 ndr->depth--;
1057         }
1058         ndr->depth--;
1059 }
1060