1 /* parser auto-generated by pidl */
4 #include "bin/default/librpc/gen_ndr/ndr_unixinfo.h"
6 #include "librpc/gen_ndr/ndr_security.h"
7 static enum ndr_err_code ndr_push_unixinfo_GetPWUidInfo(struct ndr_push *ndr, int ndr_flags, const struct unixinfo_GetPWUidInfo *r)
9 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
10 if (ndr_flags & NDR_SCALARS) {
11 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->shell, CH_UTF8)));
12 NDR_CHECK(ndr_push_align(ndr, 4));
13 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->status));
14 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->homedir, CH_UTF8)));
15 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
16 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->homedir, CH_UTF8)));
17 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->homedir, ndr_charset_length(r->homedir, CH_UTF8), sizeof(uint8_t), CH_UTF8));
18 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
19 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->shell, CH_UTF8)));
20 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->shell, ndr_charset_length(r->shell, CH_UTF8), sizeof(uint8_t), CH_UTF8));
21 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
23 if (ndr_flags & NDR_BUFFERS) {
25 return NDR_ERR_SUCCESS;
28 static enum ndr_err_code ndr_pull_unixinfo_GetPWUidInfo(struct ndr_pull *ndr, int ndr_flags, struct unixinfo_GetPWUidInfo *r)
30 uint32_t size_homedir_0 = 0;
31 uint32_t length_homedir_0 = 0;
32 uint32_t size_shell_0 = 0;
33 uint32_t length_shell_0 = 0;
34 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
35 if (ndr_flags & NDR_SCALARS) {
36 NDR_CHECK(ndr_pull_array_size(ndr, &r->shell));
37 NDR_CHECK(ndr_pull_align(ndr, 4));
38 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->status));
39 NDR_CHECK(ndr_pull_array_size(ndr, &r->homedir));
40 NDR_CHECK(ndr_pull_array_length(ndr, &r->homedir));
41 size_homedir_0 = ndr_get_array_size(ndr, &r->homedir);
42 length_homedir_0 = ndr_get_array_length(ndr, &r->homedir);
43 if (length_homedir_0 > size_homedir_0) {
44 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_homedir_0, length_homedir_0);
46 NDR_CHECK(ndr_check_string_terminator(ndr, length_homedir_0, sizeof(uint8_t)));
47 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->homedir, length_homedir_0, sizeof(uint8_t), CH_UTF8));
48 NDR_CHECK(ndr_pull_array_length(ndr, &r->shell));
49 size_shell_0 = ndr_get_array_size(ndr, &r->shell);
50 length_shell_0 = ndr_get_array_length(ndr, &r->shell);
51 if (length_shell_0 > size_shell_0) {
52 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_shell_0, length_shell_0);
54 NDR_CHECK(ndr_check_string_terminator(ndr, length_shell_0, sizeof(uint8_t)));
55 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->shell, length_shell_0, sizeof(uint8_t), CH_UTF8));
56 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
58 if (ndr_flags & NDR_BUFFERS) {
60 return NDR_ERR_SUCCESS;
63 _PUBLIC_ void ndr_print_unixinfo_GetPWUidInfo(struct ndr_print *ndr, const char *name, const struct unixinfo_GetPWUidInfo *r)
65 ndr_print_struct(ndr, name, "unixinfo_GetPWUidInfo");
66 if (r == NULL) { ndr_print_null(ndr); return; }
68 ndr_print_NTSTATUS(ndr, "status", r->status);
69 ndr_print_string(ndr, "homedir", r->homedir);
70 ndr_print_string(ndr, "shell", r->shell);
74 static enum ndr_err_code ndr_push_unixinfo_SidToUid(struct ndr_push *ndr, int flags, const struct unixinfo_SidToUid *r)
76 NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
78 NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS, &r->in.sid));
80 if (flags & NDR_OUT) {
81 if (r->out.uid == NULL) {
82 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
84 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, *r->out.uid));
85 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
87 return NDR_ERR_SUCCESS;
90 static enum ndr_err_code ndr_pull_unixinfo_SidToUid(struct ndr_pull *ndr, int flags, struct unixinfo_SidToUid *r)
92 TALLOC_CTX *_mem_save_uid_0;
93 NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
97 NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS, &r->in.sid));
98 NDR_PULL_ALLOC(ndr, r->out.uid);
99 ZERO_STRUCTP(r->out.uid);
101 if (flags & NDR_OUT) {
102 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
103 NDR_PULL_ALLOC(ndr, r->out.uid);
105 _mem_save_uid_0 = NDR_PULL_GET_MEM_CTX(ndr);
106 NDR_PULL_SET_MEM_CTX(ndr, r->out.uid, LIBNDR_FLAG_REF_ALLOC);
107 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, r->out.uid));
108 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_uid_0, LIBNDR_FLAG_REF_ALLOC);
109 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
111 return NDR_ERR_SUCCESS;
114 _PUBLIC_ void ndr_print_unixinfo_SidToUid(struct ndr_print *ndr, const char *name, int flags, const struct unixinfo_SidToUid *r)
116 ndr_print_struct(ndr, name, "unixinfo_SidToUid");
117 if (r == NULL) { ndr_print_null(ndr); return; }
119 if (flags & NDR_SET_VALUES) {
120 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
122 if (flags & NDR_IN) {
123 ndr_print_struct(ndr, "in", "unixinfo_SidToUid");
125 ndr_print_dom_sid(ndr, "sid", &r->in.sid);
128 if (flags & NDR_OUT) {
129 ndr_print_struct(ndr, "out", "unixinfo_SidToUid");
131 ndr_print_ptr(ndr, "uid", r->out.uid);
133 ndr_print_hyper(ndr, "uid", *r->out.uid);
135 ndr_print_NTSTATUS(ndr, "result", r->out.result);
141 static enum ndr_err_code ndr_push_unixinfo_UidToSid(struct ndr_push *ndr, int flags, const struct unixinfo_UidToSid *r)
143 NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
144 if (flags & NDR_IN) {
145 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.uid));
147 if (flags & NDR_OUT) {
148 if (r->out.sid == NULL) {
149 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
151 NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS, r->out.sid));
152 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
154 return NDR_ERR_SUCCESS;
157 static enum ndr_err_code ndr_pull_unixinfo_UidToSid(struct ndr_pull *ndr, int flags, struct unixinfo_UidToSid *r)
159 TALLOC_CTX *_mem_save_sid_0;
160 NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
161 if (flags & NDR_IN) {
164 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.uid));
165 NDR_PULL_ALLOC(ndr, r->out.sid);
166 ZERO_STRUCTP(r->out.sid);
168 if (flags & NDR_OUT) {
169 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
170 NDR_PULL_ALLOC(ndr, r->out.sid);
172 _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
173 NDR_PULL_SET_MEM_CTX(ndr, r->out.sid, LIBNDR_FLAG_REF_ALLOC);
174 NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS, r->out.sid));
175 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, LIBNDR_FLAG_REF_ALLOC);
176 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
178 return NDR_ERR_SUCCESS;
181 _PUBLIC_ void ndr_print_unixinfo_UidToSid(struct ndr_print *ndr, const char *name, int flags, const struct unixinfo_UidToSid *r)
183 ndr_print_struct(ndr, name, "unixinfo_UidToSid");
184 if (r == NULL) { ndr_print_null(ndr); return; }
186 if (flags & NDR_SET_VALUES) {
187 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
189 if (flags & NDR_IN) {
190 ndr_print_struct(ndr, "in", "unixinfo_UidToSid");
192 ndr_print_hyper(ndr, "uid", r->in.uid);
195 if (flags & NDR_OUT) {
196 ndr_print_struct(ndr, "out", "unixinfo_UidToSid");
198 ndr_print_ptr(ndr, "sid", r->out.sid);
200 ndr_print_dom_sid(ndr, "sid", r->out.sid);
202 ndr_print_NTSTATUS(ndr, "result", r->out.result);
208 static enum ndr_err_code ndr_push_unixinfo_SidToGid(struct ndr_push *ndr, int flags, const struct unixinfo_SidToGid *r)
210 NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
211 if (flags & NDR_IN) {
212 NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS, &r->in.sid));
214 if (flags & NDR_OUT) {
215 if (r->out.gid == NULL) {
216 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
218 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, *r->out.gid));
219 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
221 return NDR_ERR_SUCCESS;
224 static enum ndr_err_code ndr_pull_unixinfo_SidToGid(struct ndr_pull *ndr, int flags, struct unixinfo_SidToGid *r)
226 TALLOC_CTX *_mem_save_gid_0;
227 NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
228 if (flags & NDR_IN) {
231 NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS, &r->in.sid));
232 NDR_PULL_ALLOC(ndr, r->out.gid);
233 ZERO_STRUCTP(r->out.gid);
235 if (flags & NDR_OUT) {
236 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
237 NDR_PULL_ALLOC(ndr, r->out.gid);
239 _mem_save_gid_0 = NDR_PULL_GET_MEM_CTX(ndr);
240 NDR_PULL_SET_MEM_CTX(ndr, r->out.gid, LIBNDR_FLAG_REF_ALLOC);
241 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, r->out.gid));
242 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_gid_0, LIBNDR_FLAG_REF_ALLOC);
243 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
245 return NDR_ERR_SUCCESS;
248 _PUBLIC_ void ndr_print_unixinfo_SidToGid(struct ndr_print *ndr, const char *name, int flags, const struct unixinfo_SidToGid *r)
250 ndr_print_struct(ndr, name, "unixinfo_SidToGid");
251 if (r == NULL) { ndr_print_null(ndr); return; }
253 if (flags & NDR_SET_VALUES) {
254 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
256 if (flags & NDR_IN) {
257 ndr_print_struct(ndr, "in", "unixinfo_SidToGid");
259 ndr_print_dom_sid(ndr, "sid", &r->in.sid);
262 if (flags & NDR_OUT) {
263 ndr_print_struct(ndr, "out", "unixinfo_SidToGid");
265 ndr_print_ptr(ndr, "gid", r->out.gid);
267 ndr_print_hyper(ndr, "gid", *r->out.gid);
269 ndr_print_NTSTATUS(ndr, "result", r->out.result);
275 static enum ndr_err_code ndr_push_unixinfo_GidToSid(struct ndr_push *ndr, int flags, const struct unixinfo_GidToSid *r)
277 NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
278 if (flags & NDR_IN) {
279 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.gid));
281 if (flags & NDR_OUT) {
282 if (r->out.sid == NULL) {
283 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
285 NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS, r->out.sid));
286 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
288 return NDR_ERR_SUCCESS;
291 static enum ndr_err_code ndr_pull_unixinfo_GidToSid(struct ndr_pull *ndr, int flags, struct unixinfo_GidToSid *r)
293 TALLOC_CTX *_mem_save_sid_0;
294 NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
295 if (flags & NDR_IN) {
298 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.gid));
299 NDR_PULL_ALLOC(ndr, r->out.sid);
300 ZERO_STRUCTP(r->out.sid);
302 if (flags & NDR_OUT) {
303 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
304 NDR_PULL_ALLOC(ndr, r->out.sid);
306 _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
307 NDR_PULL_SET_MEM_CTX(ndr, r->out.sid, LIBNDR_FLAG_REF_ALLOC);
308 NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS, r->out.sid));
309 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, LIBNDR_FLAG_REF_ALLOC);
310 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
312 return NDR_ERR_SUCCESS;
315 _PUBLIC_ void ndr_print_unixinfo_GidToSid(struct ndr_print *ndr, const char *name, int flags, const struct unixinfo_GidToSid *r)
317 ndr_print_struct(ndr, name, "unixinfo_GidToSid");
318 if (r == NULL) { ndr_print_null(ndr); return; }
320 if (flags & NDR_SET_VALUES) {
321 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
323 if (flags & NDR_IN) {
324 ndr_print_struct(ndr, "in", "unixinfo_GidToSid");
326 ndr_print_hyper(ndr, "gid", r->in.gid);
329 if (flags & NDR_OUT) {
330 ndr_print_struct(ndr, "out", "unixinfo_GidToSid");
332 ndr_print_ptr(ndr, "sid", r->out.sid);
334 ndr_print_dom_sid(ndr, "sid", r->out.sid);
336 ndr_print_NTSTATUS(ndr, "result", r->out.result);
342 static enum ndr_err_code ndr_push_unixinfo_GetPWUid(struct ndr_push *ndr, int flags, const struct unixinfo_GetPWUid *r)
344 uint32_t cntr_uids_0;
345 uint32_t cntr_infos_0;
346 NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
347 if (flags & NDR_IN) {
348 if (r->in.count == NULL) {
349 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
351 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.count));
352 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->in.count));
353 for (cntr_uids_0 = 0; cntr_uids_0 < *r->in.count; cntr_uids_0++) {
354 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.uids[cntr_uids_0]));
357 if (flags & NDR_OUT) {
358 if (r->out.count == NULL) {
359 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
361 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.count));
362 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.count));
363 for (cntr_infos_0 = 0; cntr_infos_0 < *r->out.count; cntr_infos_0++) {
364 NDR_CHECK(ndr_push_unixinfo_GetPWUidInfo(ndr, NDR_SCALARS, &r->out.infos[cntr_infos_0]));
366 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
368 return NDR_ERR_SUCCESS;
371 static enum ndr_err_code ndr_pull_unixinfo_GetPWUid(struct ndr_pull *ndr, int flags, struct unixinfo_GetPWUid *r)
373 uint32_t size_uids_0 = 0;
374 uint32_t cntr_uids_0;
375 uint32_t size_infos_0 = 0;
376 uint32_t cntr_infos_0;
377 TALLOC_CTX *_mem_save_count_0;
378 TALLOC_CTX *_mem_save_uids_0;
379 TALLOC_CTX *_mem_save_infos_0;
380 NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
381 if (flags & NDR_IN) {
384 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
385 NDR_PULL_ALLOC(ndr, r->in.count);
387 _mem_save_count_0 = NDR_PULL_GET_MEM_CTX(ndr);
388 NDR_PULL_SET_MEM_CTX(ndr, r->in.count, LIBNDR_FLAG_REF_ALLOC);
389 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.count));
390 if (*r->in.count > 1023) {
391 return ndr_pull_error(ndr, NDR_ERR_RANGE, "value out of range");
393 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_count_0, LIBNDR_FLAG_REF_ALLOC);
394 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.uids));
395 size_uids_0 = ndr_get_array_size(ndr, &r->in.uids);
396 NDR_PULL_ALLOC_N(ndr, r->in.uids, size_uids_0);
397 _mem_save_uids_0 = NDR_PULL_GET_MEM_CTX(ndr);
398 NDR_PULL_SET_MEM_CTX(ndr, r->in.uids, 0);
399 for (cntr_uids_0 = 0; cntr_uids_0 < size_uids_0; cntr_uids_0++) {
400 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.uids[cntr_uids_0]));
402 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_uids_0, 0);
403 NDR_PULL_ALLOC(ndr, r->out.count);
404 *r->out.count = *r->in.count;
406 NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.uids, *r->in.count));
409 if (flags & NDR_OUT) {
410 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
411 NDR_PULL_ALLOC(ndr, r->out.count);
413 _mem_save_count_0 = NDR_PULL_GET_MEM_CTX(ndr);
414 NDR_PULL_SET_MEM_CTX(ndr, r->out.count, LIBNDR_FLAG_REF_ALLOC);
415 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.count));
416 if (*r->out.count > 1023) {
417 return ndr_pull_error(ndr, NDR_ERR_RANGE, "value out of range");
419 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_count_0, LIBNDR_FLAG_REF_ALLOC);
420 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.infos));
421 size_infos_0 = ndr_get_array_size(ndr, &r->out.infos);
422 NDR_PULL_ALLOC_N(ndr, r->out.infos, size_infos_0);
423 _mem_save_infos_0 = NDR_PULL_GET_MEM_CTX(ndr);
424 NDR_PULL_SET_MEM_CTX(ndr, r->out.infos, 0);
425 for (cntr_infos_0 = 0; cntr_infos_0 < size_infos_0; cntr_infos_0++) {
426 NDR_CHECK(ndr_pull_unixinfo_GetPWUidInfo(ndr, NDR_SCALARS, &r->out.infos[cntr_infos_0]));
428 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_infos_0, 0);
429 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
431 NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.infos, *r->out.count));
434 return NDR_ERR_SUCCESS;
437 _PUBLIC_ void ndr_print_unixinfo_GetPWUid(struct ndr_print *ndr, const char *name, int flags, const struct unixinfo_GetPWUid *r)
439 uint32_t cntr_uids_0;
440 uint32_t cntr_infos_0;
441 ndr_print_struct(ndr, name, "unixinfo_GetPWUid");
442 if (r == NULL) { ndr_print_null(ndr); return; }
444 if (flags & NDR_SET_VALUES) {
445 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
447 if (flags & NDR_IN) {
448 ndr_print_struct(ndr, "in", "unixinfo_GetPWUid");
450 ndr_print_ptr(ndr, "count", r->in.count);
452 ndr_print_uint32(ndr, "count", *r->in.count);
454 ndr->print(ndr, "%s: ARRAY(%d)", "uids", (int)*r->in.count);
456 for (cntr_uids_0=0;cntr_uids_0<*r->in.count;cntr_uids_0++) {
457 ndr_print_hyper(ndr, "uids", r->in.uids[cntr_uids_0]);
462 if (flags & NDR_OUT) {
463 ndr_print_struct(ndr, "out", "unixinfo_GetPWUid");
465 ndr_print_ptr(ndr, "count", r->out.count);
467 ndr_print_uint32(ndr, "count", *r->out.count);
469 ndr->print(ndr, "%s: ARRAY(%d)", "infos", (int)*r->out.count);
471 for (cntr_infos_0=0;cntr_infos_0<*r->out.count;cntr_infos_0++) {
472 ndr_print_unixinfo_GetPWUidInfo(ndr, "infos", &r->out.infos[cntr_infos_0]);
475 ndr_print_NTSTATUS(ndr, "result", r->out.result);
481 static const struct ndr_interface_call unixinfo_calls[] = {
484 sizeof(struct unixinfo_SidToUid),
485 (ndr_push_flags_fn_t) ndr_push_unixinfo_SidToUid,
486 (ndr_pull_flags_fn_t) ndr_pull_unixinfo_SidToUid,
487 (ndr_print_function_t) ndr_print_unixinfo_SidToUid,
493 sizeof(struct unixinfo_UidToSid),
494 (ndr_push_flags_fn_t) ndr_push_unixinfo_UidToSid,
495 (ndr_pull_flags_fn_t) ndr_pull_unixinfo_UidToSid,
496 (ndr_print_function_t) ndr_print_unixinfo_UidToSid,
502 sizeof(struct unixinfo_SidToGid),
503 (ndr_push_flags_fn_t) ndr_push_unixinfo_SidToGid,
504 (ndr_pull_flags_fn_t) ndr_pull_unixinfo_SidToGid,
505 (ndr_print_function_t) ndr_print_unixinfo_SidToGid,
511 sizeof(struct unixinfo_GidToSid),
512 (ndr_push_flags_fn_t) ndr_push_unixinfo_GidToSid,
513 (ndr_pull_flags_fn_t) ndr_pull_unixinfo_GidToSid,
514 (ndr_print_function_t) ndr_print_unixinfo_GidToSid,
520 sizeof(struct unixinfo_GetPWUid),
521 (ndr_push_flags_fn_t) ndr_push_unixinfo_GetPWUid,
522 (ndr_pull_flags_fn_t) ndr_pull_unixinfo_GetPWUid,
523 (ndr_print_function_t) ndr_print_unixinfo_GetPWUid,
527 { NULL, 0, NULL, NULL, NULL }
530 static const char * const unixinfo_endpoint_strings[] = {
531 "ncacn_np:[\\pipe\\unixinfo]",
536 static const struct ndr_interface_string_array unixinfo_endpoints = {
538 .names = unixinfo_endpoint_strings
541 static const char * const unixinfo_authservice_strings[] = {
545 static const struct ndr_interface_string_array unixinfo_authservices = {
547 .names = unixinfo_authservice_strings
551 const struct ndr_interface_table ndr_table_unixinfo = {
554 {0x9c54e310,0xa955,0x4885,{0xbd,0x31},{0x78,0x78,0x71,0x47,0xdf,0xa6}},
557 .helpstring = NDR_UNIXINFO_HELPSTRING,
559 .calls = unixinfo_calls,
560 .endpoints = &unixinfo_endpoints,
561 .authservices = &unixinfo_authservices