Line data Source code
1 : /* parser auto-generated by pidl */
2 :
3 : #include "includes.h"
4 : #include "bin/default/librpc/gen_ndr/ndr_scerpc.h"
5 :
6 0 : static enum ndr_err_code ndr_push_scerpc_Unknown0(struct ndr_push *ndr, ndr_flags_type flags, const struct scerpc_Unknown0 *r)
7 : {
8 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9 0 : if (flags & NDR_IN) {
10 0 : }
11 0 : if (flags & NDR_OUT) {
12 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
13 : }
14 0 : return NDR_ERR_SUCCESS;
15 : }
16 :
17 0 : static enum ndr_err_code ndr_pull_scerpc_Unknown0(struct ndr_pull *ndr, ndr_flags_type flags, struct scerpc_Unknown0 *r)
18 : {
19 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
20 0 : if (flags & NDR_IN) {
21 0 : }
22 0 : if (flags & NDR_OUT) {
23 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
24 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
25 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
26 : }
27 0 : return NDR_ERR_SUCCESS;
28 : }
29 :
30 0 : _PUBLIC_ void ndr_print_scerpc_Unknown0(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct scerpc_Unknown0 *r)
31 : {
32 0 : ndr_print_struct(ndr, name, "scerpc_Unknown0");
33 0 : if (r == NULL) { ndr_print_null(ndr); return; }
34 0 : ndr->depth++;
35 0 : if (flags & NDR_SET_VALUES) {
36 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
37 : }
38 0 : if (flags & NDR_IN) {
39 0 : ndr_print_struct(ndr, "in", "scerpc_Unknown0");
40 0 : ndr->depth++;
41 0 : ndr->depth--;
42 : }
43 0 : if (flags & NDR_OUT) {
44 0 : ndr_print_struct(ndr, "out", "scerpc_Unknown0");
45 0 : ndr->depth++;
46 0 : ndr_print_WERROR(ndr, "result", r->out.result);
47 0 : ndr->depth--;
48 : }
49 0 : ndr->depth--;
50 : }
51 :
52 : #ifndef SKIP_NDR_TABLE_scerpc
53 : static const struct ndr_interface_public_struct scerpc_public_structs[] = {
54 : { .name = NULL }
55 : };
56 :
57 : static const struct ndr_interface_call scerpc_calls[] = {
58 : {
59 : "scerpc_Unknown0",
60 : sizeof(struct scerpc_Unknown0),
61 : (ndr_push_flags_fn_t) ndr_push_scerpc_Unknown0,
62 : (ndr_pull_flags_fn_t) ndr_pull_scerpc_Unknown0,
63 : (ndr_print_function_t) ndr_print_scerpc_Unknown0,
64 : { 0, NULL },
65 : { 0, NULL },
66 : },
67 : { .name = NULL }
68 : };
69 :
70 : static const char * const scerpc_endpoint_strings[] = {
71 : "ncacn_np:[\\pipe\\scerpc]",
72 : };
73 :
74 : static const struct ndr_interface_string_array scerpc_endpoints = {
75 : .count = 1,
76 : .names = scerpc_endpoint_strings
77 : };
78 :
79 : static const char * const scerpc_authservice_strings[] = {
80 : "host",
81 : };
82 :
83 : static const struct ndr_interface_string_array scerpc_authservices = {
84 : .count = 1,
85 : .names = scerpc_authservice_strings
86 : };
87 :
88 :
89 : const struct ndr_interface_table ndr_table_scerpc = {
90 : .name = "scerpc",
91 : .syntax_id = {
92 : {0x93149ca2,0x973b,0x11d1,{0x8c,0x39},{0x00,0xc0,0x4f,0xb9,0x84,0xf9}},
93 : NDR_SCERPC_VERSION
94 : },
95 : .helpstring = NDR_SCERPC_HELPSTRING,
96 : .num_calls = 1,
97 : .calls = scerpc_calls,
98 : .num_public_structs = 0,
99 : .public_structs = scerpc_public_structs,
100 : .endpoints = &scerpc_endpoints,
101 : .authservices = &scerpc_authservices
102 : };
103 :
104 : #endif /* SKIP_NDR_TABLE_scerpc */
|