Line data Source code
1 : /* parser auto-generated by pidl */
2 :
3 : #include "includes.h"
4 : #include "bin/default/librpc/gen_ndr/ndr_quota.h"
5 :
6 : #include "librpc/gen_ndr/ndr_security.h"
7 1 : _PUBLIC_ enum ndr_err_code ndr_push_file_get_quota_info(struct ndr_push *ndr, int ndr_flags, const struct file_get_quota_info *r)
8 : {
9 1 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
10 1 : if (ndr_flags & NDR_SCALARS) {
11 1 : NDR_CHECK(ndr_push_align(ndr, 4));
12 1 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->next_entry_offset));
13 1 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sid_length));
14 1 : NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS, &r->sid));
15 1 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
16 : }
17 1 : if (ndr_flags & NDR_BUFFERS) {
18 : }
19 1 : return NDR_ERR_SUCCESS;
20 : }
21 :
22 0 : _PUBLIC_ enum ndr_err_code ndr_pull_file_get_quota_info(struct ndr_pull *ndr, int ndr_flags, struct file_get_quota_info *r)
23 : {
24 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
25 0 : if (ndr_flags & NDR_SCALARS) {
26 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
27 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->next_entry_offset));
28 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sid_length));
29 0 : NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS, &r->sid));
30 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
31 : }
32 0 : if (ndr_flags & NDR_BUFFERS) {
33 : }
34 0 : return NDR_ERR_SUCCESS;
35 : }
36 :
37 0 : static void ndr_print_flags_file_get_quota_info(struct ndr_print *ndr, const char *name, int unused, const struct file_get_quota_info *r)
38 : {
39 0 : ndr_print_file_get_quota_info(ndr, name, r);
40 0 : }
41 :
42 0 : _PUBLIC_ void ndr_print_file_get_quota_info(struct ndr_print *ndr, const char *name, const struct file_get_quota_info *r)
43 : {
44 0 : ndr_print_struct(ndr, name, "file_get_quota_info");
45 0 : if (r == NULL) { ndr_print_null(ndr); return; }
46 0 : ndr->depth++;
47 0 : ndr_print_uint32(ndr, "next_entry_offset", r->next_entry_offset);
48 0 : ndr_print_uint32(ndr, "sid_length", r->sid_length);
49 0 : ndr_print_dom_sid(ndr, "sid", &r->sid);
50 0 : ndr->depth--;
51 : }
52 :
53 0 : _PUBLIC_ enum ndr_err_code ndr_push_file_quota_information(struct ndr_push *ndr, int ndr_flags, const struct file_quota_information *r)
54 : {
55 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
56 0 : if (ndr_flags & NDR_SCALARS) {
57 0 : NDR_CHECK(ndr_push_align(ndr, 8));
58 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->next_entry_offset));
59 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sid_length));
60 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->change_time));
61 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->quota_used));
62 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->quota_threshold));
63 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->quota_limit));
64 0 : NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS, &r->sid));
65 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
66 : }
67 0 : if (ndr_flags & NDR_BUFFERS) {
68 : }
69 0 : return NDR_ERR_SUCCESS;
70 : }
71 :
72 0 : _PUBLIC_ enum ndr_err_code ndr_pull_file_quota_information(struct ndr_pull *ndr, int ndr_flags, struct file_quota_information *r)
73 : {
74 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
75 0 : if (ndr_flags & NDR_SCALARS) {
76 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
77 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->next_entry_offset));
78 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sid_length));
79 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->change_time));
80 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->quota_used));
81 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->quota_threshold));
82 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->quota_limit));
83 0 : NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS, &r->sid));
84 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
85 : }
86 0 : if (ndr_flags & NDR_BUFFERS) {
87 : }
88 0 : return NDR_ERR_SUCCESS;
89 : }
90 :
91 0 : static void ndr_print_flags_file_quota_information(struct ndr_print *ndr, const char *name, int unused, const struct file_quota_information *r)
92 : {
93 0 : ndr_print_file_quota_information(ndr, name, r);
94 0 : }
95 :
96 0 : _PUBLIC_ void ndr_print_file_quota_information(struct ndr_print *ndr, const char *name, const struct file_quota_information *r)
97 : {
98 0 : ndr_print_struct(ndr, name, "file_quota_information");
99 0 : if (r == NULL) { ndr_print_null(ndr); return; }
100 0 : ndr->depth++;
101 0 : ndr_print_uint32(ndr, "next_entry_offset", r->next_entry_offset);
102 0 : ndr_print_uint32(ndr, "sid_length", r->sid_length);
103 0 : ndr_print_hyper(ndr, "change_time", r->change_time);
104 0 : ndr_print_hyper(ndr, "quota_used", r->quota_used);
105 0 : ndr_print_hyper(ndr, "quota_threshold", r->quota_threshold);
106 0 : ndr_print_hyper(ndr, "quota_limit", r->quota_limit);
107 0 : ndr_print_dom_sid(ndr, "sid", &r->sid);
108 0 : ndr->depth--;
109 : }
110 :
111 : #ifndef SKIP_NDR_TABLE_file_quota
112 : static const struct ndr_interface_public_struct file_quota_public_structs[] = {
113 : {
114 : .name = "file_get_quota_info",
115 : .struct_size = sizeof(struct file_get_quota_info ),
116 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_file_get_quota_info,
117 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_file_get_quota_info,
118 : .ndr_print = (ndr_print_function_t) ndr_print_flags_file_get_quota_info,
119 : },
120 : {
121 : .name = "file_quota_information",
122 : .struct_size = sizeof(struct file_quota_information ),
123 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_file_quota_information,
124 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_file_quota_information,
125 : .ndr_print = (ndr_print_function_t) ndr_print_flags_file_quota_information,
126 : },
127 : { .name = NULL }
128 : };
129 :
130 : static const struct ndr_interface_call file_quota_calls[] = {
131 : { .name = NULL }
132 : };
133 :
134 : static const char * const file_quota_endpoint_strings[] = {
135 : "ncacn_np:[\\pipe\\file_quota]",
136 : };
137 :
138 : static const struct ndr_interface_string_array file_quota_endpoints = {
139 : .count = 1,
140 : .names = file_quota_endpoint_strings
141 : };
142 :
143 : static const char * const file_quota_authservice_strings[] = {
144 : "host",
145 : };
146 :
147 : static const struct ndr_interface_string_array file_quota_authservices = {
148 : .count = 1,
149 : .names = file_quota_authservice_strings
150 : };
151 :
152 :
153 : const struct ndr_interface_table ndr_table_file_quota = {
154 : .name = "file_quota",
155 : .num_calls = 0,
156 : .calls = file_quota_calls,
157 : .num_public_structs = 2,
158 : .public_structs = file_quota_public_structs,
159 : .endpoints = &file_quota_endpoints,
160 : .authservices = &file_quota_authservices
161 : };
162 :
163 : #endif /* SKIP_NDR_TABLE_file_quota */
164 1 : _PUBLIC_ enum ndr_err_code ndr_push_smb2_query_quota_info(struct ndr_push *ndr, int ndr_flags, const struct smb2_query_quota_info *r)
165 : {
166 1 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
167 1 : if (ndr_flags & NDR_SCALARS) {
168 1 : NDR_CHECK(ndr_push_align(ndr, 4));
169 1 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->return_single));
170 1 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->restart_scan));
171 1 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->reserved));
172 1 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sid_list_length));
173 1 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->start_sid_length));
174 1 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->start_sid_offset));
175 1 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
176 : }
177 1 : if (ndr_flags & NDR_BUFFERS) {
178 : }
179 1 : return NDR_ERR_SUCCESS;
180 : }
181 :
182 0 : _PUBLIC_ enum ndr_err_code ndr_pull_smb2_query_quota_info(struct ndr_pull *ndr, int ndr_flags, struct smb2_query_quota_info *r)
183 : {
184 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
185 0 : if (ndr_flags & NDR_SCALARS) {
186 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
187 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->return_single));
188 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->restart_scan));
189 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->reserved));
190 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sid_list_length));
191 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->start_sid_length));
192 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->start_sid_offset));
193 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
194 : }
195 0 : if (ndr_flags & NDR_BUFFERS) {
196 : }
197 0 : return NDR_ERR_SUCCESS;
198 : }
199 :
200 0 : static void ndr_print_flags_smb2_query_quota_info(struct ndr_print *ndr, const char *name, int unused, const struct smb2_query_quota_info *r)
201 : {
202 0 : ndr_print_smb2_query_quota_info(ndr, name, r);
203 0 : }
204 :
205 0 : _PUBLIC_ void ndr_print_smb2_query_quota_info(struct ndr_print *ndr, const char *name, const struct smb2_query_quota_info *r)
206 : {
207 0 : ndr_print_struct(ndr, name, "smb2_query_quota_info");
208 0 : if (r == NULL) { ndr_print_null(ndr); return; }
209 0 : ndr->depth++;
210 0 : ndr_print_uint8(ndr, "return_single", r->return_single);
211 0 : ndr_print_uint8(ndr, "restart_scan", r->restart_scan);
212 0 : ndr_print_uint16(ndr, "reserved", r->reserved);
213 0 : ndr_print_uint32(ndr, "sid_list_length", r->sid_list_length);
214 0 : ndr_print_uint32(ndr, "start_sid_length", r->start_sid_length);
215 0 : ndr_print_uint32(ndr, "start_sid_offset", r->start_sid_offset);
216 0 : ndr->depth--;
217 : }
218 :
219 : #ifndef SKIP_NDR_TABLE_smb2_query_quota
220 : static const struct ndr_interface_public_struct smb2_query_quota_public_structs[] = {
221 : {
222 : .name = "smb2_query_quota_info",
223 : .struct_size = sizeof(struct smb2_query_quota_info ),
224 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_smb2_query_quota_info,
225 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_smb2_query_quota_info,
226 : .ndr_print = (ndr_print_function_t) ndr_print_flags_smb2_query_quota_info,
227 : },
228 : { .name = NULL }
229 : };
230 :
231 : static const struct ndr_interface_call smb2_query_quota_calls[] = {
232 : { .name = NULL }
233 : };
234 :
235 : static const char * const smb2_query_quota_endpoint_strings[] = {
236 : "ncacn_np:[\\pipe\\smb2_query_quota]",
237 : };
238 :
239 : static const struct ndr_interface_string_array smb2_query_quota_endpoints = {
240 : .count = 1,
241 : .names = smb2_query_quota_endpoint_strings
242 : };
243 :
244 : static const char * const smb2_query_quota_authservice_strings[] = {
245 : "host",
246 : };
247 :
248 : static const struct ndr_interface_string_array smb2_query_quota_authservices = {
249 : .count = 1,
250 : .names = smb2_query_quota_authservice_strings
251 : };
252 :
253 :
254 : const struct ndr_interface_table ndr_table_smb2_query_quota = {
255 : .name = "smb2_query_quota",
256 : .num_calls = 0,
257 : .calls = smb2_query_quota_calls,
258 : .num_public_structs = 1,
259 : .public_structs = smb2_query_quota_public_structs,
260 : .endpoints = &smb2_query_quota_endpoints,
261 : .authservices = &smb2_query_quota_authservices
262 : };
263 :
264 : #endif /* SKIP_NDR_TABLE_smb2_query_quota */
265 0 : _PUBLIC_ enum ndr_err_code ndr_push_nttrans_query_quota_params(struct ndr_push *ndr, int ndr_flags, const struct nttrans_query_quota_params *r)
266 : {
267 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
268 0 : if (ndr_flags & NDR_SCALARS) {
269 0 : NDR_CHECK(ndr_push_align(ndr, 4));
270 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->fid));
271 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->return_single_entry));
272 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->restart_scan));
273 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sid_list_length));
274 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->start_sid_length));
275 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->start_sid_offset));
276 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
277 : }
278 0 : if (ndr_flags & NDR_BUFFERS) {
279 : }
280 0 : return NDR_ERR_SUCCESS;
281 : }
282 :
283 0 : _PUBLIC_ enum ndr_err_code ndr_pull_nttrans_query_quota_params(struct ndr_pull *ndr, int ndr_flags, struct nttrans_query_quota_params *r)
284 : {
285 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
286 0 : if (ndr_flags & NDR_SCALARS) {
287 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
288 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->fid));
289 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->return_single_entry));
290 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->restart_scan));
291 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sid_list_length));
292 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->start_sid_length));
293 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->start_sid_offset));
294 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
295 : }
296 0 : if (ndr_flags & NDR_BUFFERS) {
297 : }
298 0 : return NDR_ERR_SUCCESS;
299 : }
300 :
301 0 : static void ndr_print_flags_nttrans_query_quota_params(struct ndr_print *ndr, const char *name, int unused, const struct nttrans_query_quota_params *r)
302 : {
303 0 : ndr_print_nttrans_query_quota_params(ndr, name, r);
304 0 : }
305 :
306 0 : _PUBLIC_ void ndr_print_nttrans_query_quota_params(struct ndr_print *ndr, const char *name, const struct nttrans_query_quota_params *r)
307 : {
308 0 : ndr_print_struct(ndr, name, "nttrans_query_quota_params");
309 0 : if (r == NULL) { ndr_print_null(ndr); return; }
310 0 : ndr->depth++;
311 0 : ndr_print_uint16(ndr, "fid", r->fid);
312 0 : ndr_print_uint8(ndr, "return_single_entry", r->return_single_entry);
313 0 : ndr_print_uint8(ndr, "restart_scan", r->restart_scan);
314 0 : ndr_print_uint32(ndr, "sid_list_length", r->sid_list_length);
315 0 : ndr_print_uint32(ndr, "start_sid_length", r->start_sid_length);
316 0 : ndr_print_uint32(ndr, "start_sid_offset", r->start_sid_offset);
317 0 : ndr->depth--;
318 : }
319 :
320 : #ifndef SKIP_NDR_TABLE_smb1_nt_transact_query_quota
321 : static const struct ndr_interface_public_struct smb1_nt_transact_query_quota_public_structs[] = {
322 : {
323 : .name = "nttrans_query_quota_params",
324 : .struct_size = sizeof(struct nttrans_query_quota_params ),
325 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_nttrans_query_quota_params,
326 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_nttrans_query_quota_params,
327 : .ndr_print = (ndr_print_function_t) ndr_print_flags_nttrans_query_quota_params,
328 : },
329 : { .name = NULL }
330 : };
331 :
332 : static const struct ndr_interface_call smb1_nt_transact_query_quota_calls[] = {
333 : { .name = NULL }
334 : };
335 :
336 : static const char * const smb1_nt_transact_query_quota_endpoint_strings[] = {
337 : "ncacn_np:[\\pipe\\smb1_nt_transact_query_quota]",
338 : };
339 :
340 : static const struct ndr_interface_string_array smb1_nt_transact_query_quota_endpoints = {
341 : .count = 1,
342 : .names = smb1_nt_transact_query_quota_endpoint_strings
343 : };
344 :
345 : static const char * const smb1_nt_transact_query_quota_authservice_strings[] = {
346 : "host",
347 : };
348 :
349 : static const struct ndr_interface_string_array smb1_nt_transact_query_quota_authservices = {
350 : .count = 1,
351 : .names = smb1_nt_transact_query_quota_authservice_strings
352 : };
353 :
354 :
355 : const struct ndr_interface_table ndr_table_smb1_nt_transact_query_quota = {
356 : .name = "smb1_nt_transact_query_quota",
357 : .num_calls = 0,
358 : .calls = smb1_nt_transact_query_quota_calls,
359 : .num_public_structs = 1,
360 : .public_structs = smb1_nt_transact_query_quota_public_structs,
361 : .endpoints = &smb1_nt_transact_query_quota_endpoints,
362 : .authservices = &smb1_nt_transact_query_quota_authservices
363 : };
364 :
365 : #endif /* SKIP_NDR_TABLE_smb1_nt_transact_query_quota */
|