Line data Source code
1 : /* parser auto-generated by pidl */
2 :
3 : #include "includes.h"
4 : #include "bin/default/librpc/gen_ndr/ndr_fsrvp_state.h"
5 :
6 0 : _PUBLIC_ enum ndr_err_code ndr_push_fsrvp_state_smap(struct ndr_push *ndr, int ndr_flags, const struct fsrvp_state_smap *r)
7 : {
8 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
9 0 : if (ndr_flags & NDR_SCALARS) {
10 0 : NDR_CHECK(ndr_push_align(ndr, 4));
11 : {
12 0 : uint32_t _flags_save_string = ndr->flags;
13 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
14 0 : NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->share_name));
15 0 : ndr->flags = _flags_save_string;
16 : }
17 : {
18 0 : uint32_t _flags_save_string = ndr->flags;
19 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
20 0 : NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sc_share_name));
21 0 : ndr->flags = _flags_save_string;
22 : }
23 : {
24 0 : uint32_t _flags_save_string = ndr->flags;
25 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
26 0 : NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sc_share_comment));
27 0 : ndr->flags = _flags_save_string;
28 : }
29 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->is_exposed));
30 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
31 : }
32 0 : if (ndr_flags & NDR_BUFFERS) {
33 : }
34 0 : return NDR_ERR_SUCCESS;
35 : }
36 :
37 0 : _PUBLIC_ enum ndr_err_code ndr_pull_fsrvp_state_smap(struct ndr_pull *ndr, int ndr_flags, struct fsrvp_state_smap *r)
38 : {
39 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
40 0 : if (ndr_flags & NDR_SCALARS) {
41 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
42 : {
43 0 : uint32_t _flags_save_string = ndr->flags;
44 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
45 0 : NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->share_name));
46 0 : ndr->flags = _flags_save_string;
47 : }
48 : {
49 0 : uint32_t _flags_save_string = ndr->flags;
50 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
51 0 : NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sc_share_name));
52 0 : ndr->flags = _flags_save_string;
53 : }
54 : {
55 0 : uint32_t _flags_save_string = ndr->flags;
56 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
57 0 : NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sc_share_comment));
58 0 : ndr->flags = _flags_save_string;
59 : }
60 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->is_exposed));
61 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
62 : }
63 0 : if (ndr_flags & NDR_BUFFERS) {
64 : }
65 0 : return NDR_ERR_SUCCESS;
66 : }
67 :
68 0 : static void ndr_print_flags_fsrvp_state_smap(struct ndr_print *ndr, const char *name, int unused, const struct fsrvp_state_smap *r)
69 : {
70 0 : ndr_print_fsrvp_state_smap(ndr, name, r);
71 0 : }
72 :
73 0 : _PUBLIC_ void ndr_print_fsrvp_state_smap(struct ndr_print *ndr, const char *name, const struct fsrvp_state_smap *r)
74 : {
75 0 : ndr_print_struct(ndr, name, "fsrvp_state_smap");
76 0 : if (r == NULL) { ndr_print_null(ndr); return; }
77 0 : ndr->depth++;
78 : {
79 0 : uint32_t _flags_save_string = ndr->flags;
80 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
81 0 : ndr_print_string(ndr, "share_name", r->share_name);
82 0 : ndr->flags = _flags_save_string;
83 : }
84 : {
85 0 : uint32_t _flags_save_string = ndr->flags;
86 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
87 0 : ndr_print_string(ndr, "sc_share_name", r->sc_share_name);
88 0 : ndr->flags = _flags_save_string;
89 : }
90 : {
91 0 : uint32_t _flags_save_string = ndr->flags;
92 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
93 0 : ndr_print_string(ndr, "sc_share_comment", r->sc_share_comment);
94 0 : ndr->flags = _flags_save_string;
95 : }
96 0 : ndr_print_uint32(ndr, "is_exposed", r->is_exposed);
97 0 : ndr->depth--;
98 : }
99 :
100 0 : _PUBLIC_ enum ndr_err_code ndr_push_fsrvp_state_sc(struct ndr_push *ndr, int ndr_flags, const struct fsrvp_state_sc *r)
101 : {
102 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
103 0 : if (ndr_flags & NDR_SCALARS) {
104 0 : NDR_CHECK(ndr_push_align(ndr, 4));
105 : {
106 0 : uint32_t _flags_save_string = ndr->flags;
107 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
108 0 : NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->id_str));
109 0 : ndr->flags = _flags_save_string;
110 : }
111 : {
112 0 : uint32_t _flags_save_string = ndr->flags;
113 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
114 0 : NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->volume_name));
115 0 : ndr->flags = _flags_save_string;
116 : }
117 : {
118 0 : uint32_t _flags_save_string = ndr->flags;
119 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
120 0 : NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sc_path));
121 0 : ndr->flags = _flags_save_string;
122 : }
123 0 : NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->create_ts));
124 0 : NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->smaps_count));
125 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
126 : }
127 0 : if (ndr_flags & NDR_BUFFERS) {
128 : }
129 0 : return NDR_ERR_SUCCESS;
130 : }
131 :
132 0 : _PUBLIC_ enum ndr_err_code ndr_pull_fsrvp_state_sc(struct ndr_pull *ndr, int ndr_flags, struct fsrvp_state_sc *r)
133 : {
134 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
135 0 : if (ndr_flags & NDR_SCALARS) {
136 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
137 : {
138 0 : uint32_t _flags_save_string = ndr->flags;
139 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
140 0 : NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->id_str));
141 0 : ndr->flags = _flags_save_string;
142 : }
143 : {
144 0 : uint32_t _flags_save_string = ndr->flags;
145 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
146 0 : NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->volume_name));
147 0 : ndr->flags = _flags_save_string;
148 : }
149 : {
150 0 : uint32_t _flags_save_string = ndr->flags;
151 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
152 0 : NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sc_path));
153 0 : ndr->flags = _flags_save_string;
154 : }
155 0 : NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->create_ts));
156 0 : NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->smaps_count));
157 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
158 : }
159 0 : if (ndr_flags & NDR_BUFFERS) {
160 : }
161 0 : return NDR_ERR_SUCCESS;
162 : }
163 :
164 0 : static void ndr_print_flags_fsrvp_state_sc(struct ndr_print *ndr, const char *name, int unused, const struct fsrvp_state_sc *r)
165 : {
166 0 : ndr_print_fsrvp_state_sc(ndr, name, r);
167 0 : }
168 :
169 0 : _PUBLIC_ void ndr_print_fsrvp_state_sc(struct ndr_print *ndr, const char *name, const struct fsrvp_state_sc *r)
170 : {
171 0 : ndr_print_struct(ndr, name, "fsrvp_state_sc");
172 0 : if (r == NULL) { ndr_print_null(ndr); return; }
173 0 : ndr->depth++;
174 : {
175 0 : uint32_t _flags_save_string = ndr->flags;
176 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
177 0 : ndr_print_string(ndr, "id_str", r->id_str);
178 0 : ndr->flags = _flags_save_string;
179 : }
180 : {
181 0 : uint32_t _flags_save_string = ndr->flags;
182 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
183 0 : ndr_print_string(ndr, "volume_name", r->volume_name);
184 0 : ndr->flags = _flags_save_string;
185 : }
186 : {
187 0 : uint32_t _flags_save_string = ndr->flags;
188 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
189 0 : ndr_print_string(ndr, "sc_path", r->sc_path);
190 0 : ndr->flags = _flags_save_string;
191 : }
192 0 : ndr_print_time_t(ndr, "create_ts", r->create_ts);
193 0 : ndr_print_int32(ndr, "smaps_count", r->smaps_count);
194 0 : ndr->depth--;
195 : }
196 :
197 0 : _PUBLIC_ enum ndr_err_code ndr_push_fsrvp_state_sc_set(struct ndr_push *ndr, int ndr_flags, const struct fsrvp_state_sc_set *r)
198 : {
199 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
200 0 : if (ndr_flags & NDR_SCALARS) {
201 0 : NDR_CHECK(ndr_push_align(ndr, 4));
202 : {
203 0 : uint32_t _flags_save_string = ndr->flags;
204 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
205 0 : NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->id_str));
206 0 : ndr->flags = _flags_save_string;
207 : }
208 0 : NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->state));
209 0 : NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->context));
210 0 : NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->scs_count));
211 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
212 : }
213 0 : if (ndr_flags & NDR_BUFFERS) {
214 : }
215 0 : return NDR_ERR_SUCCESS;
216 : }
217 :
218 0 : _PUBLIC_ enum ndr_err_code ndr_pull_fsrvp_state_sc_set(struct ndr_pull *ndr, int ndr_flags, struct fsrvp_state_sc_set *r)
219 : {
220 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
221 0 : if (ndr_flags & NDR_SCALARS) {
222 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
223 : {
224 0 : uint32_t _flags_save_string = ndr->flags;
225 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
226 0 : NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->id_str));
227 0 : ndr->flags = _flags_save_string;
228 : }
229 0 : NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->state));
230 0 : NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->context));
231 0 : NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->scs_count));
232 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
233 : }
234 0 : if (ndr_flags & NDR_BUFFERS) {
235 : }
236 0 : return NDR_ERR_SUCCESS;
237 : }
238 :
239 0 : static void ndr_print_flags_fsrvp_state_sc_set(struct ndr_print *ndr, const char *name, int unused, const struct fsrvp_state_sc_set *r)
240 : {
241 0 : ndr_print_fsrvp_state_sc_set(ndr, name, r);
242 0 : }
243 :
244 0 : _PUBLIC_ void ndr_print_fsrvp_state_sc_set(struct ndr_print *ndr, const char *name, const struct fsrvp_state_sc_set *r)
245 : {
246 0 : ndr_print_struct(ndr, name, "fsrvp_state_sc_set");
247 0 : if (r == NULL) { ndr_print_null(ndr); return; }
248 0 : ndr->depth++;
249 : {
250 0 : uint32_t _flags_save_string = ndr->flags;
251 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
252 0 : ndr_print_string(ndr, "id_str", r->id_str);
253 0 : ndr->flags = _flags_save_string;
254 : }
255 0 : ndr_print_int32(ndr, "state", r->state);
256 0 : ndr_print_int32(ndr, "context", r->context);
257 0 : ndr_print_int32(ndr, "scs_count", r->scs_count);
258 0 : ndr->depth--;
259 : }
260 :
261 : #ifndef SKIP_NDR_TABLE_fsrvp_state
262 : static const struct ndr_interface_public_struct fsrvp_state_public_structs[] = {
263 : {
264 : .name = "fsrvp_state_smap",
265 : .struct_size = sizeof(struct fsrvp_state_smap ),
266 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsrvp_state_smap,
267 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsrvp_state_smap,
268 : .ndr_print = (ndr_print_function_t) ndr_print_flags_fsrvp_state_smap,
269 : },
270 : {
271 : .name = "fsrvp_state_sc",
272 : .struct_size = sizeof(struct fsrvp_state_sc ),
273 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsrvp_state_sc,
274 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsrvp_state_sc,
275 : .ndr_print = (ndr_print_function_t) ndr_print_flags_fsrvp_state_sc,
276 : },
277 : {
278 : .name = "fsrvp_state_sc_set",
279 : .struct_size = sizeof(struct fsrvp_state_sc_set ),
280 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsrvp_state_sc_set,
281 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsrvp_state_sc_set,
282 : .ndr_print = (ndr_print_function_t) ndr_print_flags_fsrvp_state_sc_set,
283 : },
284 : { .name = NULL }
285 : };
286 :
287 : static const struct ndr_interface_call fsrvp_state_calls[] = {
288 : { .name = NULL }
289 : };
290 :
291 : static const char * const fsrvp_state_endpoint_strings[] = {
292 : "ncacn_np:[\\pipe\\fsrvp_state]",
293 : };
294 :
295 : static const struct ndr_interface_string_array fsrvp_state_endpoints = {
296 : .count = 1,
297 : .names = fsrvp_state_endpoint_strings
298 : };
299 :
300 : static const char * const fsrvp_state_authservice_strings[] = {
301 : "host",
302 : };
303 :
304 : static const struct ndr_interface_string_array fsrvp_state_authservices = {
305 : .count = 1,
306 : .names = fsrvp_state_authservice_strings
307 : };
308 :
309 :
310 : const struct ndr_interface_table ndr_table_fsrvp_state = {
311 : .name = "fsrvp_state",
312 : .num_calls = 0,
313 : .calls = fsrvp_state_calls,
314 : .num_public_structs = 3,
315 : .public_structs = fsrvp_state_public_structs,
316 : .endpoints = &fsrvp_state_endpoints,
317 : .authservices = &fsrvp_state_authservices
318 : };
319 :
320 : #endif /* SKIP_NDR_TABLE_fsrvp_state */
|