Re-run make idl.
[Samba.git] / source / librpc / gen_ndr / ndr_libnetapi.c
blobbf2bbd0c1fe5e815cec3c6f5e545978a409b7b8f
1 /* parser auto-generated by pidl */
3 #include "includes.h"
4 #include "librpc/gen_ndr/ndr_libnetapi.h"
6 _PUBLIC_ enum ndr_err_code ndr_push_NET_API_STATUS(struct ndr_push *ndr, int ndr_flags, enum NET_API_STATUS r)
8 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
9 return NDR_ERR_SUCCESS;
12 _PUBLIC_ enum ndr_err_code ndr_pull_NET_API_STATUS(struct ndr_pull *ndr, int ndr_flags, enum NET_API_STATUS *r)
14 uint32_t v;
15 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
16 *r = v;
17 return NDR_ERR_SUCCESS;
20 _PUBLIC_ void ndr_print_NET_API_STATUS(struct ndr_print *ndr, const char *name, enum NET_API_STATUS r)
22 const char *val = NULL;
24 switch (r) {
25 case NERR_Success: val = "NERR_Success"; break;
27 ndr_print_enum(ndr, name, "ENUM", val, r);
30 _PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_1005(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_1005 *r)
32 if (ndr_flags & NDR_SCALARS) {
33 NDR_CHECK(ndr_push_align(ndr, 4));
34 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv1005_comment));
36 if (ndr_flags & NDR_BUFFERS) {
38 return NDR_ERR_SUCCESS;
41 _PUBLIC_ enum ndr_err_code ndr_pull_SERVER_INFO_1005(struct ndr_pull *ndr, int ndr_flags, struct SERVER_INFO_1005 *r)
43 if (ndr_flags & NDR_SCALARS) {
44 NDR_CHECK(ndr_pull_align(ndr, 4));
45 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv1005_comment));
47 if (ndr_flags & NDR_BUFFERS) {
49 return NDR_ERR_SUCCESS;
52 _PUBLIC_ void ndr_print_SERVER_INFO_1005(struct ndr_print *ndr, const char *name, const struct SERVER_INFO_1005 *r)
54 ndr_print_struct(ndr, name, "SERVER_INFO_1005");
55 ndr->depth++;
56 ndr_print_string(ndr, "sv1005_comment", r->sv1005_comment);
57 ndr->depth--;
60 _PUBLIC_ enum ndr_err_code ndr_push_DOMAIN_CONTROLLER_INFO(struct ndr_push *ndr, int ndr_flags, const struct DOMAIN_CONTROLLER_INFO *r)
62 if (ndr_flags & NDR_SCALARS) {
63 NDR_CHECK(ndr_push_align(ndr, 4));
64 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_controller_name));
65 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_controller_address));
66 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->domain_controller_address_type));
67 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->domain_guid));
68 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_name));
69 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->dns_forest_name));
70 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->flags));
71 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->dc_site_name));
72 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->client_site_name));
74 if (ndr_flags & NDR_BUFFERS) {
76 return NDR_ERR_SUCCESS;
79 _PUBLIC_ enum ndr_err_code ndr_pull_DOMAIN_CONTROLLER_INFO(struct ndr_pull *ndr, int ndr_flags, struct DOMAIN_CONTROLLER_INFO *r)
81 if (ndr_flags & NDR_SCALARS) {
82 NDR_CHECK(ndr_pull_align(ndr, 4));
83 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_controller_name));
84 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_controller_address));
85 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->domain_controller_address_type));
86 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->domain_guid));
87 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_name));
88 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->dns_forest_name));
89 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flags));
90 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->dc_site_name));
91 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->client_site_name));
93 if (ndr_flags & NDR_BUFFERS) {
95 return NDR_ERR_SUCCESS;
98 _PUBLIC_ void ndr_print_DOMAIN_CONTROLLER_INFO(struct ndr_print *ndr, const char *name, const struct DOMAIN_CONTROLLER_INFO *r)
100 ndr_print_struct(ndr, name, "DOMAIN_CONTROLLER_INFO");
101 ndr->depth++;
102 ndr_print_string(ndr, "domain_controller_name", r->domain_controller_name);
103 ndr_print_string(ndr, "domain_controller_address", r->domain_controller_address);
104 ndr_print_uint32(ndr, "domain_controller_address_type", r->domain_controller_address_type);
105 ndr_print_GUID(ndr, "domain_guid", &r->domain_guid);
106 ndr_print_string(ndr, "domain_name", r->domain_name);
107 ndr_print_string(ndr, "dns_forest_name", r->dns_forest_name);
108 ndr_print_uint32(ndr, "flags", r->flags);
109 ndr_print_string(ndr, "dc_site_name", r->dc_site_name);
110 ndr_print_string(ndr, "client_site_name", r->client_site_name);
111 ndr->depth--;
114 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_0(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_0 *r)
116 if (ndr_flags & NDR_SCALARS) {
117 NDR_CHECK(ndr_push_align(ndr, 4));
118 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri0_name));
120 if (ndr_flags & NDR_BUFFERS) {
122 return NDR_ERR_SUCCESS;
125 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_0(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_0 *r)
127 if (ndr_flags & NDR_SCALARS) {
128 NDR_CHECK(ndr_pull_align(ndr, 4));
129 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri0_name));
131 if (ndr_flags & NDR_BUFFERS) {
133 return NDR_ERR_SUCCESS;
136 _PUBLIC_ void ndr_print_USER_INFO_0(struct ndr_print *ndr, const char *name, const struct USER_INFO_0 *r)
138 ndr_print_struct(ndr, name, "USER_INFO_0");
139 ndr->depth++;
140 ndr_print_string(ndr, "usri0_name", r->usri0_name);
141 ndr->depth--;
144 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1 *r)
146 if (ndr_flags & NDR_SCALARS) {
147 NDR_CHECK(ndr_push_align(ndr, 4));
148 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_name));
149 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_password));
150 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_password_age));
151 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_priv));
152 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_home_dir));
153 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_comment));
154 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_flags));
155 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_script_path));
157 if (ndr_flags & NDR_BUFFERS) {
159 return NDR_ERR_SUCCESS;
162 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1 *r)
164 if (ndr_flags & NDR_SCALARS) {
165 NDR_CHECK(ndr_pull_align(ndr, 4));
166 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_name));
167 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_password));
168 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_password_age));
169 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_priv));
170 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_home_dir));
171 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_comment));
172 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_flags));
173 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_script_path));
175 if (ndr_flags & NDR_BUFFERS) {
177 return NDR_ERR_SUCCESS;
180 _PUBLIC_ void ndr_print_USER_INFO_1(struct ndr_print *ndr, const char *name, const struct USER_INFO_1 *r)
182 ndr_print_struct(ndr, name, "USER_INFO_1");
183 ndr->depth++;
184 ndr_print_string(ndr, "usri1_name", r->usri1_name);
185 ndr_print_string(ndr, "usri1_password", r->usri1_password);
186 ndr_print_uint32(ndr, "usri1_password_age", r->usri1_password_age);
187 ndr_print_uint32(ndr, "usri1_priv", r->usri1_priv);
188 ndr_print_string(ndr, "usri1_home_dir", r->usri1_home_dir);
189 ndr_print_string(ndr, "usri1_comment", r->usri1_comment);
190 ndr_print_uint32(ndr, "usri1_flags", r->usri1_flags);
191 ndr_print_string(ndr, "usri1_script_path", r->usri1_script_path);
192 ndr->depth--;
195 _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r)
197 ndr_print_struct(ndr, name, "NetJoinDomain");
198 ndr->depth++;
199 if (flags & NDR_SET_VALUES) {
200 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
202 if (flags & NDR_IN) {
203 ndr_print_struct(ndr, "in", "NetJoinDomain");
204 ndr->depth++;
205 ndr_print_ptr(ndr, "server", r->in.server);
206 ndr->depth++;
207 if (r->in.server) {
208 ndr_print_string(ndr, "server", r->in.server);
210 ndr->depth--;
211 ndr_print_ptr(ndr, "domain", r->in.domain);
212 ndr->depth++;
213 ndr_print_string(ndr, "domain", r->in.domain);
214 ndr->depth--;
215 ndr_print_ptr(ndr, "account_ou", r->in.account_ou);
216 ndr->depth++;
217 if (r->in.account_ou) {
218 ndr_print_string(ndr, "account_ou", r->in.account_ou);
220 ndr->depth--;
221 ndr_print_ptr(ndr, "account", r->in.account);
222 ndr->depth++;
223 if (r->in.account) {
224 ndr_print_string(ndr, "account", r->in.account);
226 ndr->depth--;
227 ndr_print_ptr(ndr, "password", r->in.password);
228 ndr->depth++;
229 if (r->in.password) {
230 ndr_print_string(ndr, "password", r->in.password);
232 ndr->depth--;
233 ndr_print_uint32(ndr, "join_flags", r->in.join_flags);
234 ndr->depth--;
236 if (flags & NDR_OUT) {
237 ndr_print_struct(ndr, "out", "NetJoinDomain");
238 ndr->depth++;
239 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
240 ndr->depth--;
242 ndr->depth--;
245 _PUBLIC_ void ndr_print_NetUnjoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetUnjoinDomain *r)
247 ndr_print_struct(ndr, name, "NetUnjoinDomain");
248 ndr->depth++;
249 if (flags & NDR_SET_VALUES) {
250 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
252 if (flags & NDR_IN) {
253 ndr_print_struct(ndr, "in", "NetUnjoinDomain");
254 ndr->depth++;
255 ndr_print_ptr(ndr, "server_name", r->in.server_name);
256 ndr->depth++;
257 if (r->in.server_name) {
258 ndr_print_string(ndr, "server_name", r->in.server_name);
260 ndr->depth--;
261 ndr_print_ptr(ndr, "account", r->in.account);
262 ndr->depth++;
263 if (r->in.account) {
264 ndr_print_string(ndr, "account", r->in.account);
266 ndr->depth--;
267 ndr_print_ptr(ndr, "password", r->in.password);
268 ndr->depth++;
269 if (r->in.password) {
270 ndr_print_string(ndr, "password", r->in.password);
272 ndr->depth--;
273 ndr_print_uint32(ndr, "unjoin_flags", r->in.unjoin_flags);
274 ndr->depth--;
276 if (flags & NDR_OUT) {
277 ndr_print_struct(ndr, "out", "NetUnjoinDomain");
278 ndr->depth++;
279 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
280 ndr->depth--;
282 ndr->depth--;
285 _PUBLIC_ void ndr_print_NetGetJoinInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinInformation *r)
287 ndr_print_struct(ndr, name, "NetGetJoinInformation");
288 ndr->depth++;
289 if (flags & NDR_SET_VALUES) {
290 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
292 if (flags & NDR_IN) {
293 ndr_print_struct(ndr, "in", "NetGetJoinInformation");
294 ndr->depth++;
295 ndr_print_ptr(ndr, "server_name", r->in.server_name);
296 ndr->depth++;
297 if (r->in.server_name) {
298 ndr_print_string(ndr, "server_name", r->in.server_name);
300 ndr->depth--;
301 ndr->depth--;
303 if (flags & NDR_OUT) {
304 ndr_print_struct(ndr, "out", "NetGetJoinInformation");
305 ndr->depth++;
306 ndr_print_ptr(ndr, "name_buffer", r->out.name_buffer);
307 ndr->depth++;
308 ndr_print_ptr(ndr, "name_buffer", *r->out.name_buffer);
309 ndr->depth++;
310 if (*r->out.name_buffer) {
311 ndr_print_string(ndr, "name_buffer", *r->out.name_buffer);
313 ndr->depth--;
314 ndr->depth--;
315 ndr_print_ptr(ndr, "name_type", r->out.name_type);
316 ndr->depth++;
317 ndr_print_uint16(ndr, "name_type", *r->out.name_type);
318 ndr->depth--;
319 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
320 ndr->depth--;
322 ndr->depth--;
325 _PUBLIC_ void ndr_print_NetGetJoinableOUs(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinableOUs *r)
327 ndr_print_struct(ndr, name, "NetGetJoinableOUs");
328 ndr->depth++;
329 if (flags & NDR_SET_VALUES) {
330 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
332 if (flags & NDR_IN) {
333 ndr_print_struct(ndr, "in", "NetGetJoinableOUs");
334 ndr->depth++;
335 ndr_print_ptr(ndr, "server_name", r->in.server_name);
336 ndr->depth++;
337 if (r->in.server_name) {
338 ndr_print_string(ndr, "server_name", r->in.server_name);
340 ndr->depth--;
341 ndr_print_ptr(ndr, "domain", r->in.domain);
342 ndr->depth++;
343 ndr_print_string(ndr, "domain", r->in.domain);
344 ndr->depth--;
345 ndr_print_ptr(ndr, "account", r->in.account);
346 ndr->depth++;
347 if (r->in.account) {
348 ndr_print_string(ndr, "account", r->in.account);
350 ndr->depth--;
351 ndr_print_ptr(ndr, "password", r->in.password);
352 ndr->depth++;
353 if (r->in.password) {
354 ndr_print_string(ndr, "password", r->in.password);
356 ndr->depth--;
357 ndr->depth--;
359 if (flags & NDR_OUT) {
360 ndr_print_struct(ndr, "out", "NetGetJoinableOUs");
361 ndr->depth++;
362 ndr_print_ptr(ndr, "ou_count", r->out.ou_count);
363 ndr->depth++;
364 ndr_print_uint32(ndr, "ou_count", *r->out.ou_count);
365 ndr->depth--;
366 ndr_print_ptr(ndr, "ous", r->out.ous);
367 ndr->depth++;
368 ndr_print_ptr(ndr, "ous", *r->out.ous);
369 ndr->depth++;
370 if (*r->out.ous) {
371 ndr_print_ptr(ndr, "ous", **r->out.ous);
372 ndr->depth++;
373 if (**r->out.ous) {
374 ndr_print_string(ndr, "ous", **r->out.ous);
376 ndr->depth--;
378 ndr->depth--;
379 ndr->depth--;
380 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
381 ndr->depth--;
383 ndr->depth--;
386 _PUBLIC_ void ndr_print_NetServerGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerGetInfo *r)
388 ndr_print_struct(ndr, name, "NetServerGetInfo");
389 ndr->depth++;
390 if (flags & NDR_SET_VALUES) {
391 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
393 if (flags & NDR_IN) {
394 ndr_print_struct(ndr, "in", "NetServerGetInfo");
395 ndr->depth++;
396 ndr_print_ptr(ndr, "server_name", r->in.server_name);
397 ndr->depth++;
398 if (r->in.server_name) {
399 ndr_print_string(ndr, "server_name", r->in.server_name);
401 ndr->depth--;
402 ndr_print_uint32(ndr, "level", r->in.level);
403 ndr->depth--;
405 if (flags & NDR_OUT) {
406 ndr_print_struct(ndr, "out", "NetServerGetInfo");
407 ndr->depth++;
408 ndr_print_ptr(ndr, "buffer", r->out.buffer);
409 ndr->depth++;
410 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
411 ndr->depth++;
412 if (*r->out.buffer) {
413 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
415 ndr->depth--;
416 ndr->depth--;
417 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
418 ndr->depth--;
420 ndr->depth--;
423 _PUBLIC_ void ndr_print_NetServerSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerSetInfo *r)
425 ndr_print_struct(ndr, name, "NetServerSetInfo");
426 ndr->depth++;
427 if (flags & NDR_SET_VALUES) {
428 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
430 if (flags & NDR_IN) {
431 ndr_print_struct(ndr, "in", "NetServerSetInfo");
432 ndr->depth++;
433 ndr_print_ptr(ndr, "server_name", r->in.server_name);
434 ndr->depth++;
435 if (r->in.server_name) {
436 ndr_print_string(ndr, "server_name", r->in.server_name);
438 ndr->depth--;
439 ndr_print_uint32(ndr, "level", r->in.level);
440 ndr_print_ptr(ndr, "buffer", r->in.buffer);
441 ndr->depth++;
442 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
443 ndr->depth--;
444 ndr->depth--;
446 if (flags & NDR_OUT) {
447 ndr_print_struct(ndr, "out", "NetServerSetInfo");
448 ndr->depth++;
449 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
450 ndr->depth++;
451 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
452 ndr->depth--;
453 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
454 ndr->depth--;
456 ndr->depth--;
459 _PUBLIC_ void ndr_print_NetGetDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetDCName *r)
461 ndr_print_struct(ndr, name, "NetGetDCName");
462 ndr->depth++;
463 if (flags & NDR_SET_VALUES) {
464 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
466 if (flags & NDR_IN) {
467 ndr_print_struct(ndr, "in", "NetGetDCName");
468 ndr->depth++;
469 ndr_print_ptr(ndr, "server_name", r->in.server_name);
470 ndr->depth++;
471 if (r->in.server_name) {
472 ndr_print_string(ndr, "server_name", r->in.server_name);
474 ndr->depth--;
475 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
476 ndr->depth++;
477 if (r->in.domain_name) {
478 ndr_print_string(ndr, "domain_name", r->in.domain_name);
480 ndr->depth--;
481 ndr->depth--;
483 if (flags & NDR_OUT) {
484 ndr_print_struct(ndr, "out", "NetGetDCName");
485 ndr->depth++;
486 ndr_print_ptr(ndr, "buffer", r->out.buffer);
487 ndr->depth++;
488 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
489 ndr->depth++;
490 if (*r->out.buffer) {
491 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
493 ndr->depth--;
494 ndr->depth--;
495 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
496 ndr->depth--;
498 ndr->depth--;
501 _PUBLIC_ void ndr_print_NetGetAnyDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetAnyDCName *r)
503 ndr_print_struct(ndr, name, "NetGetAnyDCName");
504 ndr->depth++;
505 if (flags & NDR_SET_VALUES) {
506 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
508 if (flags & NDR_IN) {
509 ndr_print_struct(ndr, "in", "NetGetAnyDCName");
510 ndr->depth++;
511 ndr_print_ptr(ndr, "server_name", r->in.server_name);
512 ndr->depth++;
513 if (r->in.server_name) {
514 ndr_print_string(ndr, "server_name", r->in.server_name);
516 ndr->depth--;
517 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
518 ndr->depth++;
519 if (r->in.domain_name) {
520 ndr_print_string(ndr, "domain_name", r->in.domain_name);
522 ndr->depth--;
523 ndr->depth--;
525 if (flags & NDR_OUT) {
526 ndr_print_struct(ndr, "out", "NetGetAnyDCName");
527 ndr->depth++;
528 ndr_print_ptr(ndr, "buffer", r->out.buffer);
529 ndr->depth++;
530 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
531 ndr->depth++;
532 if (*r->out.buffer) {
533 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
535 ndr->depth--;
536 ndr->depth--;
537 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
538 ndr->depth--;
540 ndr->depth--;
543 _PUBLIC_ void ndr_print_DsGetDcName(struct ndr_print *ndr, const char *name, int flags, const struct DsGetDcName *r)
545 ndr_print_struct(ndr, name, "DsGetDcName");
546 ndr->depth++;
547 if (flags & NDR_SET_VALUES) {
548 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
550 if (flags & NDR_IN) {
551 ndr_print_struct(ndr, "in", "DsGetDcName");
552 ndr->depth++;
553 ndr_print_ptr(ndr, "server_name", r->in.server_name);
554 ndr->depth++;
555 if (r->in.server_name) {
556 ndr_print_string(ndr, "server_name", r->in.server_name);
558 ndr->depth--;
559 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
560 ndr->depth++;
561 ndr_print_string(ndr, "domain_name", r->in.domain_name);
562 ndr->depth--;
563 ndr_print_ptr(ndr, "domain_guid", r->in.domain_guid);
564 ndr->depth++;
565 if (r->in.domain_guid) {
566 ndr_print_GUID(ndr, "domain_guid", r->in.domain_guid);
568 ndr->depth--;
569 ndr_print_ptr(ndr, "site_name", r->in.site_name);
570 ndr->depth++;
571 if (r->in.site_name) {
572 ndr_print_string(ndr, "site_name", r->in.site_name);
574 ndr->depth--;
575 ndr_print_uint32(ndr, "flags", r->in.flags);
576 ndr->depth--;
578 if (flags & NDR_OUT) {
579 ndr_print_struct(ndr, "out", "DsGetDcName");
580 ndr->depth++;
581 ndr_print_ptr(ndr, "dc_info", r->out.dc_info);
582 ndr->depth++;
583 ndr_print_ptr(ndr, "dc_info", *r->out.dc_info);
584 ndr->depth++;
585 if (*r->out.dc_info) {
586 ndr_print_DOMAIN_CONTROLLER_INFO(ndr, "dc_info", *r->out.dc_info);
588 ndr->depth--;
589 ndr->depth--;
590 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
591 ndr->depth--;
593 ndr->depth--;
596 _PUBLIC_ void ndr_print_NetUserAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetUserAdd *r)
598 ndr_print_struct(ndr, name, "NetUserAdd");
599 ndr->depth++;
600 if (flags & NDR_SET_VALUES) {
601 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
603 if (flags & NDR_IN) {
604 ndr_print_struct(ndr, "in", "NetUserAdd");
605 ndr->depth++;
606 ndr_print_ptr(ndr, "server_name", r->in.server_name);
607 ndr->depth++;
608 if (r->in.server_name) {
609 ndr_print_string(ndr, "server_name", r->in.server_name);
611 ndr->depth--;
612 ndr_print_uint32(ndr, "level", r->in.level);
613 ndr_print_ptr(ndr, "buffer", r->in.buffer);
614 ndr->depth++;
615 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
616 ndr->depth--;
617 ndr->depth--;
619 if (flags & NDR_OUT) {
620 ndr_print_struct(ndr, "out", "NetUserAdd");
621 ndr->depth++;
622 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
623 ndr->depth++;
624 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
625 ndr->depth--;
626 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
627 ndr->depth--;
629 ndr->depth--;
632 _PUBLIC_ void ndr_print_NetUserDel(struct ndr_print *ndr, const char *name, int flags, const struct NetUserDel *r)
634 ndr_print_struct(ndr, name, "NetUserDel");
635 ndr->depth++;
636 if (flags & NDR_SET_VALUES) {
637 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
639 if (flags & NDR_IN) {
640 ndr_print_struct(ndr, "in", "NetUserDel");
641 ndr->depth++;
642 ndr_print_ptr(ndr, "server_name", r->in.server_name);
643 ndr->depth++;
644 if (r->in.server_name) {
645 ndr_print_string(ndr, "server_name", r->in.server_name);
647 ndr->depth--;
648 ndr_print_ptr(ndr, "user_name", r->in.user_name);
649 ndr->depth++;
650 ndr_print_string(ndr, "user_name", r->in.user_name);
651 ndr->depth--;
652 ndr->depth--;
654 if (flags & NDR_OUT) {
655 ndr_print_struct(ndr, "out", "NetUserDel");
656 ndr->depth++;
657 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
658 ndr->depth--;
660 ndr->depth--;
663 _PUBLIC_ void ndr_print_NetUserEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetUserEnum *r)
665 ndr_print_struct(ndr, name, "NetUserEnum");
666 ndr->depth++;
667 if (flags & NDR_SET_VALUES) {
668 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
670 if (flags & NDR_IN) {
671 ndr_print_struct(ndr, "in", "NetUserEnum");
672 ndr->depth++;
673 ndr_print_ptr(ndr, "server_name", r->in.server_name);
674 ndr->depth++;
675 if (r->in.server_name) {
676 ndr_print_string(ndr, "server_name", r->in.server_name);
678 ndr->depth--;
679 ndr_print_uint32(ndr, "level", r->in.level);
680 ndr_print_uint32(ndr, "filter", r->in.filter);
681 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
682 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
683 ndr->depth++;
684 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
685 ndr->depth--;
686 ndr->depth--;
688 if (flags & NDR_OUT) {
689 ndr_print_struct(ndr, "out", "NetUserEnum");
690 ndr->depth++;
691 ndr_print_ptr(ndr, "buffer", r->out.buffer);
692 ndr->depth++;
693 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
694 ndr->depth++;
695 if (*r->out.buffer) {
696 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
698 ndr->depth--;
699 ndr->depth--;
700 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
701 ndr->depth++;
702 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
703 ndr->depth--;
704 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
705 ndr->depth++;
706 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
707 ndr->depth--;
708 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
709 ndr->depth++;
710 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
711 ndr->depth--;
712 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
713 ndr->depth--;
715 ndr->depth--;