1 /* parser auto-generated by pidl */
4 #include "../librpc/gen_ndr/ndr_epmapper.h"
6 #include "librpc/gen_ndr/ndr_misc.h"
7 static enum ndr_err_code
ndr_push_epm_protocol(struct ndr_push
*ndr
, int ndr_flags
, enum epm_protocol r
)
9 NDR_CHECK(ndr_push_enum_uint8(ndr
, NDR_SCALARS
, r
));
10 return NDR_ERR_SUCCESS
;
13 static enum ndr_err_code
ndr_pull_epm_protocol(struct ndr_pull
*ndr
, int ndr_flags
, enum epm_protocol
*r
)
16 NDR_CHECK(ndr_pull_enum_uint8(ndr
, NDR_SCALARS
, &v
));
18 return NDR_ERR_SUCCESS
;
21 _PUBLIC_
void ndr_print_epm_protocol(struct ndr_print
*ndr
, const char *name
, enum epm_protocol r
)
23 const char *val
= NULL
;
26 case EPM_PROTOCOL_DNET_NSP
: val
= "EPM_PROTOCOL_DNET_NSP"; break;
27 case EPM_PROTOCOL_OSI_TP4
: val
= "EPM_PROTOCOL_OSI_TP4"; break;
28 case EPM_PROTOCOL_OSI_CLNS
: val
= "EPM_PROTOCOL_OSI_CLNS"; break;
29 case EPM_PROTOCOL_TCP
: val
= "EPM_PROTOCOL_TCP"; break;
30 case EPM_PROTOCOL_UDP
: val
= "EPM_PROTOCOL_UDP"; break;
31 case EPM_PROTOCOL_IP
: val
= "EPM_PROTOCOL_IP"; break;
32 case EPM_PROTOCOL_NCADG
: val
= "EPM_PROTOCOL_NCADG"; break;
33 case EPM_PROTOCOL_NCACN
: val
= "EPM_PROTOCOL_NCACN"; break;
34 case EPM_PROTOCOL_NCALRPC
: val
= "EPM_PROTOCOL_NCALRPC"; break;
35 case EPM_PROTOCOL_UUID
: val
= "EPM_PROTOCOL_UUID"; break;
36 case EPM_PROTOCOL_IPX
: val
= "EPM_PROTOCOL_IPX"; break;
37 case EPM_PROTOCOL_SMB
: val
= "EPM_PROTOCOL_SMB"; break;
38 case EPM_PROTOCOL_NAMED_PIPE
: val
= "EPM_PROTOCOL_NAMED_PIPE"; break;
39 case EPM_PROTOCOL_NETBIOS
: val
= "EPM_PROTOCOL_NETBIOS"; break;
40 case EPM_PROTOCOL_NETBEUI
: val
= "EPM_PROTOCOL_NETBEUI"; break;
41 case EPM_PROTOCOL_SPX
: val
= "EPM_PROTOCOL_SPX"; break;
42 case EPM_PROTOCOL_NB_IPX
: val
= "EPM_PROTOCOL_NB_IPX"; break;
43 case EPM_PROTOCOL_DSP
: val
= "EPM_PROTOCOL_DSP"; break;
44 case EPM_PROTOCOL_DDP
: val
= "EPM_PROTOCOL_DDP"; break;
45 case EPM_PROTOCOL_APPLETALK
: val
= "EPM_PROTOCOL_APPLETALK"; break;
46 case EPM_PROTOCOL_VINES_SPP
: val
= "EPM_PROTOCOL_VINES_SPP"; break;
47 case EPM_PROTOCOL_VINES_IPC
: val
= "EPM_PROTOCOL_VINES_IPC"; break;
48 case EPM_PROTOCOL_STREETTALK
: val
= "EPM_PROTOCOL_STREETTALK"; break;
49 case EPM_PROTOCOL_HTTP
: val
= "EPM_PROTOCOL_HTTP"; break;
50 case EPM_PROTOCOL_UNIX_DS
: val
= "EPM_PROTOCOL_UNIX_DS"; break;
51 case EPM_PROTOCOL_NULL
: val
= "EPM_PROTOCOL_NULL"; break;
53 ndr_print_enum(ndr
, name
, "ENUM", val
, r
);
56 static enum ndr_err_code
ndr_push_epm_rhs_dnet_nsp(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_dnet_nsp
*r
)
58 if (ndr_flags
& NDR_SCALARS
) {
59 NDR_CHECK(ndr_push_align(ndr
, 1));
61 if (ndr_flags
& NDR_BUFFERS
) {
63 return NDR_ERR_SUCCESS
;
66 static enum ndr_err_code
ndr_pull_epm_rhs_dnet_nsp(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_dnet_nsp
*r
)
68 if (ndr_flags
& NDR_SCALARS
) {
69 NDR_CHECK(ndr_pull_align(ndr
, 1));
71 if (ndr_flags
& NDR_BUFFERS
) {
73 return NDR_ERR_SUCCESS
;
76 _PUBLIC_
void ndr_print_epm_rhs_dnet_nsp(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_dnet_nsp
*r
)
78 ndr_print_struct(ndr
, name
, "epm_rhs_dnet_nsp");
83 static enum ndr_err_code
ndr_push_epm_rhs_osi_tp4(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_osi_tp4
*r
)
85 if (ndr_flags
& NDR_SCALARS
) {
86 NDR_CHECK(ndr_push_align(ndr
, 1));
88 if (ndr_flags
& NDR_BUFFERS
) {
90 return NDR_ERR_SUCCESS
;
93 static enum ndr_err_code
ndr_pull_epm_rhs_osi_tp4(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_osi_tp4
*r
)
95 if (ndr_flags
& NDR_SCALARS
) {
96 NDR_CHECK(ndr_pull_align(ndr
, 1));
98 if (ndr_flags
& NDR_BUFFERS
) {
100 return NDR_ERR_SUCCESS
;
103 _PUBLIC_
void ndr_print_epm_rhs_osi_tp4(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_osi_tp4
*r
)
105 ndr_print_struct(ndr
, name
, "epm_rhs_osi_tp4");
110 static enum ndr_err_code
ndr_push_epm_rhs_osi_clns(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_osi_clns
*r
)
112 if (ndr_flags
& NDR_SCALARS
) {
113 NDR_CHECK(ndr_push_align(ndr
, 1));
115 if (ndr_flags
& NDR_BUFFERS
) {
117 return NDR_ERR_SUCCESS
;
120 static enum ndr_err_code
ndr_pull_epm_rhs_osi_clns(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_osi_clns
*r
)
122 if (ndr_flags
& NDR_SCALARS
) {
123 NDR_CHECK(ndr_pull_align(ndr
, 1));
125 if (ndr_flags
& NDR_BUFFERS
) {
127 return NDR_ERR_SUCCESS
;
130 _PUBLIC_
void ndr_print_epm_rhs_osi_clns(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_osi_clns
*r
)
132 ndr_print_struct(ndr
, name
, "epm_rhs_osi_clns");
137 static enum ndr_err_code
ndr_push_epm_rhs_udp(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_udp
*r
)
139 if (ndr_flags
& NDR_SCALARS
) {
140 NDR_CHECK(ndr_push_align(ndr
, 2));
141 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->port
));
143 if (ndr_flags
& NDR_BUFFERS
) {
145 return NDR_ERR_SUCCESS
;
148 static enum ndr_err_code
ndr_pull_epm_rhs_udp(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_udp
*r
)
150 if (ndr_flags
& NDR_SCALARS
) {
151 NDR_CHECK(ndr_pull_align(ndr
, 2));
152 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->port
));
154 if (ndr_flags
& NDR_BUFFERS
) {
156 return NDR_ERR_SUCCESS
;
159 _PUBLIC_
void ndr_print_epm_rhs_udp(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_udp
*r
)
161 ndr_print_struct(ndr
, name
, "epm_rhs_udp");
163 ndr_print_uint16(ndr
, "port", r
->port
);
167 static enum ndr_err_code
ndr_push_epm_rhs_tcp(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_tcp
*r
)
169 if (ndr_flags
& NDR_SCALARS
) {
170 NDR_CHECK(ndr_push_align(ndr
, 2));
171 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->port
));
173 if (ndr_flags
& NDR_BUFFERS
) {
175 return NDR_ERR_SUCCESS
;
178 static enum ndr_err_code
ndr_pull_epm_rhs_tcp(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_tcp
*r
)
180 if (ndr_flags
& NDR_SCALARS
) {
181 NDR_CHECK(ndr_pull_align(ndr
, 2));
182 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->port
));
184 if (ndr_flags
& NDR_BUFFERS
) {
186 return NDR_ERR_SUCCESS
;
189 _PUBLIC_
void ndr_print_epm_rhs_tcp(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_tcp
*r
)
191 ndr_print_struct(ndr
, name
, "epm_rhs_tcp");
193 ndr_print_uint16(ndr
, "port", r
->port
);
197 static enum ndr_err_code
ndr_push_epm_rhs_ip(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_ip
*r
)
199 if (ndr_flags
& NDR_SCALARS
) {
200 NDR_CHECK(ndr_push_align(ndr
, 4));
201 NDR_CHECK(ndr_push_ipv4address(ndr
, NDR_SCALARS
, r
->ipaddr
));
203 if (ndr_flags
& NDR_BUFFERS
) {
205 return NDR_ERR_SUCCESS
;
208 static enum ndr_err_code
ndr_pull_epm_rhs_ip(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_ip
*r
)
210 if (ndr_flags
& NDR_SCALARS
) {
211 NDR_CHECK(ndr_pull_align(ndr
, 4));
212 NDR_CHECK(ndr_pull_ipv4address(ndr
, NDR_SCALARS
, &r
->ipaddr
));
214 if (ndr_flags
& NDR_BUFFERS
) {
216 return NDR_ERR_SUCCESS
;
219 _PUBLIC_
void ndr_print_epm_rhs_ip(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_ip
*r
)
221 ndr_print_struct(ndr
, name
, "epm_rhs_ip");
223 ndr_print_ipv4address(ndr
, "ipaddr", r
->ipaddr
);
227 static enum ndr_err_code
ndr_push_epm_rhs_ncadg(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_ncadg
*r
)
229 if (ndr_flags
& NDR_SCALARS
) {
230 NDR_CHECK(ndr_push_align(ndr
, 2));
231 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->minor_version
));
233 if (ndr_flags
& NDR_BUFFERS
) {
235 return NDR_ERR_SUCCESS
;
238 static enum ndr_err_code
ndr_pull_epm_rhs_ncadg(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_ncadg
*r
)
240 if (ndr_flags
& NDR_SCALARS
) {
241 NDR_CHECK(ndr_pull_align(ndr
, 2));
242 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->minor_version
));
244 if (ndr_flags
& NDR_BUFFERS
) {
246 return NDR_ERR_SUCCESS
;
249 _PUBLIC_
void ndr_print_epm_rhs_ncadg(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_ncadg
*r
)
251 ndr_print_struct(ndr
, name
, "epm_rhs_ncadg");
253 ndr_print_uint16(ndr
, "minor_version", r
->minor_version
);
257 static enum ndr_err_code
ndr_push_epm_rhs_ncacn(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_ncacn
*r
)
259 if (ndr_flags
& NDR_SCALARS
) {
260 NDR_CHECK(ndr_push_align(ndr
, 2));
261 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->minor_version
));
263 if (ndr_flags
& NDR_BUFFERS
) {
265 return NDR_ERR_SUCCESS
;
268 static enum ndr_err_code
ndr_pull_epm_rhs_ncacn(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_ncacn
*r
)
270 if (ndr_flags
& NDR_SCALARS
) {
271 NDR_CHECK(ndr_pull_align(ndr
, 2));
272 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->minor_version
));
274 if (ndr_flags
& NDR_BUFFERS
) {
276 return NDR_ERR_SUCCESS
;
279 _PUBLIC_
void ndr_print_epm_rhs_ncacn(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_ncacn
*r
)
281 ndr_print_struct(ndr
, name
, "epm_rhs_ncacn");
283 ndr_print_uint16(ndr
, "minor_version", r
->minor_version
);
287 static enum ndr_err_code
ndr_push_epm_rhs_uuid(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_uuid
*r
)
289 if (ndr_flags
& NDR_SCALARS
) {
290 NDR_CHECK(ndr_push_align(ndr
, 4));
292 uint32_t _flags_save_DATA_BLOB
= ndr
->flags
;
293 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_REMAINING
);
294 NDR_CHECK(ndr_push_DATA_BLOB(ndr
, NDR_SCALARS
, r
->unknown
));
295 ndr
->flags
= _flags_save_DATA_BLOB
;
298 if (ndr_flags
& NDR_BUFFERS
) {
300 return NDR_ERR_SUCCESS
;
303 static enum ndr_err_code
ndr_pull_epm_rhs_uuid(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_uuid
*r
)
305 if (ndr_flags
& NDR_SCALARS
) {
306 NDR_CHECK(ndr_pull_align(ndr
, 4));
308 uint32_t _flags_save_DATA_BLOB
= ndr
->flags
;
309 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_REMAINING
);
310 NDR_CHECK(ndr_pull_DATA_BLOB(ndr
, NDR_SCALARS
, &r
->unknown
));
311 ndr
->flags
= _flags_save_DATA_BLOB
;
314 if (ndr_flags
& NDR_BUFFERS
) {
316 return NDR_ERR_SUCCESS
;
319 _PUBLIC_
void ndr_print_epm_rhs_uuid(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_uuid
*r
)
321 ndr_print_struct(ndr
, name
, "epm_rhs_uuid");
323 ndr_print_DATA_BLOB(ndr
, "unknown", r
->unknown
);
327 static enum ndr_err_code
ndr_push_epm_rhs_ipx(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_ipx
*r
)
329 if (ndr_flags
& NDR_SCALARS
) {
330 NDR_CHECK(ndr_push_align(ndr
, 1));
332 if (ndr_flags
& NDR_BUFFERS
) {
334 return NDR_ERR_SUCCESS
;
337 static enum ndr_err_code
ndr_pull_epm_rhs_ipx(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_ipx
*r
)
339 if (ndr_flags
& NDR_SCALARS
) {
340 NDR_CHECK(ndr_pull_align(ndr
, 1));
342 if (ndr_flags
& NDR_BUFFERS
) {
344 return NDR_ERR_SUCCESS
;
347 _PUBLIC_
void ndr_print_epm_rhs_ipx(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_ipx
*r
)
349 ndr_print_struct(ndr
, name
, "epm_rhs_ipx");
354 static enum ndr_err_code
ndr_push_epm_rhs_smb(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_smb
*r
)
356 if (ndr_flags
& NDR_SCALARS
) {
357 NDR_CHECK(ndr_push_align(ndr
, 4));
359 uint32_t _flags_save_string
= ndr
->flags
;
360 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_STR_ASCII
|LIBNDR_FLAG_STR_NULLTERM
);
361 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->unc
));
362 ndr
->flags
= _flags_save_string
;
365 if (ndr_flags
& NDR_BUFFERS
) {
367 return NDR_ERR_SUCCESS
;
370 static enum ndr_err_code
ndr_pull_epm_rhs_smb(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_smb
*r
)
372 if (ndr_flags
& NDR_SCALARS
) {
373 NDR_CHECK(ndr_pull_align(ndr
, 4));
375 uint32_t _flags_save_string
= ndr
->flags
;
376 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_STR_ASCII
|LIBNDR_FLAG_STR_NULLTERM
);
377 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->unc
));
378 ndr
->flags
= _flags_save_string
;
381 if (ndr_flags
& NDR_BUFFERS
) {
383 return NDR_ERR_SUCCESS
;
386 _PUBLIC_
void ndr_print_epm_rhs_smb(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_smb
*r
)
388 ndr_print_struct(ndr
, name
, "epm_rhs_smb");
390 ndr_print_string(ndr
, "unc", r
->unc
);
394 static enum ndr_err_code
ndr_push_epm_rhs_named_pipe(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_named_pipe
*r
)
396 if (ndr_flags
& NDR_SCALARS
) {
397 NDR_CHECK(ndr_push_align(ndr
, 4));
399 uint32_t _flags_save_string
= ndr
->flags
;
400 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_STR_ASCII
|LIBNDR_FLAG_STR_NULLTERM
);
401 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->path
));
402 ndr
->flags
= _flags_save_string
;
405 if (ndr_flags
& NDR_BUFFERS
) {
407 return NDR_ERR_SUCCESS
;
410 static enum ndr_err_code
ndr_pull_epm_rhs_named_pipe(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_named_pipe
*r
)
412 if (ndr_flags
& NDR_SCALARS
) {
413 NDR_CHECK(ndr_pull_align(ndr
, 4));
415 uint32_t _flags_save_string
= ndr
->flags
;
416 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_STR_ASCII
|LIBNDR_FLAG_STR_NULLTERM
);
417 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->path
));
418 ndr
->flags
= _flags_save_string
;
421 if (ndr_flags
& NDR_BUFFERS
) {
423 return NDR_ERR_SUCCESS
;
426 _PUBLIC_
void ndr_print_epm_rhs_named_pipe(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_named_pipe
*r
)
428 ndr_print_struct(ndr
, name
, "epm_rhs_named_pipe");
430 ndr_print_string(ndr
, "path", r
->path
);
434 static enum ndr_err_code
ndr_push_epm_rhs_netbios(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_netbios
*r
)
436 if (ndr_flags
& NDR_SCALARS
) {
437 NDR_CHECK(ndr_push_align(ndr
, 4));
439 uint32_t _flags_save_string
= ndr
->flags
;
440 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_STR_ASCII
|LIBNDR_FLAG_STR_NULLTERM
);
441 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->name
));
442 ndr
->flags
= _flags_save_string
;
445 if (ndr_flags
& NDR_BUFFERS
) {
447 return NDR_ERR_SUCCESS
;
450 static enum ndr_err_code
ndr_pull_epm_rhs_netbios(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_netbios
*r
)
452 if (ndr_flags
& NDR_SCALARS
) {
453 NDR_CHECK(ndr_pull_align(ndr
, 4));
455 uint32_t _flags_save_string
= ndr
->flags
;
456 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_STR_ASCII
|LIBNDR_FLAG_STR_NULLTERM
);
457 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->name
));
458 ndr
->flags
= _flags_save_string
;
461 if (ndr_flags
& NDR_BUFFERS
) {
463 return NDR_ERR_SUCCESS
;
466 _PUBLIC_
void ndr_print_epm_rhs_netbios(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_netbios
*r
)
468 ndr_print_struct(ndr
, name
, "epm_rhs_netbios");
470 ndr_print_string(ndr
, "name", r
->name
);
474 static enum ndr_err_code
ndr_push_epm_rhs_netbeui(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_netbeui
*r
)
476 if (ndr_flags
& NDR_SCALARS
) {
477 NDR_CHECK(ndr_push_align(ndr
, 1));
479 if (ndr_flags
& NDR_BUFFERS
) {
481 return NDR_ERR_SUCCESS
;
484 static enum ndr_err_code
ndr_pull_epm_rhs_netbeui(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_netbeui
*r
)
486 if (ndr_flags
& NDR_SCALARS
) {
487 NDR_CHECK(ndr_pull_align(ndr
, 1));
489 if (ndr_flags
& NDR_BUFFERS
) {
491 return NDR_ERR_SUCCESS
;
494 _PUBLIC_
void ndr_print_epm_rhs_netbeui(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_netbeui
*r
)
496 ndr_print_struct(ndr
, name
, "epm_rhs_netbeui");
501 static enum ndr_err_code
ndr_push_epm_rhs_spx(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_spx
*r
)
503 if (ndr_flags
& NDR_SCALARS
) {
504 NDR_CHECK(ndr_push_align(ndr
, 1));
506 if (ndr_flags
& NDR_BUFFERS
) {
508 return NDR_ERR_SUCCESS
;
511 static enum ndr_err_code
ndr_pull_epm_rhs_spx(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_spx
*r
)
513 if (ndr_flags
& NDR_SCALARS
) {
514 NDR_CHECK(ndr_pull_align(ndr
, 1));
516 if (ndr_flags
& NDR_BUFFERS
) {
518 return NDR_ERR_SUCCESS
;
521 _PUBLIC_
void ndr_print_epm_rhs_spx(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_spx
*r
)
523 ndr_print_struct(ndr
, name
, "epm_rhs_spx");
528 static enum ndr_err_code
ndr_push_epm_rhs_nb_ipx(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_nb_ipx
*r
)
530 if (ndr_flags
& NDR_SCALARS
) {
531 NDR_CHECK(ndr_push_align(ndr
, 1));
533 if (ndr_flags
& NDR_BUFFERS
) {
535 return NDR_ERR_SUCCESS
;
538 static enum ndr_err_code
ndr_pull_epm_rhs_nb_ipx(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_nb_ipx
*r
)
540 if (ndr_flags
& NDR_SCALARS
) {
541 NDR_CHECK(ndr_pull_align(ndr
, 1));
543 if (ndr_flags
& NDR_BUFFERS
) {
545 return NDR_ERR_SUCCESS
;
548 _PUBLIC_
void ndr_print_epm_rhs_nb_ipx(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_nb_ipx
*r
)
550 ndr_print_struct(ndr
, name
, "epm_rhs_nb_ipx");
555 static enum ndr_err_code
ndr_push_epm_rhs_http(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_http
*r
)
557 if (ndr_flags
& NDR_SCALARS
) {
558 NDR_CHECK(ndr_push_align(ndr
, 2));
559 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->port
));
561 if (ndr_flags
& NDR_BUFFERS
) {
563 return NDR_ERR_SUCCESS
;
566 static enum ndr_err_code
ndr_pull_epm_rhs_http(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_http
*r
)
568 if (ndr_flags
& NDR_SCALARS
) {
569 NDR_CHECK(ndr_pull_align(ndr
, 2));
570 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->port
));
572 if (ndr_flags
& NDR_BUFFERS
) {
574 return NDR_ERR_SUCCESS
;
577 _PUBLIC_
void ndr_print_epm_rhs_http(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_http
*r
)
579 ndr_print_struct(ndr
, name
, "epm_rhs_http");
581 ndr_print_uint16(ndr
, "port", r
->port
);
585 static enum ndr_err_code
ndr_push_epm_rhs_unix_ds(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_unix_ds
*r
)
587 if (ndr_flags
& NDR_SCALARS
) {
588 NDR_CHECK(ndr_push_align(ndr
, 4));
590 uint32_t _flags_save_string
= ndr
->flags
;
591 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_STR_ASCII
|LIBNDR_FLAG_STR_NULLTERM
);
592 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->path
));
593 ndr
->flags
= _flags_save_string
;
596 if (ndr_flags
& NDR_BUFFERS
) {
598 return NDR_ERR_SUCCESS
;
601 static enum ndr_err_code
ndr_pull_epm_rhs_unix_ds(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_unix_ds
*r
)
603 if (ndr_flags
& NDR_SCALARS
) {
604 NDR_CHECK(ndr_pull_align(ndr
, 4));
606 uint32_t _flags_save_string
= ndr
->flags
;
607 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_STR_ASCII
|LIBNDR_FLAG_STR_NULLTERM
);
608 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->path
));
609 ndr
->flags
= _flags_save_string
;
612 if (ndr_flags
& NDR_BUFFERS
) {
614 return NDR_ERR_SUCCESS
;
617 _PUBLIC_
void ndr_print_epm_rhs_unix_ds(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_unix_ds
*r
)
619 ndr_print_struct(ndr
, name
, "epm_rhs_unix_ds");
621 ndr_print_string(ndr
, "path", r
->path
);
625 static enum ndr_err_code
ndr_push_epm_rhs_null(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_null
*r
)
627 if (ndr_flags
& NDR_SCALARS
) {
628 NDR_CHECK(ndr_push_align(ndr
, 1));
630 if (ndr_flags
& NDR_BUFFERS
) {
632 return NDR_ERR_SUCCESS
;
635 static enum ndr_err_code
ndr_pull_epm_rhs_null(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_null
*r
)
637 if (ndr_flags
& NDR_SCALARS
) {
638 NDR_CHECK(ndr_pull_align(ndr
, 1));
640 if (ndr_flags
& NDR_BUFFERS
) {
642 return NDR_ERR_SUCCESS
;
645 _PUBLIC_
void ndr_print_epm_rhs_null(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_null
*r
)
647 ndr_print_struct(ndr
, name
, "epm_rhs_null");
652 static enum ndr_err_code
ndr_push_epm_rhs_ncalrpc(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_ncalrpc
*r
)
654 if (ndr_flags
& NDR_SCALARS
) {
655 NDR_CHECK(ndr_push_align(ndr
, 2));
656 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->minor_version
));
658 if (ndr_flags
& NDR_BUFFERS
) {
660 return NDR_ERR_SUCCESS
;
663 static enum ndr_err_code
ndr_pull_epm_rhs_ncalrpc(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_ncalrpc
*r
)
665 if (ndr_flags
& NDR_SCALARS
) {
666 NDR_CHECK(ndr_pull_align(ndr
, 2));
667 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->minor_version
));
669 if (ndr_flags
& NDR_BUFFERS
) {
671 return NDR_ERR_SUCCESS
;
674 _PUBLIC_
void ndr_print_epm_rhs_ncalrpc(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_ncalrpc
*r
)
676 ndr_print_struct(ndr
, name
, "epm_rhs_ncalrpc");
678 ndr_print_uint16(ndr
, "minor_version", r
->minor_version
);
682 static enum ndr_err_code
ndr_push_epm_rhs_appletalk(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_appletalk
*r
)
684 if (ndr_flags
& NDR_SCALARS
) {
685 NDR_CHECK(ndr_push_align(ndr
, 1));
687 if (ndr_flags
& NDR_BUFFERS
) {
689 return NDR_ERR_SUCCESS
;
692 static enum ndr_err_code
ndr_pull_epm_rhs_appletalk(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_appletalk
*r
)
694 if (ndr_flags
& NDR_SCALARS
) {
695 NDR_CHECK(ndr_pull_align(ndr
, 1));
697 if (ndr_flags
& NDR_BUFFERS
) {
699 return NDR_ERR_SUCCESS
;
702 _PUBLIC_
void ndr_print_epm_rhs_appletalk(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_appletalk
*r
)
704 ndr_print_struct(ndr
, name
, "epm_rhs_appletalk");
709 static enum ndr_err_code
ndr_push_epm_rhs_atalk_stream(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_atalk_stream
*r
)
711 if (ndr_flags
& NDR_SCALARS
) {
712 NDR_CHECK(ndr_push_align(ndr
, 1));
714 if (ndr_flags
& NDR_BUFFERS
) {
716 return NDR_ERR_SUCCESS
;
719 static enum ndr_err_code
ndr_pull_epm_rhs_atalk_stream(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_atalk_stream
*r
)
721 if (ndr_flags
& NDR_SCALARS
) {
722 NDR_CHECK(ndr_pull_align(ndr
, 1));
724 if (ndr_flags
& NDR_BUFFERS
) {
726 return NDR_ERR_SUCCESS
;
729 _PUBLIC_
void ndr_print_epm_rhs_atalk_stream(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_atalk_stream
*r
)
731 ndr_print_struct(ndr
, name
, "epm_rhs_atalk_stream");
736 static enum ndr_err_code
ndr_push_epm_rhs_atalk_datagram(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_atalk_datagram
*r
)
738 if (ndr_flags
& NDR_SCALARS
) {
739 NDR_CHECK(ndr_push_align(ndr
, 1));
741 if (ndr_flags
& NDR_BUFFERS
) {
743 return NDR_ERR_SUCCESS
;
746 static enum ndr_err_code
ndr_pull_epm_rhs_atalk_datagram(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_atalk_datagram
*r
)
748 if (ndr_flags
& NDR_SCALARS
) {
749 NDR_CHECK(ndr_pull_align(ndr
, 1));
751 if (ndr_flags
& NDR_BUFFERS
) {
753 return NDR_ERR_SUCCESS
;
756 _PUBLIC_
void ndr_print_epm_rhs_atalk_datagram(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_atalk_datagram
*r
)
758 ndr_print_struct(ndr
, name
, "epm_rhs_atalk_datagram");
763 static enum ndr_err_code
ndr_push_epm_rhs_vines_spp(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_vines_spp
*r
)
765 if (ndr_flags
& NDR_SCALARS
) {
766 NDR_CHECK(ndr_push_align(ndr
, 2));
767 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->port
));
769 if (ndr_flags
& NDR_BUFFERS
) {
771 return NDR_ERR_SUCCESS
;
774 static enum ndr_err_code
ndr_pull_epm_rhs_vines_spp(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_vines_spp
*r
)
776 if (ndr_flags
& NDR_SCALARS
) {
777 NDR_CHECK(ndr_pull_align(ndr
, 2));
778 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->port
));
780 if (ndr_flags
& NDR_BUFFERS
) {
782 return NDR_ERR_SUCCESS
;
785 _PUBLIC_
void ndr_print_epm_rhs_vines_spp(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_vines_spp
*r
)
787 ndr_print_struct(ndr
, name
, "epm_rhs_vines_spp");
789 ndr_print_uint16(ndr
, "port", r
->port
);
793 static enum ndr_err_code
ndr_push_epm_rhs_vines_ipc(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_vines_ipc
*r
)
795 if (ndr_flags
& NDR_SCALARS
) {
796 NDR_CHECK(ndr_push_align(ndr
, 2));
797 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->port
));
799 if (ndr_flags
& NDR_BUFFERS
) {
801 return NDR_ERR_SUCCESS
;
804 static enum ndr_err_code
ndr_pull_epm_rhs_vines_ipc(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_vines_ipc
*r
)
806 if (ndr_flags
& NDR_SCALARS
) {
807 NDR_CHECK(ndr_pull_align(ndr
, 2));
808 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->port
));
810 if (ndr_flags
& NDR_BUFFERS
) {
812 return NDR_ERR_SUCCESS
;
815 _PUBLIC_
void ndr_print_epm_rhs_vines_ipc(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_vines_ipc
*r
)
817 ndr_print_struct(ndr
, name
, "epm_rhs_vines_ipc");
819 ndr_print_uint16(ndr
, "port", r
->port
);
823 static enum ndr_err_code
ndr_push_epm_rhs_streettalk(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_rhs_streettalk
*r
)
825 if (ndr_flags
& NDR_SCALARS
) {
826 NDR_CHECK(ndr_push_align(ndr
, 4));
828 uint32_t _flags_save_string
= ndr
->flags
;
829 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_STR_ASCII
|LIBNDR_FLAG_STR_NULLTERM
);
830 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->streettalk
));
831 ndr
->flags
= _flags_save_string
;
834 if (ndr_flags
& NDR_BUFFERS
) {
836 return NDR_ERR_SUCCESS
;
839 static enum ndr_err_code
ndr_pull_epm_rhs_streettalk(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_rhs_streettalk
*r
)
841 if (ndr_flags
& NDR_SCALARS
) {
842 NDR_CHECK(ndr_pull_align(ndr
, 4));
844 uint32_t _flags_save_string
= ndr
->flags
;
845 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_STR_ASCII
|LIBNDR_FLAG_STR_NULLTERM
);
846 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->streettalk
));
847 ndr
->flags
= _flags_save_string
;
850 if (ndr_flags
& NDR_BUFFERS
) {
852 return NDR_ERR_SUCCESS
;
855 _PUBLIC_
void ndr_print_epm_rhs_streettalk(struct ndr_print
*ndr
, const char *name
, const struct epm_rhs_streettalk
*r
)
857 ndr_print_struct(ndr
, name
, "epm_rhs_streettalk");
859 ndr_print_string(ndr
, "streettalk", r
->streettalk
);
863 static enum ndr_err_code
ndr_push_epm_rhs(struct ndr_push
*ndr
, int ndr_flags
, const union epm_rhs
*r
)
866 uint32_t _flags_save_UNION
= ndr
->flags
;
867 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_BIGENDIAN
);
868 if (ndr_flags
& NDR_SCALARS
) {
869 int level
= ndr_push_get_switch_value(ndr
, r
);
870 NDR_CHECK(ndr_push_union_align(ndr
, 4));
872 case EPM_PROTOCOL_DNET_NSP
: {
873 NDR_CHECK(ndr_push_epm_rhs_dnet_nsp(ndr
, NDR_SCALARS
, &r
->dnet_nsp
));
876 case EPM_PROTOCOL_OSI_TP4
: {
877 NDR_CHECK(ndr_push_epm_rhs_osi_tp4(ndr
, NDR_SCALARS
, &r
->osi_tp4
));
880 case EPM_PROTOCOL_OSI_CLNS
: {
881 NDR_CHECK(ndr_push_epm_rhs_osi_clns(ndr
, NDR_SCALARS
, &r
->osi_clns
));
884 case EPM_PROTOCOL_TCP
: {
885 NDR_CHECK(ndr_push_epm_rhs_tcp(ndr
, NDR_SCALARS
, &r
->tcp
));
888 case EPM_PROTOCOL_UDP
: {
889 NDR_CHECK(ndr_push_epm_rhs_udp(ndr
, NDR_SCALARS
, &r
->udp
));
892 case EPM_PROTOCOL_IP
: {
893 NDR_CHECK(ndr_push_epm_rhs_ip(ndr
, NDR_SCALARS
, &r
->ip
));
896 case EPM_PROTOCOL_NCADG
: {
897 NDR_CHECK(ndr_push_epm_rhs_ncadg(ndr
, NDR_SCALARS
, &r
->ncadg
));
900 case EPM_PROTOCOL_NCACN
: {
901 NDR_CHECK(ndr_push_epm_rhs_ncacn(ndr
, NDR_SCALARS
, &r
->ncacn
));
904 case EPM_PROTOCOL_NCALRPC
: {
905 NDR_CHECK(ndr_push_epm_rhs_ncalrpc(ndr
, NDR_SCALARS
, &r
->ncalrpc
));
908 case EPM_PROTOCOL_UUID
: {
909 NDR_CHECK(ndr_push_epm_rhs_uuid(ndr
, NDR_SCALARS
, &r
->uuid
));
912 case EPM_PROTOCOL_IPX
: {
913 NDR_CHECK(ndr_push_epm_rhs_ipx(ndr
, NDR_SCALARS
, &r
->ipx
));
916 case EPM_PROTOCOL_SMB
: {
917 NDR_CHECK(ndr_push_epm_rhs_smb(ndr
, NDR_SCALARS
, &r
->smb
));
920 case EPM_PROTOCOL_NAMED_PIPE
: {
921 NDR_CHECK(ndr_push_epm_rhs_named_pipe(ndr
, NDR_SCALARS
, &r
->named_pipe
));
924 case EPM_PROTOCOL_NETBIOS
: {
925 NDR_CHECK(ndr_push_epm_rhs_netbios(ndr
, NDR_SCALARS
, &r
->netbios
));
928 case EPM_PROTOCOL_NETBEUI
: {
929 NDR_CHECK(ndr_push_epm_rhs_netbeui(ndr
, NDR_SCALARS
, &r
->netbeui
));
932 case EPM_PROTOCOL_SPX
: {
933 NDR_CHECK(ndr_push_epm_rhs_spx(ndr
, NDR_SCALARS
, &r
->spx
));
936 case EPM_PROTOCOL_NB_IPX
: {
937 NDR_CHECK(ndr_push_epm_rhs_nb_ipx(ndr
, NDR_SCALARS
, &r
->nb_ipx
));
940 case EPM_PROTOCOL_DSP
: {
941 NDR_CHECK(ndr_push_epm_rhs_atalk_stream(ndr
, NDR_SCALARS
, &r
->atalk_stream
));
944 case EPM_PROTOCOL_DDP
: {
945 NDR_CHECK(ndr_push_epm_rhs_atalk_datagram(ndr
, NDR_SCALARS
, &r
->atalk_datagram
));
948 case EPM_PROTOCOL_APPLETALK
: {
949 NDR_CHECK(ndr_push_epm_rhs_appletalk(ndr
, NDR_SCALARS
, &r
->appletalk
));
952 case EPM_PROTOCOL_VINES_SPP
: {
953 NDR_CHECK(ndr_push_epm_rhs_vines_spp(ndr
, NDR_SCALARS
, &r
->vines_spp
));
956 case EPM_PROTOCOL_VINES_IPC
: {
957 NDR_CHECK(ndr_push_epm_rhs_vines_ipc(ndr
, NDR_SCALARS
, &r
->vines_ipc
));
960 case EPM_PROTOCOL_STREETTALK
: {
961 NDR_CHECK(ndr_push_epm_rhs_streettalk(ndr
, NDR_SCALARS
, &r
->streettalk
));
964 case EPM_PROTOCOL_HTTP
: {
965 NDR_CHECK(ndr_push_epm_rhs_http(ndr
, NDR_SCALARS
, &r
->http
));
968 case EPM_PROTOCOL_UNIX_DS
: {
969 NDR_CHECK(ndr_push_epm_rhs_unix_ds(ndr
, NDR_SCALARS
, &r
->unix_ds
));
972 case EPM_PROTOCOL_NULL
: {
973 NDR_CHECK(ndr_push_epm_rhs_null(ndr
, NDR_SCALARS
, &r
->null
));
978 uint32_t _flags_save_DATA_BLOB
= ndr
->flags
;
979 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_REMAINING
);
980 NDR_CHECK(ndr_push_DATA_BLOB(ndr
, NDR_SCALARS
, r
->unknown
));
981 ndr
->flags
= _flags_save_DATA_BLOB
;
987 if (ndr_flags
& NDR_BUFFERS
) {
988 int level
= ndr_push_get_switch_value(ndr
, r
);
990 case EPM_PROTOCOL_DNET_NSP
:
993 case EPM_PROTOCOL_OSI_TP4
:
996 case EPM_PROTOCOL_OSI_CLNS
:
999 case EPM_PROTOCOL_TCP
:
1002 case EPM_PROTOCOL_UDP
:
1005 case EPM_PROTOCOL_IP
:
1008 case EPM_PROTOCOL_NCADG
:
1011 case EPM_PROTOCOL_NCACN
:
1014 case EPM_PROTOCOL_NCALRPC
:
1017 case EPM_PROTOCOL_UUID
:
1020 case EPM_PROTOCOL_IPX
:
1023 case EPM_PROTOCOL_SMB
:
1026 case EPM_PROTOCOL_NAMED_PIPE
:
1029 case EPM_PROTOCOL_NETBIOS
:
1032 case EPM_PROTOCOL_NETBEUI
:
1035 case EPM_PROTOCOL_SPX
:
1038 case EPM_PROTOCOL_NB_IPX
:
1041 case EPM_PROTOCOL_DSP
:
1044 case EPM_PROTOCOL_DDP
:
1047 case EPM_PROTOCOL_APPLETALK
:
1050 case EPM_PROTOCOL_VINES_SPP
:
1053 case EPM_PROTOCOL_VINES_IPC
:
1056 case EPM_PROTOCOL_STREETTALK
:
1059 case EPM_PROTOCOL_HTTP
:
1062 case EPM_PROTOCOL_UNIX_DS
:
1065 case EPM_PROTOCOL_NULL
:
1073 ndr
->flags
= _flags_save_UNION
;
1075 return NDR_ERR_SUCCESS
;
1078 static enum ndr_err_code
ndr_pull_epm_rhs(struct ndr_pull
*ndr
, int ndr_flags
, union epm_rhs
*r
)
1082 uint32_t _flags_save_UNION
= ndr
->flags
;
1083 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_BIGENDIAN
);
1084 level
= ndr_pull_get_switch_value(ndr
, r
);
1085 if (ndr_flags
& NDR_SCALARS
) {
1086 NDR_CHECK(ndr_pull_union_align(ndr
, 4));
1088 case EPM_PROTOCOL_DNET_NSP
: {
1089 NDR_CHECK(ndr_pull_epm_rhs_dnet_nsp(ndr
, NDR_SCALARS
, &r
->dnet_nsp
));
1092 case EPM_PROTOCOL_OSI_TP4
: {
1093 NDR_CHECK(ndr_pull_epm_rhs_osi_tp4(ndr
, NDR_SCALARS
, &r
->osi_tp4
));
1096 case EPM_PROTOCOL_OSI_CLNS
: {
1097 NDR_CHECK(ndr_pull_epm_rhs_osi_clns(ndr
, NDR_SCALARS
, &r
->osi_clns
));
1100 case EPM_PROTOCOL_TCP
: {
1101 NDR_CHECK(ndr_pull_epm_rhs_tcp(ndr
, NDR_SCALARS
, &r
->tcp
));
1104 case EPM_PROTOCOL_UDP
: {
1105 NDR_CHECK(ndr_pull_epm_rhs_udp(ndr
, NDR_SCALARS
, &r
->udp
));
1108 case EPM_PROTOCOL_IP
: {
1109 NDR_CHECK(ndr_pull_epm_rhs_ip(ndr
, NDR_SCALARS
, &r
->ip
));
1112 case EPM_PROTOCOL_NCADG
: {
1113 NDR_CHECK(ndr_pull_epm_rhs_ncadg(ndr
, NDR_SCALARS
, &r
->ncadg
));
1116 case EPM_PROTOCOL_NCACN
: {
1117 NDR_CHECK(ndr_pull_epm_rhs_ncacn(ndr
, NDR_SCALARS
, &r
->ncacn
));
1120 case EPM_PROTOCOL_NCALRPC
: {
1121 NDR_CHECK(ndr_pull_epm_rhs_ncalrpc(ndr
, NDR_SCALARS
, &r
->ncalrpc
));
1124 case EPM_PROTOCOL_UUID
: {
1125 NDR_CHECK(ndr_pull_epm_rhs_uuid(ndr
, NDR_SCALARS
, &r
->uuid
));
1128 case EPM_PROTOCOL_IPX
: {
1129 NDR_CHECK(ndr_pull_epm_rhs_ipx(ndr
, NDR_SCALARS
, &r
->ipx
));
1132 case EPM_PROTOCOL_SMB
: {
1133 NDR_CHECK(ndr_pull_epm_rhs_smb(ndr
, NDR_SCALARS
, &r
->smb
));
1136 case EPM_PROTOCOL_NAMED_PIPE
: {
1137 NDR_CHECK(ndr_pull_epm_rhs_named_pipe(ndr
, NDR_SCALARS
, &r
->named_pipe
));
1140 case EPM_PROTOCOL_NETBIOS
: {
1141 NDR_CHECK(ndr_pull_epm_rhs_netbios(ndr
, NDR_SCALARS
, &r
->netbios
));
1144 case EPM_PROTOCOL_NETBEUI
: {
1145 NDR_CHECK(ndr_pull_epm_rhs_netbeui(ndr
, NDR_SCALARS
, &r
->netbeui
));
1148 case EPM_PROTOCOL_SPX
: {
1149 NDR_CHECK(ndr_pull_epm_rhs_spx(ndr
, NDR_SCALARS
, &r
->spx
));
1152 case EPM_PROTOCOL_NB_IPX
: {
1153 NDR_CHECK(ndr_pull_epm_rhs_nb_ipx(ndr
, NDR_SCALARS
, &r
->nb_ipx
));
1156 case EPM_PROTOCOL_DSP
: {
1157 NDR_CHECK(ndr_pull_epm_rhs_atalk_stream(ndr
, NDR_SCALARS
, &r
->atalk_stream
));
1160 case EPM_PROTOCOL_DDP
: {
1161 NDR_CHECK(ndr_pull_epm_rhs_atalk_datagram(ndr
, NDR_SCALARS
, &r
->atalk_datagram
));
1164 case EPM_PROTOCOL_APPLETALK
: {
1165 NDR_CHECK(ndr_pull_epm_rhs_appletalk(ndr
, NDR_SCALARS
, &r
->appletalk
));
1168 case EPM_PROTOCOL_VINES_SPP
: {
1169 NDR_CHECK(ndr_pull_epm_rhs_vines_spp(ndr
, NDR_SCALARS
, &r
->vines_spp
));
1172 case EPM_PROTOCOL_VINES_IPC
: {
1173 NDR_CHECK(ndr_pull_epm_rhs_vines_ipc(ndr
, NDR_SCALARS
, &r
->vines_ipc
));
1176 case EPM_PROTOCOL_STREETTALK
: {
1177 NDR_CHECK(ndr_pull_epm_rhs_streettalk(ndr
, NDR_SCALARS
, &r
->streettalk
));
1180 case EPM_PROTOCOL_HTTP
: {
1181 NDR_CHECK(ndr_pull_epm_rhs_http(ndr
, NDR_SCALARS
, &r
->http
));
1184 case EPM_PROTOCOL_UNIX_DS
: {
1185 NDR_CHECK(ndr_pull_epm_rhs_unix_ds(ndr
, NDR_SCALARS
, &r
->unix_ds
));
1188 case EPM_PROTOCOL_NULL
: {
1189 NDR_CHECK(ndr_pull_epm_rhs_null(ndr
, NDR_SCALARS
, &r
->null
));
1194 uint32_t _flags_save_DATA_BLOB
= ndr
->flags
;
1195 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_REMAINING
);
1196 NDR_CHECK(ndr_pull_DATA_BLOB(ndr
, NDR_SCALARS
, &r
->unknown
));
1197 ndr
->flags
= _flags_save_DATA_BLOB
;
1203 if (ndr_flags
& NDR_BUFFERS
) {
1205 case EPM_PROTOCOL_DNET_NSP
:
1208 case EPM_PROTOCOL_OSI_TP4
:
1211 case EPM_PROTOCOL_OSI_CLNS
:
1214 case EPM_PROTOCOL_TCP
:
1217 case EPM_PROTOCOL_UDP
:
1220 case EPM_PROTOCOL_IP
:
1223 case EPM_PROTOCOL_NCADG
:
1226 case EPM_PROTOCOL_NCACN
:
1229 case EPM_PROTOCOL_NCALRPC
:
1232 case EPM_PROTOCOL_UUID
:
1235 case EPM_PROTOCOL_IPX
:
1238 case EPM_PROTOCOL_SMB
:
1241 case EPM_PROTOCOL_NAMED_PIPE
:
1244 case EPM_PROTOCOL_NETBIOS
:
1247 case EPM_PROTOCOL_NETBEUI
:
1250 case EPM_PROTOCOL_SPX
:
1253 case EPM_PROTOCOL_NB_IPX
:
1256 case EPM_PROTOCOL_DSP
:
1259 case EPM_PROTOCOL_DDP
:
1262 case EPM_PROTOCOL_APPLETALK
:
1265 case EPM_PROTOCOL_VINES_SPP
:
1268 case EPM_PROTOCOL_VINES_IPC
:
1271 case EPM_PROTOCOL_STREETTALK
:
1274 case EPM_PROTOCOL_HTTP
:
1277 case EPM_PROTOCOL_UNIX_DS
:
1280 case EPM_PROTOCOL_NULL
:
1288 ndr
->flags
= _flags_save_UNION
;
1290 return NDR_ERR_SUCCESS
;
1293 _PUBLIC_
void ndr_print_epm_rhs(struct ndr_print
*ndr
, const char *name
, const union epm_rhs
*r
)
1297 uint32_t _flags_save_UNION
= ndr
->flags
;
1298 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_BIGENDIAN
);
1299 level
= ndr_print_get_switch_value(ndr
, r
);
1300 ndr_print_union(ndr
, name
, level
, "epm_rhs");
1302 case EPM_PROTOCOL_DNET_NSP
:
1303 ndr_print_epm_rhs_dnet_nsp(ndr
, "dnet_nsp", &r
->dnet_nsp
);
1306 case EPM_PROTOCOL_OSI_TP4
:
1307 ndr_print_epm_rhs_osi_tp4(ndr
, "osi_tp4", &r
->osi_tp4
);
1310 case EPM_PROTOCOL_OSI_CLNS
:
1311 ndr_print_epm_rhs_osi_clns(ndr
, "osi_clns", &r
->osi_clns
);
1314 case EPM_PROTOCOL_TCP
:
1315 ndr_print_epm_rhs_tcp(ndr
, "tcp", &r
->tcp
);
1318 case EPM_PROTOCOL_UDP
:
1319 ndr_print_epm_rhs_udp(ndr
, "udp", &r
->udp
);
1322 case EPM_PROTOCOL_IP
:
1323 ndr_print_epm_rhs_ip(ndr
, "ip", &r
->ip
);
1326 case EPM_PROTOCOL_NCADG
:
1327 ndr_print_epm_rhs_ncadg(ndr
, "ncadg", &r
->ncadg
);
1330 case EPM_PROTOCOL_NCACN
:
1331 ndr_print_epm_rhs_ncacn(ndr
, "ncacn", &r
->ncacn
);
1334 case EPM_PROTOCOL_NCALRPC
:
1335 ndr_print_epm_rhs_ncalrpc(ndr
, "ncalrpc", &r
->ncalrpc
);
1338 case EPM_PROTOCOL_UUID
:
1339 ndr_print_epm_rhs_uuid(ndr
, "uuid", &r
->uuid
);
1342 case EPM_PROTOCOL_IPX
:
1343 ndr_print_epm_rhs_ipx(ndr
, "ipx", &r
->ipx
);
1346 case EPM_PROTOCOL_SMB
:
1347 ndr_print_epm_rhs_smb(ndr
, "smb", &r
->smb
);
1350 case EPM_PROTOCOL_NAMED_PIPE
:
1351 ndr_print_epm_rhs_named_pipe(ndr
, "named_pipe", &r
->named_pipe
);
1354 case EPM_PROTOCOL_NETBIOS
:
1355 ndr_print_epm_rhs_netbios(ndr
, "netbios", &r
->netbios
);
1358 case EPM_PROTOCOL_NETBEUI
:
1359 ndr_print_epm_rhs_netbeui(ndr
, "netbeui", &r
->netbeui
);
1362 case EPM_PROTOCOL_SPX
:
1363 ndr_print_epm_rhs_spx(ndr
, "spx", &r
->spx
);
1366 case EPM_PROTOCOL_NB_IPX
:
1367 ndr_print_epm_rhs_nb_ipx(ndr
, "nb_ipx", &r
->nb_ipx
);
1370 case EPM_PROTOCOL_DSP
:
1371 ndr_print_epm_rhs_atalk_stream(ndr
, "atalk_stream", &r
->atalk_stream
);
1374 case EPM_PROTOCOL_DDP
:
1375 ndr_print_epm_rhs_atalk_datagram(ndr
, "atalk_datagram", &r
->atalk_datagram
);
1378 case EPM_PROTOCOL_APPLETALK
:
1379 ndr_print_epm_rhs_appletalk(ndr
, "appletalk", &r
->appletalk
);
1382 case EPM_PROTOCOL_VINES_SPP
:
1383 ndr_print_epm_rhs_vines_spp(ndr
, "vines_spp", &r
->vines_spp
);
1386 case EPM_PROTOCOL_VINES_IPC
:
1387 ndr_print_epm_rhs_vines_ipc(ndr
, "vines_ipc", &r
->vines_ipc
);
1390 case EPM_PROTOCOL_STREETTALK
:
1391 ndr_print_epm_rhs_streettalk(ndr
, "streettalk", &r
->streettalk
);
1394 case EPM_PROTOCOL_HTTP
:
1395 ndr_print_epm_rhs_http(ndr
, "http", &r
->http
);
1398 case EPM_PROTOCOL_UNIX_DS
:
1399 ndr_print_epm_rhs_unix_ds(ndr
, "unix_ds", &r
->unix_ds
);
1402 case EPM_PROTOCOL_NULL
:
1403 ndr_print_epm_rhs_null(ndr
, "null", &r
->null
);
1407 ndr_print_DATA_BLOB(ndr
, "unknown", r
->unknown
);
1411 ndr
->flags
= _flags_save_UNION
;
1415 static enum ndr_err_code
ndr_push_epm_lhs(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_lhs
*r
)
1417 if (ndr_flags
& NDR_SCALARS
) {
1418 NDR_CHECK(ndr_push_align(ndr
, 4));
1419 NDR_CHECK(ndr_push_epm_protocol(ndr
, NDR_SCALARS
, r
->protocol
));
1421 uint32_t _flags_save_DATA_BLOB
= ndr
->flags
;
1422 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_REMAINING
);
1423 NDR_CHECK(ndr_push_DATA_BLOB(ndr
, NDR_SCALARS
, r
->lhs_data
));
1424 ndr
->flags
= _flags_save_DATA_BLOB
;
1427 if (ndr_flags
& NDR_BUFFERS
) {
1429 return NDR_ERR_SUCCESS
;
1432 static enum ndr_err_code
ndr_pull_epm_lhs(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_lhs
*r
)
1434 if (ndr_flags
& NDR_SCALARS
) {
1435 NDR_CHECK(ndr_pull_align(ndr
, 4));
1436 NDR_CHECK(ndr_pull_epm_protocol(ndr
, NDR_SCALARS
, &r
->protocol
));
1438 uint32_t _flags_save_DATA_BLOB
= ndr
->flags
;
1439 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_REMAINING
);
1440 NDR_CHECK(ndr_pull_DATA_BLOB(ndr
, NDR_SCALARS
, &r
->lhs_data
));
1441 ndr
->flags
= _flags_save_DATA_BLOB
;
1444 if (ndr_flags
& NDR_BUFFERS
) {
1446 return NDR_ERR_SUCCESS
;
1449 _PUBLIC_
void ndr_print_epm_lhs(struct ndr_print
*ndr
, const char *name
, const struct epm_lhs
*r
)
1451 ndr_print_struct(ndr
, name
, "epm_lhs");
1453 ndr_print_epm_protocol(ndr
, "protocol", r
->protocol
);
1454 ndr_print_DATA_BLOB(ndr
, "lhs_data", r
->lhs_data
);
1458 static enum ndr_err_code
ndr_push_epm_floor(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_floor
*r
)
1460 if (ndr_flags
& NDR_SCALARS
) {
1461 NDR_CHECK(ndr_push_align(ndr
, 1));
1463 struct ndr_push
*_ndr_lhs
;
1464 NDR_CHECK(ndr_push_subcontext_start(ndr
, &_ndr_lhs
, 2, -1));
1465 NDR_CHECK(ndr_push_epm_lhs(_ndr_lhs
, NDR_SCALARS
, &r
->lhs
));
1466 NDR_CHECK(ndr_push_subcontext_end(ndr
, _ndr_lhs
, 2, -1));
1469 struct ndr_push
*_ndr_rhs
;
1470 NDR_CHECK(ndr_push_subcontext_start(ndr
, &_ndr_rhs
, 2, -1));
1471 NDR_CHECK(ndr_push_set_switch_value(_ndr_rhs
, &r
->rhs
, r
->lhs
.protocol
));
1472 NDR_CHECK(ndr_push_epm_rhs(_ndr_rhs
, NDR_SCALARS
, &r
->rhs
));
1473 NDR_CHECK(ndr_push_subcontext_end(ndr
, _ndr_rhs
, 2, -1));
1476 if (ndr_flags
& NDR_BUFFERS
) {
1478 return NDR_ERR_SUCCESS
;
1481 static enum ndr_err_code
ndr_pull_epm_floor(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_floor
*r
)
1483 if (ndr_flags
& NDR_SCALARS
) {
1484 NDR_CHECK(ndr_pull_align(ndr
, 1));
1486 struct ndr_pull
*_ndr_lhs
;
1487 NDR_CHECK(ndr_pull_subcontext_start(ndr
, &_ndr_lhs
, 2, -1));
1488 NDR_CHECK(ndr_pull_epm_lhs(_ndr_lhs
, NDR_SCALARS
, &r
->lhs
));
1489 NDR_CHECK(ndr_pull_subcontext_end(ndr
, _ndr_lhs
, 2, -1));
1492 struct ndr_pull
*_ndr_rhs
;
1493 NDR_CHECK(ndr_pull_subcontext_start(ndr
, &_ndr_rhs
, 2, -1));
1494 NDR_CHECK(ndr_pull_set_switch_value(_ndr_rhs
, &r
->rhs
, r
->lhs
.protocol
));
1495 NDR_CHECK(ndr_pull_epm_rhs(_ndr_rhs
, NDR_SCALARS
, &r
->rhs
));
1496 NDR_CHECK(ndr_pull_subcontext_end(ndr
, _ndr_rhs
, 2, -1));
1499 if (ndr_flags
& NDR_BUFFERS
) {
1501 return NDR_ERR_SUCCESS
;
1504 _PUBLIC_
void ndr_print_epm_floor(struct ndr_print
*ndr
, const char *name
, const struct epm_floor
*r
)
1506 ndr_print_struct(ndr
, name
, "epm_floor");
1508 ndr_print_epm_lhs(ndr
, "lhs", &r
->lhs
);
1509 ndr_print_set_switch_value(ndr
, &r
->rhs
, r
->lhs
.protocol
);
1510 ndr_print_epm_rhs(ndr
, "rhs", &r
->rhs
);
1514 static enum ndr_err_code
ndr_push_epm_tower(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_tower
*r
)
1516 uint32_t cntr_floors_0
;
1518 uint32_t _flags_save_STRUCT
= ndr
->flags
;
1519 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_NOALIGN
|LIBNDR_FLAG_LITTLE_ENDIAN
);
1520 if (ndr_flags
& NDR_SCALARS
) {
1521 NDR_CHECK(ndr_push_align(ndr
, 2));
1522 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->num_floors
));
1523 for (cntr_floors_0
= 0; cntr_floors_0
< r
->num_floors
; cntr_floors_0
++) {
1524 NDR_CHECK(ndr_push_epm_floor(ndr
, NDR_SCALARS
, &r
->floors
[cntr_floors_0
]));
1527 if (ndr_flags
& NDR_BUFFERS
) {
1529 ndr
->flags
= _flags_save_STRUCT
;
1531 return NDR_ERR_SUCCESS
;
1534 static enum ndr_err_code
ndr_pull_epm_tower(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_tower
*r
)
1536 uint32_t cntr_floors_0
;
1537 TALLOC_CTX
*_mem_save_floors_0
;
1539 uint32_t _flags_save_STRUCT
= ndr
->flags
;
1540 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_NOALIGN
|LIBNDR_FLAG_LITTLE_ENDIAN
);
1541 if (ndr_flags
& NDR_SCALARS
) {
1542 NDR_CHECK(ndr_pull_align(ndr
, 2));
1543 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->num_floors
));
1544 NDR_PULL_ALLOC_N(ndr
, r
->floors
, r
->num_floors
);
1545 _mem_save_floors_0
= NDR_PULL_GET_MEM_CTX(ndr
);
1546 NDR_PULL_SET_MEM_CTX(ndr
, r
->floors
, 0);
1547 for (cntr_floors_0
= 0; cntr_floors_0
< r
->num_floors
; cntr_floors_0
++) {
1548 NDR_CHECK(ndr_pull_epm_floor(ndr
, NDR_SCALARS
, &r
->floors
[cntr_floors_0
]));
1550 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_floors_0
, 0);
1552 if (ndr_flags
& NDR_BUFFERS
) {
1554 ndr
->flags
= _flags_save_STRUCT
;
1556 return NDR_ERR_SUCCESS
;
1559 _PUBLIC_
void ndr_print_epm_tower(struct ndr_print
*ndr
, const char *name
, const struct epm_tower
*r
)
1561 uint32_t cntr_floors_0
;
1562 ndr_print_struct(ndr
, name
, "epm_tower");
1564 uint32_t _flags_save_STRUCT
= ndr
->flags
;
1565 ndr_set_flags(&ndr
->flags
, LIBNDR_FLAG_NOALIGN
|LIBNDR_FLAG_LITTLE_ENDIAN
);
1567 ndr_print_uint16(ndr
, "num_floors", r
->num_floors
);
1568 ndr
->print(ndr
, "%s: ARRAY(%d)", "floors", (int)r
->num_floors
);
1570 for (cntr_floors_0
=0;cntr_floors_0
<r
->num_floors
;cntr_floors_0
++) {
1572 if (asprintf(&idx_0
, "[%d]", cntr_floors_0
) != -1) {
1573 ndr_print_epm_floor(ndr
, "floors", &r
->floors
[cntr_floors_0
]);
1579 ndr
->flags
= _flags_save_STRUCT
;
1583 static size_t ndr_size_epm_tower(const struct epm_tower
*r
, struct smb_iconv_convenience
*ic
, int flags
)
1585 flags
|= LIBNDR_FLAG_NOALIGN
|LIBNDR_FLAG_LITTLE_ENDIAN
;
1586 return ndr_size_struct(r
, flags
, (ndr_push_flags_fn_t
)ndr_push_epm_tower
, ic
);
1589 static enum ndr_err_code
ndr_push_epm_twr_t(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_twr_t
*r
)
1591 if (ndr_flags
& NDR_SCALARS
) {
1592 NDR_CHECK(ndr_push_align(ndr
, 4));
1593 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_size_epm_tower(&r
->tower
, ndr
->iconv_convenience
, ndr
->flags
)));
1595 struct ndr_push
*_ndr_tower
;
1596 NDR_CHECK(ndr_push_subcontext_start(ndr
, &_ndr_tower
, 4, -1));
1597 NDR_CHECK(ndr_push_epm_tower(_ndr_tower
, NDR_SCALARS
, &r
->tower
));
1598 NDR_CHECK(ndr_push_subcontext_end(ndr
, _ndr_tower
, 4, -1));
1601 if (ndr_flags
& NDR_BUFFERS
) {
1603 return NDR_ERR_SUCCESS
;
1606 static enum ndr_err_code
ndr_pull_epm_twr_t(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_twr_t
*r
)
1608 if (ndr_flags
& NDR_SCALARS
) {
1609 NDR_CHECK(ndr_pull_align(ndr
, 4));
1610 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->tower_length
));
1612 struct ndr_pull
*_ndr_tower
;
1613 NDR_CHECK(ndr_pull_subcontext_start(ndr
, &_ndr_tower
, 4, -1));
1614 NDR_CHECK(ndr_pull_epm_tower(_ndr_tower
, NDR_SCALARS
, &r
->tower
));
1615 NDR_CHECK(ndr_pull_subcontext_end(ndr
, _ndr_tower
, 4, -1));
1618 if (ndr_flags
& NDR_BUFFERS
) {
1620 return NDR_ERR_SUCCESS
;
1623 _PUBLIC_
void ndr_print_epm_twr_t(struct ndr_print
*ndr
, const char *name
, const struct epm_twr_t
*r
)
1625 ndr_print_struct(ndr
, name
, "epm_twr_t");
1627 ndr_print_uint32(ndr
, "tower_length", (ndr
->flags
& LIBNDR_PRINT_SET_VALUES
)?ndr_size_epm_tower(&r
->tower
, ndr
->iconv_convenience
, ndr
->flags
):r
->tower_length
);
1628 ndr_print_epm_tower(ndr
, "tower", &r
->tower
);
1632 static enum ndr_err_code
ndr_push_epm_entry_t(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_entry_t
*r
)
1634 if (ndr_flags
& NDR_SCALARS
) {
1635 NDR_CHECK(ndr_push_align(ndr
, 5));
1636 NDR_CHECK(ndr_push_GUID(ndr
, NDR_SCALARS
, &r
->object
));
1637 NDR_CHECK(ndr_push_full_ptr(ndr
, r
->tower
));
1638 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
1639 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, strlen(r
->annotation
) + 1));
1640 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->annotation
, strlen(r
->annotation
) + 1, sizeof(uint8_t), CH_DOS
));
1642 if (ndr_flags
& NDR_BUFFERS
) {
1644 NDR_CHECK(ndr_push_epm_twr_t(ndr
, NDR_SCALARS
, r
->tower
));
1647 return NDR_ERR_SUCCESS
;
1650 static enum ndr_err_code
ndr_pull_epm_entry_t(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_entry_t
*r
)
1652 uint32_t _ptr_tower
;
1653 TALLOC_CTX
*_mem_save_tower_0
;
1654 if (ndr_flags
& NDR_SCALARS
) {
1655 NDR_CHECK(ndr_pull_align(ndr
, 5));
1656 NDR_CHECK(ndr_pull_GUID(ndr
, NDR_SCALARS
, &r
->object
));
1657 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_tower
));
1659 NDR_PULL_ALLOC(ndr
, r
->tower
);
1663 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->__annotation_offset
));
1664 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->__annotation_length
));
1665 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->annotation
, r
->__annotation_length
, sizeof(uint8_t), CH_DOS
));
1667 if (ndr_flags
& NDR_BUFFERS
) {
1669 _mem_save_tower_0
= NDR_PULL_GET_MEM_CTX(ndr
);
1670 NDR_PULL_SET_MEM_CTX(ndr
, r
->tower
, 0);
1671 NDR_CHECK(ndr_pull_epm_twr_t(ndr
, NDR_SCALARS
, r
->tower
));
1672 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_tower_0
, 0);
1675 return NDR_ERR_SUCCESS
;
1678 _PUBLIC_
void ndr_print_epm_entry_t(struct ndr_print
*ndr
, const char *name
, const struct epm_entry_t
*r
)
1680 ndr_print_struct(ndr
, name
, "epm_entry_t");
1682 ndr_print_GUID(ndr
, "object", &r
->object
);
1683 ndr_print_ptr(ndr
, "tower", r
->tower
);
1686 ndr_print_epm_twr_t(ndr
, "tower", r
->tower
);
1689 ndr_print_uint32(ndr
, "__annotation_offset", (ndr
->flags
& LIBNDR_PRINT_SET_VALUES
)?0:r
->__annotation_offset
);
1690 ndr_print_uint32(ndr
, "__annotation_length", (ndr
->flags
& LIBNDR_PRINT_SET_VALUES
)?strlen(r
->annotation
) + 1:r
->__annotation_length
);
1691 ndr_print_string(ndr
, "annotation", r
->annotation
);
1695 static enum ndr_err_code
ndr_push_rpc_if_id_t(struct ndr_push
*ndr
, int ndr_flags
, const struct rpc_if_id_t
*r
)
1697 if (ndr_flags
& NDR_SCALARS
) {
1698 NDR_CHECK(ndr_push_align(ndr
, 4));
1699 NDR_CHECK(ndr_push_GUID(ndr
, NDR_SCALARS
, &r
->uuid
));
1700 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->vers_major
));
1701 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->vers_minor
));
1703 if (ndr_flags
& NDR_BUFFERS
) {
1705 return NDR_ERR_SUCCESS
;
1708 static enum ndr_err_code
ndr_pull_rpc_if_id_t(struct ndr_pull
*ndr
, int ndr_flags
, struct rpc_if_id_t
*r
)
1710 if (ndr_flags
& NDR_SCALARS
) {
1711 NDR_CHECK(ndr_pull_align(ndr
, 4));
1712 NDR_CHECK(ndr_pull_GUID(ndr
, NDR_SCALARS
, &r
->uuid
));
1713 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->vers_major
));
1714 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->vers_minor
));
1716 if (ndr_flags
& NDR_BUFFERS
) {
1718 return NDR_ERR_SUCCESS
;
1721 _PUBLIC_
void ndr_print_rpc_if_id_t(struct ndr_print
*ndr
, const char *name
, const struct rpc_if_id_t
*r
)
1723 ndr_print_struct(ndr
, name
, "rpc_if_id_t");
1725 ndr_print_GUID(ndr
, "uuid", &r
->uuid
);
1726 ndr_print_uint16(ndr
, "vers_major", r
->vers_major
);
1727 ndr_print_uint16(ndr
, "vers_minor", r
->vers_minor
);
1731 static enum ndr_err_code
ndr_push_epm_twr_p_t(struct ndr_push
*ndr
, int ndr_flags
, const struct epm_twr_p_t
*r
)
1733 if (ndr_flags
& NDR_SCALARS
) {
1734 NDR_CHECK(ndr_push_align(ndr
, 5));
1735 NDR_CHECK(ndr_push_full_ptr(ndr
, r
->twr
));
1737 if (ndr_flags
& NDR_BUFFERS
) {
1739 NDR_CHECK(ndr_push_epm_twr_t(ndr
, NDR_SCALARS
, r
->twr
));
1742 return NDR_ERR_SUCCESS
;
1745 static enum ndr_err_code
ndr_pull_epm_twr_p_t(struct ndr_pull
*ndr
, int ndr_flags
, struct epm_twr_p_t
*r
)
1748 TALLOC_CTX
*_mem_save_twr_0
;
1749 if (ndr_flags
& NDR_SCALARS
) {
1750 NDR_CHECK(ndr_pull_align(ndr
, 5));
1751 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_twr
));
1753 NDR_PULL_ALLOC(ndr
, r
->twr
);
1758 if (ndr_flags
& NDR_BUFFERS
) {
1760 _mem_save_twr_0
= NDR_PULL_GET_MEM_CTX(ndr
);
1761 NDR_PULL_SET_MEM_CTX(ndr
, r
->twr
, 0);
1762 NDR_CHECK(ndr_pull_epm_twr_t(ndr
, NDR_SCALARS
, r
->twr
));
1763 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_twr_0
, 0);
1766 return NDR_ERR_SUCCESS
;
1769 _PUBLIC_
void ndr_print_epm_twr_p_t(struct ndr_print
*ndr
, const char *name
, const struct epm_twr_p_t
*r
)
1771 ndr_print_struct(ndr
, name
, "epm_twr_p_t");
1773 ndr_print_ptr(ndr
, "twr", r
->twr
);
1776 ndr_print_epm_twr_t(ndr
, "twr", r
->twr
);
1782 static enum ndr_err_code
ndr_push_epm_Insert(struct ndr_push
*ndr
, int flags
, const struct epm_Insert
*r
)
1784 uint32_t cntr_entries_0
;
1785 if (flags
& NDR_IN
) {
1786 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.num_ents
));
1787 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, r
->in
.num_ents
));
1788 for (cntr_entries_0
= 0; cntr_entries_0
< r
->in
.num_ents
; cntr_entries_0
++) {
1789 NDR_CHECK(ndr_push_epm_entry_t(ndr
, NDR_SCALARS
, &r
->in
.entries
[cntr_entries_0
]));
1791 for (cntr_entries_0
= 0; cntr_entries_0
< r
->in
.num_ents
; cntr_entries_0
++) {
1792 NDR_CHECK(ndr_push_epm_entry_t(ndr
, NDR_BUFFERS
, &r
->in
.entries
[cntr_entries_0
]));
1794 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.replace
));
1796 if (flags
& NDR_OUT
) {
1797 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->out
.result
));
1799 return NDR_ERR_SUCCESS
;
1802 static enum ndr_err_code
ndr_pull_epm_Insert(struct ndr_pull
*ndr
, int flags
, struct epm_Insert
*r
)
1804 uint32_t cntr_entries_0
;
1805 TALLOC_CTX
*_mem_save_entries_0
;
1806 if (flags
& NDR_IN
) {
1807 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.num_ents
));
1808 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.entries
));
1809 NDR_PULL_ALLOC_N(ndr
, r
->in
.entries
, ndr_get_array_size(ndr
, &r
->in
.entries
));
1810 _mem_save_entries_0
= NDR_PULL_GET_MEM_CTX(ndr
);
1811 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.entries
, 0);
1812 for (cntr_entries_0
= 0; cntr_entries_0
< r
->in
.num_ents
; cntr_entries_0
++) {
1813 NDR_CHECK(ndr_pull_epm_entry_t(ndr
, NDR_SCALARS
, &r
->in
.entries
[cntr_entries_0
]));
1815 for (cntr_entries_0
= 0; cntr_entries_0
< r
->in
.num_ents
; cntr_entries_0
++) {
1816 NDR_CHECK(ndr_pull_epm_entry_t(ndr
, NDR_BUFFERS
, &r
->in
.entries
[cntr_entries_0
]));
1818 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_entries_0
, 0);
1819 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.replace
));
1820 if (r
->in
.entries
) {
1821 NDR_CHECK(ndr_check_array_size(ndr
, (void*)&r
->in
.entries
, r
->in
.num_ents
));
1824 if (flags
& NDR_OUT
) {
1825 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->out
.result
));
1827 return NDR_ERR_SUCCESS
;
1830 _PUBLIC_
void ndr_print_epm_Insert(struct ndr_print
*ndr
, const char *name
, int flags
, const struct epm_Insert
*r
)
1832 uint32_t cntr_entries_0
;
1833 ndr_print_struct(ndr
, name
, "epm_Insert");
1835 if (flags
& NDR_SET_VALUES
) {
1836 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1838 if (flags
& NDR_IN
) {
1839 ndr_print_struct(ndr
, "in", "epm_Insert");
1841 ndr_print_uint32(ndr
, "num_ents", r
->in
.num_ents
);
1842 ndr
->print(ndr
, "%s: ARRAY(%d)", "entries", (int)r
->in
.num_ents
);
1844 for (cntr_entries_0
=0;cntr_entries_0
<r
->in
.num_ents
;cntr_entries_0
++) {
1846 if (asprintf(&idx_0
, "[%d]", cntr_entries_0
) != -1) {
1847 ndr_print_epm_entry_t(ndr
, "entries", &r
->in
.entries
[cntr_entries_0
]);
1852 ndr_print_uint32(ndr
, "replace", r
->in
.replace
);
1855 if (flags
& NDR_OUT
) {
1856 ndr_print_struct(ndr
, "out", "epm_Insert");
1858 ndr_print_uint32(ndr
, "result", r
->out
.result
);
1864 static enum ndr_err_code
ndr_push_epm_Delete(struct ndr_push
*ndr
, int flags
, const struct epm_Delete
*r
)
1866 uint32_t cntr_entries_0
;
1867 if (flags
& NDR_IN
) {
1868 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.num_ents
));
1869 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, r
->in
.num_ents
));
1870 for (cntr_entries_0
= 0; cntr_entries_0
< r
->in
.num_ents
; cntr_entries_0
++) {
1871 NDR_CHECK(ndr_push_epm_entry_t(ndr
, NDR_SCALARS
, &r
->in
.entries
[cntr_entries_0
]));
1873 for (cntr_entries_0
= 0; cntr_entries_0
< r
->in
.num_ents
; cntr_entries_0
++) {
1874 NDR_CHECK(ndr_push_epm_entry_t(ndr
, NDR_BUFFERS
, &r
->in
.entries
[cntr_entries_0
]));
1877 if (flags
& NDR_OUT
) {
1878 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->out
.result
));
1880 return NDR_ERR_SUCCESS
;
1883 static enum ndr_err_code
ndr_pull_epm_Delete(struct ndr_pull
*ndr
, int flags
, struct epm_Delete
*r
)
1885 uint32_t cntr_entries_0
;
1886 TALLOC_CTX
*_mem_save_entries_0
;
1887 if (flags
& NDR_IN
) {
1888 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.num_ents
));
1889 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.entries
));
1890 NDR_PULL_ALLOC_N(ndr
, r
->in
.entries
, ndr_get_array_size(ndr
, &r
->in
.entries
));
1891 _mem_save_entries_0
= NDR_PULL_GET_MEM_CTX(ndr
);
1892 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.entries
, 0);
1893 for (cntr_entries_0
= 0; cntr_entries_0
< r
->in
.num_ents
; cntr_entries_0
++) {
1894 NDR_CHECK(ndr_pull_epm_entry_t(ndr
, NDR_SCALARS
, &r
->in
.entries
[cntr_entries_0
]));
1896 for (cntr_entries_0
= 0; cntr_entries_0
< r
->in
.num_ents
; cntr_entries_0
++) {
1897 NDR_CHECK(ndr_pull_epm_entry_t(ndr
, NDR_BUFFERS
, &r
->in
.entries
[cntr_entries_0
]));
1899 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_entries_0
, 0);
1900 if (r
->in
.entries
) {
1901 NDR_CHECK(ndr_check_array_size(ndr
, (void*)&r
->in
.entries
, r
->in
.num_ents
));
1904 if (flags
& NDR_OUT
) {
1905 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->out
.result
));
1907 return NDR_ERR_SUCCESS
;
1910 _PUBLIC_
void ndr_print_epm_Delete(struct ndr_print
*ndr
, const char *name
, int flags
, const struct epm_Delete
*r
)
1912 uint32_t cntr_entries_0
;
1913 ndr_print_struct(ndr
, name
, "epm_Delete");
1915 if (flags
& NDR_SET_VALUES
) {
1916 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1918 if (flags
& NDR_IN
) {
1919 ndr_print_struct(ndr
, "in", "epm_Delete");
1921 ndr_print_uint32(ndr
, "num_ents", r
->in
.num_ents
);
1922 ndr
->print(ndr
, "%s: ARRAY(%d)", "entries", (int)r
->in
.num_ents
);
1924 for (cntr_entries_0
=0;cntr_entries_0
<r
->in
.num_ents
;cntr_entries_0
++) {
1926 if (asprintf(&idx_0
, "[%d]", cntr_entries_0
) != -1) {
1927 ndr_print_epm_entry_t(ndr
, "entries", &r
->in
.entries
[cntr_entries_0
]);
1934 if (flags
& NDR_OUT
) {
1935 ndr_print_struct(ndr
, "out", "epm_Delete");
1937 ndr_print_uint32(ndr
, "result", r
->out
.result
);
1943 static enum ndr_err_code
ndr_push_epm_Lookup(struct ndr_push
*ndr
, int flags
, const struct epm_Lookup
*r
)
1945 uint32_t cntr_entries_0
;
1946 if (flags
& NDR_IN
) {
1947 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.inquiry_type
));
1948 NDR_CHECK(ndr_push_full_ptr(ndr
, r
->in
.object
));
1950 NDR_CHECK(ndr_push_GUID(ndr
, NDR_SCALARS
, r
->in
.object
));
1952 NDR_CHECK(ndr_push_full_ptr(ndr
, r
->in
.interface_id
));
1953 if (r
->in
.interface_id
) {
1954 NDR_CHECK(ndr_push_rpc_if_id_t(ndr
, NDR_SCALARS
, r
->in
.interface_id
));
1956 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.vers_option
));
1957 if (r
->in
.entry_handle
== NULL
) {
1958 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
1960 NDR_CHECK(ndr_push_policy_handle(ndr
, NDR_SCALARS
, r
->in
.entry_handle
));
1961 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.max_ents
));
1963 if (flags
& NDR_OUT
) {
1964 if (r
->out
.entry_handle
== NULL
) {
1965 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
1967 NDR_CHECK(ndr_push_policy_handle(ndr
, NDR_SCALARS
, r
->out
.entry_handle
));
1968 if (r
->out
.num_ents
== NULL
) {
1969 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
1971 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.num_ents
));
1972 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, r
->in
.max_ents
));
1973 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
1974 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, *r
->out
.num_ents
));
1975 for (cntr_entries_0
= 0; cntr_entries_0
< *r
->out
.num_ents
; cntr_entries_0
++) {
1976 NDR_CHECK(ndr_push_epm_entry_t(ndr
, NDR_SCALARS
, &r
->out
.entries
[cntr_entries_0
]));
1978 for (cntr_entries_0
= 0; cntr_entries_0
< *r
->out
.num_ents
; cntr_entries_0
++) {
1979 NDR_CHECK(ndr_push_epm_entry_t(ndr
, NDR_BUFFERS
, &r
->out
.entries
[cntr_entries_0
]));
1981 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->out
.result
));
1983 return NDR_ERR_SUCCESS
;
1986 static enum ndr_err_code
ndr_pull_epm_Lookup(struct ndr_pull
*ndr
, int flags
, struct epm_Lookup
*r
)
1988 uint32_t _ptr_object
;
1989 uint32_t _ptr_interface_id
;
1990 uint32_t cntr_entries_0
;
1991 TALLOC_CTX
*_mem_save_object_0
;
1992 TALLOC_CTX
*_mem_save_interface_id_0
;
1993 TALLOC_CTX
*_mem_save_entry_handle_0
;
1994 TALLOC_CTX
*_mem_save_num_ents_0
;
1995 TALLOC_CTX
*_mem_save_entries_0
;
1996 if (flags
& NDR_IN
) {
1997 ZERO_STRUCT(r
->out
);
1999 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.inquiry_type
));
2000 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_object
));
2002 NDR_PULL_ALLOC(ndr
, r
->in
.object
);
2004 r
->in
.object
= NULL
;
2007 _mem_save_object_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2008 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.object
, 0);
2009 NDR_CHECK(ndr_pull_GUID(ndr
, NDR_SCALARS
, r
->in
.object
));
2010 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_object_0
, 0);
2012 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_interface_id
));
2013 if (_ptr_interface_id
) {
2014 NDR_PULL_ALLOC(ndr
, r
->in
.interface_id
);
2016 r
->in
.interface_id
= NULL
;
2018 if (r
->in
.interface_id
) {
2019 _mem_save_interface_id_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2020 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.interface_id
, 0);
2021 NDR_CHECK(ndr_pull_rpc_if_id_t(ndr
, NDR_SCALARS
, r
->in
.interface_id
));
2022 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_interface_id_0
, 0);
2024 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.vers_option
));
2025 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2026 NDR_PULL_ALLOC(ndr
, r
->in
.entry_handle
);
2028 _mem_save_entry_handle_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2029 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.entry_handle
, LIBNDR_FLAG_REF_ALLOC
);
2030 NDR_CHECK(ndr_pull_policy_handle(ndr
, NDR_SCALARS
, r
->in
.entry_handle
));
2031 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_entry_handle_0
, LIBNDR_FLAG_REF_ALLOC
);
2032 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.max_ents
));
2033 NDR_PULL_ALLOC(ndr
, r
->out
.entry_handle
);
2034 *r
->out
.entry_handle
= *r
->in
.entry_handle
;
2035 NDR_PULL_ALLOC(ndr
, r
->out
.num_ents
);
2036 ZERO_STRUCTP(r
->out
.num_ents
);
2038 if (flags
& NDR_OUT
) {
2039 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2040 NDR_PULL_ALLOC(ndr
, r
->out
.entry_handle
);
2042 _mem_save_entry_handle_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2043 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.entry_handle
, LIBNDR_FLAG_REF_ALLOC
);
2044 NDR_CHECK(ndr_pull_policy_handle(ndr
, NDR_SCALARS
, r
->out
.entry_handle
));
2045 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_entry_handle_0
, LIBNDR_FLAG_REF_ALLOC
);
2046 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2047 NDR_PULL_ALLOC(ndr
, r
->out
.num_ents
);
2049 _mem_save_num_ents_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2050 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.num_ents
, LIBNDR_FLAG_REF_ALLOC
);
2051 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.num_ents
));
2052 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_num_ents_0
, LIBNDR_FLAG_REF_ALLOC
);
2053 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->out
.entries
));
2054 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->out
.entries
));
2055 if (ndr_get_array_length(ndr
, &r
->out
.entries
) > ndr_get_array_size(ndr
, &r
->out
.entries
)) {
2056 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->out
.entries
), ndr_get_array_length(ndr
, &r
->out
.entries
));
2058 NDR_PULL_ALLOC_N(ndr
, r
->out
.entries
, ndr_get_array_size(ndr
, &r
->out
.entries
));
2059 _mem_save_entries_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2060 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.entries
, 0);
2061 for (cntr_entries_0
= 0; cntr_entries_0
< ndr_get_array_length(ndr
, &r
->out
.entries
); cntr_entries_0
++) {
2062 NDR_CHECK(ndr_pull_epm_entry_t(ndr
, NDR_SCALARS
, &r
->out
.entries
[cntr_entries_0
]));
2064 for (cntr_entries_0
= 0; cntr_entries_0
< ndr_get_array_length(ndr
, &r
->out
.entries
); cntr_entries_0
++) {
2065 NDR_CHECK(ndr_pull_epm_entry_t(ndr
, NDR_BUFFERS
, &r
->out
.entries
[cntr_entries_0
]));
2067 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_entries_0
, 0);
2068 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->out
.result
));
2069 if (r
->out
.entries
) {
2070 NDR_CHECK(ndr_check_array_size(ndr
, (void*)&r
->out
.entries
, r
->in
.max_ents
));
2072 if (r
->out
.entries
) {
2073 NDR_CHECK(ndr_check_array_length(ndr
, (void*)&r
->out
.entries
, *r
->out
.num_ents
));
2076 return NDR_ERR_SUCCESS
;
2079 _PUBLIC_
void ndr_print_epm_Lookup(struct ndr_print
*ndr
, const char *name
, int flags
, const struct epm_Lookup
*r
)
2081 uint32_t cntr_entries_0
;
2082 ndr_print_struct(ndr
, name
, "epm_Lookup");
2084 if (flags
& NDR_SET_VALUES
) {
2085 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2087 if (flags
& NDR_IN
) {
2088 ndr_print_struct(ndr
, "in", "epm_Lookup");
2090 ndr_print_uint32(ndr
, "inquiry_type", r
->in
.inquiry_type
);
2091 ndr_print_ptr(ndr
, "object", r
->in
.object
);
2094 ndr_print_GUID(ndr
, "object", r
->in
.object
);
2097 ndr_print_ptr(ndr
, "interface_id", r
->in
.interface_id
);
2099 if (r
->in
.interface_id
) {
2100 ndr_print_rpc_if_id_t(ndr
, "interface_id", r
->in
.interface_id
);
2103 ndr_print_uint32(ndr
, "vers_option", r
->in
.vers_option
);
2104 ndr_print_ptr(ndr
, "entry_handle", r
->in
.entry_handle
);
2106 ndr_print_policy_handle(ndr
, "entry_handle", r
->in
.entry_handle
);
2108 ndr_print_uint32(ndr
, "max_ents", r
->in
.max_ents
);
2111 if (flags
& NDR_OUT
) {
2112 ndr_print_struct(ndr
, "out", "epm_Lookup");
2114 ndr_print_ptr(ndr
, "entry_handle", r
->out
.entry_handle
);
2116 ndr_print_policy_handle(ndr
, "entry_handle", r
->out
.entry_handle
);
2118 ndr_print_ptr(ndr
, "num_ents", r
->out
.num_ents
);
2120 ndr_print_uint32(ndr
, "num_ents", *r
->out
.num_ents
);
2122 ndr
->print(ndr
, "%s: ARRAY(%d)", "entries", (int)*r
->out
.num_ents
);
2124 for (cntr_entries_0
=0;cntr_entries_0
<*r
->out
.num_ents
;cntr_entries_0
++) {
2126 if (asprintf(&idx_0
, "[%d]", cntr_entries_0
) != -1) {
2127 ndr_print_epm_entry_t(ndr
, "entries", &r
->out
.entries
[cntr_entries_0
]);
2132 ndr_print_uint32(ndr
, "result", r
->out
.result
);
2138 _PUBLIC_
enum ndr_err_code
ndr_push_epm_Map(struct ndr_push
*ndr
, int flags
, const struct epm_Map
*r
)
2140 uint32_t cntr_towers_0
;
2141 if (flags
& NDR_IN
) {
2142 NDR_CHECK(ndr_push_full_ptr(ndr
, r
->in
.object
));
2144 NDR_CHECK(ndr_push_GUID(ndr
, NDR_SCALARS
, r
->in
.object
));
2146 NDR_CHECK(ndr_push_full_ptr(ndr
, r
->in
.map_tower
));
2147 if (r
->in
.map_tower
) {
2148 NDR_CHECK(ndr_push_epm_twr_t(ndr
, NDR_SCALARS
, r
->in
.map_tower
));
2150 if (r
->in
.entry_handle
== NULL
) {
2151 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2153 NDR_CHECK(ndr_push_policy_handle(ndr
, NDR_SCALARS
, r
->in
.entry_handle
));
2154 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.max_towers
));
2156 if (flags
& NDR_OUT
) {
2157 if (r
->out
.entry_handle
== NULL
) {
2158 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2160 NDR_CHECK(ndr_push_policy_handle(ndr
, NDR_SCALARS
, r
->out
.entry_handle
));
2161 if (r
->out
.num_towers
== NULL
) {
2162 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2164 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.num_towers
));
2165 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, r
->in
.max_towers
));
2166 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
2167 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, *r
->out
.num_towers
));
2168 for (cntr_towers_0
= 0; cntr_towers_0
< *r
->out
.num_towers
; cntr_towers_0
++) {
2169 NDR_CHECK(ndr_push_epm_twr_p_t(ndr
, NDR_SCALARS
, &r
->out
.towers
[cntr_towers_0
]));
2171 for (cntr_towers_0
= 0; cntr_towers_0
< *r
->out
.num_towers
; cntr_towers_0
++) {
2172 NDR_CHECK(ndr_push_epm_twr_p_t(ndr
, NDR_BUFFERS
, &r
->out
.towers
[cntr_towers_0
]));
2174 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->out
.result
));
2176 return NDR_ERR_SUCCESS
;
2179 _PUBLIC_
enum ndr_err_code
ndr_pull_epm_Map(struct ndr_pull
*ndr
, int flags
, struct epm_Map
*r
)
2181 uint32_t _ptr_object
;
2182 uint32_t _ptr_map_tower
;
2183 uint32_t cntr_towers_0
;
2184 TALLOC_CTX
*_mem_save_object_0
;
2185 TALLOC_CTX
*_mem_save_map_tower_0
;
2186 TALLOC_CTX
*_mem_save_entry_handle_0
;
2187 TALLOC_CTX
*_mem_save_num_towers_0
;
2188 TALLOC_CTX
*_mem_save_towers_0
;
2189 if (flags
& NDR_IN
) {
2190 ZERO_STRUCT(r
->out
);
2192 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_object
));
2194 NDR_PULL_ALLOC(ndr
, r
->in
.object
);
2196 r
->in
.object
= NULL
;
2199 _mem_save_object_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2200 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.object
, 0);
2201 NDR_CHECK(ndr_pull_GUID(ndr
, NDR_SCALARS
, r
->in
.object
));
2202 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_object_0
, 0);
2204 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_map_tower
));
2205 if (_ptr_map_tower
) {
2206 NDR_PULL_ALLOC(ndr
, r
->in
.map_tower
);
2208 r
->in
.map_tower
= NULL
;
2210 if (r
->in
.map_tower
) {
2211 _mem_save_map_tower_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2212 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.map_tower
, 0);
2213 NDR_CHECK(ndr_pull_epm_twr_t(ndr
, NDR_SCALARS
, r
->in
.map_tower
));
2214 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_map_tower_0
, 0);
2216 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2217 NDR_PULL_ALLOC(ndr
, r
->in
.entry_handle
);
2219 _mem_save_entry_handle_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2220 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.entry_handle
, LIBNDR_FLAG_REF_ALLOC
);
2221 NDR_CHECK(ndr_pull_policy_handle(ndr
, NDR_SCALARS
, r
->in
.entry_handle
));
2222 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_entry_handle_0
, LIBNDR_FLAG_REF_ALLOC
);
2223 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.max_towers
));
2224 NDR_PULL_ALLOC(ndr
, r
->out
.entry_handle
);
2225 *r
->out
.entry_handle
= *r
->in
.entry_handle
;
2226 NDR_PULL_ALLOC(ndr
, r
->out
.num_towers
);
2227 ZERO_STRUCTP(r
->out
.num_towers
);
2229 if (flags
& NDR_OUT
) {
2230 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2231 NDR_PULL_ALLOC(ndr
, r
->out
.entry_handle
);
2233 _mem_save_entry_handle_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2234 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.entry_handle
, LIBNDR_FLAG_REF_ALLOC
);
2235 NDR_CHECK(ndr_pull_policy_handle(ndr
, NDR_SCALARS
, r
->out
.entry_handle
));
2236 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_entry_handle_0
, LIBNDR_FLAG_REF_ALLOC
);
2237 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2238 NDR_PULL_ALLOC(ndr
, r
->out
.num_towers
);
2240 _mem_save_num_towers_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2241 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.num_towers
, LIBNDR_FLAG_REF_ALLOC
);
2242 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.num_towers
));
2243 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_num_towers_0
, LIBNDR_FLAG_REF_ALLOC
);
2244 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->out
.towers
));
2245 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->out
.towers
));
2246 if (ndr_get_array_length(ndr
, &r
->out
.towers
) > ndr_get_array_size(ndr
, &r
->out
.towers
)) {
2247 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->out
.towers
), ndr_get_array_length(ndr
, &r
->out
.towers
));
2249 NDR_PULL_ALLOC_N(ndr
, r
->out
.towers
, ndr_get_array_size(ndr
, &r
->out
.towers
));
2250 _mem_save_towers_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2251 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.towers
, 0);
2252 for (cntr_towers_0
= 0; cntr_towers_0
< ndr_get_array_length(ndr
, &r
->out
.towers
); cntr_towers_0
++) {
2253 NDR_CHECK(ndr_pull_epm_twr_p_t(ndr
, NDR_SCALARS
, &r
->out
.towers
[cntr_towers_0
]));
2255 for (cntr_towers_0
= 0; cntr_towers_0
< ndr_get_array_length(ndr
, &r
->out
.towers
); cntr_towers_0
++) {
2256 NDR_CHECK(ndr_pull_epm_twr_p_t(ndr
, NDR_BUFFERS
, &r
->out
.towers
[cntr_towers_0
]));
2258 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_towers_0
, 0);
2259 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->out
.result
));
2260 if (r
->out
.towers
) {
2261 NDR_CHECK(ndr_check_array_size(ndr
, (void*)&r
->out
.towers
, r
->in
.max_towers
));
2263 if (r
->out
.towers
) {
2264 NDR_CHECK(ndr_check_array_length(ndr
, (void*)&r
->out
.towers
, *r
->out
.num_towers
));
2267 return NDR_ERR_SUCCESS
;
2270 _PUBLIC_
void ndr_print_epm_Map(struct ndr_print
*ndr
, const char *name
, int flags
, const struct epm_Map
*r
)
2272 uint32_t cntr_towers_0
;
2273 ndr_print_struct(ndr
, name
, "epm_Map");
2275 if (flags
& NDR_SET_VALUES
) {
2276 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2278 if (flags
& NDR_IN
) {
2279 ndr_print_struct(ndr
, "in", "epm_Map");
2281 ndr_print_ptr(ndr
, "object", r
->in
.object
);
2284 ndr_print_GUID(ndr
, "object", r
->in
.object
);
2287 ndr_print_ptr(ndr
, "map_tower", r
->in
.map_tower
);
2289 if (r
->in
.map_tower
) {
2290 ndr_print_epm_twr_t(ndr
, "map_tower", r
->in
.map_tower
);
2293 ndr_print_ptr(ndr
, "entry_handle", r
->in
.entry_handle
);
2295 ndr_print_policy_handle(ndr
, "entry_handle", r
->in
.entry_handle
);
2297 ndr_print_uint32(ndr
, "max_towers", r
->in
.max_towers
);
2300 if (flags
& NDR_OUT
) {
2301 ndr_print_struct(ndr
, "out", "epm_Map");
2303 ndr_print_ptr(ndr
, "entry_handle", r
->out
.entry_handle
);
2305 ndr_print_policy_handle(ndr
, "entry_handle", r
->out
.entry_handle
);
2307 ndr_print_ptr(ndr
, "num_towers", r
->out
.num_towers
);
2309 ndr_print_uint32(ndr
, "num_towers", *r
->out
.num_towers
);
2311 ndr
->print(ndr
, "%s: ARRAY(%d)", "towers", (int)*r
->out
.num_towers
);
2313 for (cntr_towers_0
=0;cntr_towers_0
<*r
->out
.num_towers
;cntr_towers_0
++) {
2315 if (asprintf(&idx_0
, "[%d]", cntr_towers_0
) != -1) {
2316 ndr_print_epm_twr_p_t(ndr
, "towers", &r
->out
.towers
[cntr_towers_0
]);
2321 ndr_print_uint32(ndr
, "result", r
->out
.result
);
2327 static enum ndr_err_code
ndr_push_epm_LookupHandleFree(struct ndr_push
*ndr
, int flags
, const struct epm_LookupHandleFree
*r
)
2329 if (flags
& NDR_IN
) {
2330 if (r
->in
.entry_handle
== NULL
) {
2331 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2333 NDR_CHECK(ndr_push_policy_handle(ndr
, NDR_SCALARS
, r
->in
.entry_handle
));
2335 if (flags
& NDR_OUT
) {
2336 if (r
->out
.entry_handle
== NULL
) {
2337 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2339 NDR_CHECK(ndr_push_policy_handle(ndr
, NDR_SCALARS
, r
->out
.entry_handle
));
2340 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->out
.result
));
2342 return NDR_ERR_SUCCESS
;
2345 static enum ndr_err_code
ndr_pull_epm_LookupHandleFree(struct ndr_pull
*ndr
, int flags
, struct epm_LookupHandleFree
*r
)
2347 TALLOC_CTX
*_mem_save_entry_handle_0
;
2348 if (flags
& NDR_IN
) {
2349 ZERO_STRUCT(r
->out
);
2351 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2352 NDR_PULL_ALLOC(ndr
, r
->in
.entry_handle
);
2354 _mem_save_entry_handle_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2355 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.entry_handle
, LIBNDR_FLAG_REF_ALLOC
);
2356 NDR_CHECK(ndr_pull_policy_handle(ndr
, NDR_SCALARS
, r
->in
.entry_handle
));
2357 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_entry_handle_0
, LIBNDR_FLAG_REF_ALLOC
);
2358 NDR_PULL_ALLOC(ndr
, r
->out
.entry_handle
);
2359 *r
->out
.entry_handle
= *r
->in
.entry_handle
;
2361 if (flags
& NDR_OUT
) {
2362 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2363 NDR_PULL_ALLOC(ndr
, r
->out
.entry_handle
);
2365 _mem_save_entry_handle_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2366 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.entry_handle
, LIBNDR_FLAG_REF_ALLOC
);
2367 NDR_CHECK(ndr_pull_policy_handle(ndr
, NDR_SCALARS
, r
->out
.entry_handle
));
2368 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_entry_handle_0
, LIBNDR_FLAG_REF_ALLOC
);
2369 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->out
.result
));
2371 return NDR_ERR_SUCCESS
;
2374 _PUBLIC_
void ndr_print_epm_LookupHandleFree(struct ndr_print
*ndr
, const char *name
, int flags
, const struct epm_LookupHandleFree
*r
)
2376 ndr_print_struct(ndr
, name
, "epm_LookupHandleFree");
2378 if (flags
& NDR_SET_VALUES
) {
2379 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2381 if (flags
& NDR_IN
) {
2382 ndr_print_struct(ndr
, "in", "epm_LookupHandleFree");
2384 ndr_print_ptr(ndr
, "entry_handle", r
->in
.entry_handle
);
2386 ndr_print_policy_handle(ndr
, "entry_handle", r
->in
.entry_handle
);
2390 if (flags
& NDR_OUT
) {
2391 ndr_print_struct(ndr
, "out", "epm_LookupHandleFree");
2393 ndr_print_ptr(ndr
, "entry_handle", r
->out
.entry_handle
);
2395 ndr_print_policy_handle(ndr
, "entry_handle", r
->out
.entry_handle
);
2397 ndr_print_uint32(ndr
, "result", r
->out
.result
);
2403 static enum ndr_err_code
ndr_push_epm_InqObject(struct ndr_push
*ndr
, int flags
, const struct epm_InqObject
*r
)
2405 if (flags
& NDR_IN
) {
2406 if (r
->in
.epm_object
== NULL
) {
2407 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2409 NDR_CHECK(ndr_push_GUID(ndr
, NDR_SCALARS
, r
->in
.epm_object
));
2411 if (flags
& NDR_OUT
) {
2412 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->out
.result
));
2414 return NDR_ERR_SUCCESS
;
2417 static enum ndr_err_code
ndr_pull_epm_InqObject(struct ndr_pull
*ndr
, int flags
, struct epm_InqObject
*r
)
2419 TALLOC_CTX
*_mem_save_epm_object_0
;
2420 if (flags
& NDR_IN
) {
2421 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2422 NDR_PULL_ALLOC(ndr
, r
->in
.epm_object
);
2424 _mem_save_epm_object_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2425 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.epm_object
, LIBNDR_FLAG_REF_ALLOC
);
2426 NDR_CHECK(ndr_pull_GUID(ndr
, NDR_SCALARS
, r
->in
.epm_object
));
2427 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_epm_object_0
, LIBNDR_FLAG_REF_ALLOC
);
2429 if (flags
& NDR_OUT
) {
2430 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->out
.result
));
2432 return NDR_ERR_SUCCESS
;
2435 _PUBLIC_
void ndr_print_epm_InqObject(struct ndr_print
*ndr
, const char *name
, int flags
, const struct epm_InqObject
*r
)
2437 ndr_print_struct(ndr
, name
, "epm_InqObject");
2439 if (flags
& NDR_SET_VALUES
) {
2440 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2442 if (flags
& NDR_IN
) {
2443 ndr_print_struct(ndr
, "in", "epm_InqObject");
2445 ndr_print_ptr(ndr
, "epm_object", r
->in
.epm_object
);
2447 ndr_print_GUID(ndr
, "epm_object", r
->in
.epm_object
);
2451 if (flags
& NDR_OUT
) {
2452 ndr_print_struct(ndr
, "out", "epm_InqObject");
2454 ndr_print_uint32(ndr
, "result", r
->out
.result
);
2460 static enum ndr_err_code
ndr_push_epm_MgmtDelete(struct ndr_push
*ndr
, int flags
, const struct epm_MgmtDelete
*r
)
2462 if (flags
& NDR_IN
) {
2463 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.object_speced
));
2464 NDR_CHECK(ndr_push_full_ptr(ndr
, r
->in
.object
));
2466 NDR_CHECK(ndr_push_GUID(ndr
, NDR_SCALARS
, r
->in
.object
));
2468 NDR_CHECK(ndr_push_full_ptr(ndr
, r
->in
.tower
));
2470 NDR_CHECK(ndr_push_epm_twr_t(ndr
, NDR_SCALARS
, r
->in
.tower
));
2473 if (flags
& NDR_OUT
) {
2474 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->out
.result
));
2476 return NDR_ERR_SUCCESS
;
2479 static enum ndr_err_code
ndr_pull_epm_MgmtDelete(struct ndr_pull
*ndr
, int flags
, struct epm_MgmtDelete
*r
)
2481 uint32_t _ptr_object
;
2482 uint32_t _ptr_tower
;
2483 TALLOC_CTX
*_mem_save_object_0
;
2484 TALLOC_CTX
*_mem_save_tower_0
;
2485 if (flags
& NDR_IN
) {
2486 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.object_speced
));
2487 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_object
));
2489 NDR_PULL_ALLOC(ndr
, r
->in
.object
);
2491 r
->in
.object
= NULL
;
2494 _mem_save_object_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2495 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.object
, 0);
2496 NDR_CHECK(ndr_pull_GUID(ndr
, NDR_SCALARS
, r
->in
.object
));
2497 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_object_0
, 0);
2499 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_tower
));
2501 NDR_PULL_ALLOC(ndr
, r
->in
.tower
);
2506 _mem_save_tower_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2507 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.tower
, 0);
2508 NDR_CHECK(ndr_pull_epm_twr_t(ndr
, NDR_SCALARS
, r
->in
.tower
));
2509 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_tower_0
, 0);
2512 if (flags
& NDR_OUT
) {
2513 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->out
.result
));
2515 return NDR_ERR_SUCCESS
;
2518 _PUBLIC_
void ndr_print_epm_MgmtDelete(struct ndr_print
*ndr
, const char *name
, int flags
, const struct epm_MgmtDelete
*r
)
2520 ndr_print_struct(ndr
, name
, "epm_MgmtDelete");
2522 if (flags
& NDR_SET_VALUES
) {
2523 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2525 if (flags
& NDR_IN
) {
2526 ndr_print_struct(ndr
, "in", "epm_MgmtDelete");
2528 ndr_print_uint32(ndr
, "object_speced", r
->in
.object_speced
);
2529 ndr_print_ptr(ndr
, "object", r
->in
.object
);
2532 ndr_print_GUID(ndr
, "object", r
->in
.object
);
2535 ndr_print_ptr(ndr
, "tower", r
->in
.tower
);
2538 ndr_print_epm_twr_t(ndr
, "tower", r
->in
.tower
);
2543 if (flags
& NDR_OUT
) {
2544 ndr_print_struct(ndr
, "out", "epm_MgmtDelete");
2546 ndr_print_uint32(ndr
, "result", r
->out
.result
);
2552 static enum ndr_err_code
ndr_push_epm_MapAuth(struct ndr_push
*ndr
, int flags
, const struct epm_MapAuth
*r
)
2554 if (flags
& NDR_IN
) {
2556 if (flags
& NDR_OUT
) {
2557 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->out
.result
));
2559 return NDR_ERR_SUCCESS
;
2562 static enum ndr_err_code
ndr_pull_epm_MapAuth(struct ndr_pull
*ndr
, int flags
, struct epm_MapAuth
*r
)
2564 if (flags
& NDR_IN
) {
2566 if (flags
& NDR_OUT
) {
2567 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->out
.result
));
2569 return NDR_ERR_SUCCESS
;
2572 _PUBLIC_
void ndr_print_epm_MapAuth(struct ndr_print
*ndr
, const char *name
, int flags
, const struct epm_MapAuth
*r
)
2574 ndr_print_struct(ndr
, name
, "epm_MapAuth");
2576 if (flags
& NDR_SET_VALUES
) {
2577 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2579 if (flags
& NDR_IN
) {
2580 ndr_print_struct(ndr
, "in", "epm_MapAuth");
2584 if (flags
& NDR_OUT
) {
2585 ndr_print_struct(ndr
, "out", "epm_MapAuth");
2587 ndr_print_uint32(ndr
, "result", r
->out
.result
);
2593 static const struct ndr_interface_call epmapper_calls
[] = {
2596 sizeof(struct epm_Insert
),
2597 (ndr_push_flags_fn_t
) ndr_push_epm_Insert
,
2598 (ndr_pull_flags_fn_t
) ndr_pull_epm_Insert
,
2599 (ndr_print_function_t
) ndr_print_epm_Insert
,
2604 sizeof(struct epm_Delete
),
2605 (ndr_push_flags_fn_t
) ndr_push_epm_Delete
,
2606 (ndr_pull_flags_fn_t
) ndr_pull_epm_Delete
,
2607 (ndr_print_function_t
) ndr_print_epm_Delete
,
2612 sizeof(struct epm_Lookup
),
2613 (ndr_push_flags_fn_t
) ndr_push_epm_Lookup
,
2614 (ndr_pull_flags_fn_t
) ndr_pull_epm_Lookup
,
2615 (ndr_print_function_t
) ndr_print_epm_Lookup
,
2620 sizeof(struct epm_Map
),
2621 (ndr_push_flags_fn_t
) ndr_push_epm_Map
,
2622 (ndr_pull_flags_fn_t
) ndr_pull_epm_Map
,
2623 (ndr_print_function_t
) ndr_print_epm_Map
,
2627 "epm_LookupHandleFree",
2628 sizeof(struct epm_LookupHandleFree
),
2629 (ndr_push_flags_fn_t
) ndr_push_epm_LookupHandleFree
,
2630 (ndr_pull_flags_fn_t
) ndr_pull_epm_LookupHandleFree
,
2631 (ndr_print_function_t
) ndr_print_epm_LookupHandleFree
,
2636 sizeof(struct epm_InqObject
),
2637 (ndr_push_flags_fn_t
) ndr_push_epm_InqObject
,
2638 (ndr_pull_flags_fn_t
) ndr_pull_epm_InqObject
,
2639 (ndr_print_function_t
) ndr_print_epm_InqObject
,
2644 sizeof(struct epm_MgmtDelete
),
2645 (ndr_push_flags_fn_t
) ndr_push_epm_MgmtDelete
,
2646 (ndr_pull_flags_fn_t
) ndr_pull_epm_MgmtDelete
,
2647 (ndr_print_function_t
) ndr_print_epm_MgmtDelete
,
2652 sizeof(struct epm_MapAuth
),
2653 (ndr_push_flags_fn_t
) ndr_push_epm_MapAuth
,
2654 (ndr_pull_flags_fn_t
) ndr_pull_epm_MapAuth
,
2655 (ndr_print_function_t
) ndr_print_epm_MapAuth
,
2658 { NULL
, 0, NULL
, NULL
, NULL
, false }
2661 static const char * const epmapper_endpoint_strings
[] = {
2662 "ncacn_np:[\\pipe\\epmapper]",
2663 "ncacn_ip_tcp:[135]",
2664 "ncalrpc:[EPMAPPER]",
2667 static const struct ndr_interface_string_array epmapper_endpoints
= {
2669 .names
= epmapper_endpoint_strings
2672 static const char * const epmapper_authservice_strings
[] = {
2676 static const struct ndr_interface_string_array epmapper_authservices
= {
2678 .names
= epmapper_authservice_strings
2682 const struct ndr_interface_table ndr_table_epmapper
= {
2685 {0xe1af8308,0x5d1f,0x11c9,{0x91,0xa4},{0x08,0x00,0x2b,0x14,0xa0,0xfa}},
2686 NDR_EPMAPPER_VERSION
2688 .helpstring
= NDR_EPMAPPER_HELPSTRING
,
2690 .calls
= epmapper_calls
,
2691 .endpoints
= &epmapper_endpoints
,
2692 .authservices
= &epmapper_authservices