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 17 : _PUBLIC_ enum ndr_err_code ndr_push_file_get_quota_info(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct file_get_quota_info *r)
8 : {
9 17 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
10 17 : if (ndr_flags & NDR_SCALARS) {
11 17 : NDR_CHECK(ndr_push_align(ndr, 4));
12 17 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->next_entry_offset));
13 17 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sid_length));
14 17 : NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS, &r->sid));
15 17 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
16 : }
17 17 : if (ndr_flags & NDR_BUFFERS) {
18 0 : }
19 17 : return NDR_ERR_SUCCESS;
20 : }
21 :
22 12 : _PUBLIC_ enum ndr_err_code ndr_pull_file_get_quota_info(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct file_get_quota_info *r)
23 : {
24 12 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
25 12 : if (ndr_flags & NDR_SCALARS) {
26 12 : NDR_CHECK(ndr_pull_align(ndr, 4));
27 12 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->next_entry_offset));
28 12 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sid_length));
29 12 : NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS, &r->sid));
30 12 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
31 : }
32 12 : if (ndr_flags & NDR_BUFFERS) {
33 0 : }
34 12 : return NDR_ERR_SUCCESS;
35 : }
36 :
37 0 : static void ndr_print_flags_file_get_quota_info(struct ndr_print *ndr, const char *name, ndr_flags_type 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 88 : _PUBLIC_ enum ndr_err_code ndr_push_file_quota_information(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct file_quota_information *r)
54 : {
55 88 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
56 88 : if (ndr_flags & NDR_SCALARS) {
57 88 : NDR_CHECK(ndr_push_align(ndr, 8));
58 88 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->next_entry_offset));
59 88 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sid_length));
60 88 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->change_time));
61 88 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->quota_used));
62 88 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->quota_threshold));
63 88 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->quota_limit));
64 88 : NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS, &r->sid));
65 88 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
66 : }
67 88 : if (ndr_flags & NDR_BUFFERS) {
68 0 : }
69 88 : return NDR_ERR_SUCCESS;
70 : }
71 :
72 88 : _PUBLIC_ enum ndr_err_code ndr_pull_file_quota_information(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct file_quota_information *r)
73 : {
74 88 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
75 88 : if (ndr_flags & NDR_SCALARS) {
76 88 : NDR_CHECK(ndr_pull_align(ndr, 8));
77 88 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->next_entry_offset));
78 88 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sid_length));
79 88 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->change_time));
80 88 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->quota_used));
81 88 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->quota_threshold));
82 88 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->quota_limit));
83 88 : NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS, &r->sid));
84 88 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
85 : }
86 88 : if (ndr_flags & NDR_BUFFERS) {
87 0 : }
88 88 : return NDR_ERR_SUCCESS;
89 : }
90 :
91 0 : static void ndr_print_flags_file_quota_information(struct ndr_print *ndr, const char *name, ndr_flags_type 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 23 : _PUBLIC_ enum ndr_err_code ndr_push_smb2_query_quota_info(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct smb2_query_quota_info *r)
165 : {
166 23 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
167 23 : if (ndr_flags & NDR_SCALARS) {
168 23 : NDR_CHECK(ndr_push_align(ndr, 4));
169 23 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->return_single));
170 23 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->restart_scan));
171 23 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->reserved));
172 23 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sid_list_length));
173 23 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->start_sid_length));
174 23 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->start_sid_offset));
175 23 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
176 : }
177 23 : if (ndr_flags & NDR_BUFFERS) {
178 0 : }
179 23 : return NDR_ERR_SUCCESS;
180 : }
181 :
182 18 : _PUBLIC_ enum ndr_err_code ndr_pull_smb2_query_quota_info(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct smb2_query_quota_info *r)
183 : {
184 18 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
185 18 : if (ndr_flags & NDR_SCALARS) {
186 18 : NDR_CHECK(ndr_pull_align(ndr, 4));
187 18 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->return_single));
188 18 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->restart_scan));
189 18 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->reserved));
190 18 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sid_list_length));
191 18 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->start_sid_length));
192 18 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->start_sid_offset));
193 18 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
194 : }
195 18 : if (ndr_flags & NDR_BUFFERS) {
196 0 : }
197 18 : return NDR_ERR_SUCCESS;
198 : }
199 :
200 0 : static void ndr_print_flags_smb2_query_quota_info(struct ndr_print *ndr, const char *name, ndr_flags_type 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 2 : _PUBLIC_ enum ndr_err_code ndr_push_nttrans_query_quota_params(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct nttrans_query_quota_params *r)
266 : {
267 2 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
268 2 : if (ndr_flags & NDR_SCALARS) {
269 2 : NDR_CHECK(ndr_push_align(ndr, 4));
270 2 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->fid));
271 2 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->return_single_entry));
272 2 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->restart_scan));
273 2 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sid_list_length));
274 2 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->start_sid_length));
275 2 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->start_sid_offset));
276 2 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
277 : }
278 2 : if (ndr_flags & NDR_BUFFERS) {
279 0 : }
280 2 : return NDR_ERR_SUCCESS;
281 : }
282 :
283 2 : _PUBLIC_ enum ndr_err_code ndr_pull_nttrans_query_quota_params(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct nttrans_query_quota_params *r)
284 : {
285 2 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
286 2 : if (ndr_flags & NDR_SCALARS) {
287 2 : NDR_CHECK(ndr_pull_align(ndr, 4));
288 2 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->fid));
289 2 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->return_single_entry));
290 2 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->restart_scan));
291 2 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sid_list_length));
292 2 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->start_sid_length));
293 2 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->start_sid_offset));
294 2 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
295 : }
296 2 : if (ndr_flags & NDR_BUFFERS) {
297 0 : }
298 2 : return NDR_ERR_SUCCESS;
299 : }
300 :
301 0 : static void ndr_print_flags_nttrans_query_quota_params(struct ndr_print *ndr, const char *name, ndr_flags_type 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 */
|