source: trunk/server/source3/librpc/gen_ndr/ndr_frsapi.c@ 751

Last change on this file since 751 was 751, checked in by Silvan Scherrer, 13 years ago

Samba Server: updated trunk to 3.6.9

File size: 39.1 KB
Line 
1/* parser auto-generated by pidl */
2
3#include "includes.h"
4#include "librpc/gen_ndr/ndr_frsapi.h"
5
6#include "librpc/gen_ndr/ndr_misc.h"
7static enum ndr_err_code ndr_push_frsapi_InfoEnum(struct ndr_push *ndr, int ndr_flags, enum frsapi_InfoEnum r)
8{
9 NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
10 return NDR_ERR_SUCCESS;
11}
12
13static enum ndr_err_code ndr_pull_frsapi_InfoEnum(struct ndr_pull *ndr, int ndr_flags, enum frsapi_InfoEnum *r)
14{
15 uint32_t v;
16 NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
17 *r = v;
18 return NDR_ERR_SUCCESS;
19}
20
21_PUBLIC_ void ndr_print_frsapi_InfoEnum(struct ndr_print *ndr, const char *name, enum frsapi_InfoEnum r)
22{
23 const char *val = NULL;
24
25 switch (r) {
26 case FRSAPI_INFO_VERSION: val = "FRSAPI_INFO_VERSION"; break;
27 case FRSAPI_INFO_SETS: val = "FRSAPI_INFO_SETS"; break;
28 case FRSAPI_INFO_DS: val = "FRSAPI_INFO_DS"; break;
29 case FRSAPI_INFO_MEMORY: val = "FRSAPI_INFO_MEMORY"; break;
30 case FRSAPI_INFO_IDTABLE: val = "FRSAPI_INFO_IDTABLE"; break;
31 case FRSAPI_INFO_OUTLOG: val = "FRSAPI_INFO_OUTLOG"; break;
32 case FRSAPI_INFO_INLOG: val = "FRSAPI_INFO_INLOG"; break;
33 case FRSAPI_INFO_THREADS: val = "FRSAPI_INFO_THREADS"; break;
34 case FRSAPI_INFO_STAGE: val = "FRSAPI_INFO_STAGE"; break;
35 case FRSAPI_INFO_CONFIGTABLE: val = "FRSAPI_INFO_CONFIGTABLE"; break;
36 }
37 ndr_print_enum(ndr, name, "ENUM", val, r);
38}
39
40static enum ndr_err_code ndr_push_frsapi_Info(struct ndr_push *ndr, int ndr_flags, const struct frsapi_Info *r)
41{
42 if (ndr_flags & NDR_SCALARS) {
43 NDR_CHECK(ndr_push_align(ndr, 4));
44 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->length));
45 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->guid));
46 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->length2));
47 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->unknown1));
48 NDR_CHECK(ndr_push_frsapi_InfoEnum(ndr, NDR_SCALARS, r->level));
49 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->query_counter));
50 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->unknown2));
51 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->offset));
52 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->blob_len));
53 {
54 uint32_t _flags_save_DATA_BLOB = ndr->flags;
55 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
56 {
57 struct ndr_push *_ndr_blob;
58 NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_blob, 0, r->length - r->offset));
59 NDR_CHECK(ndr_push_DATA_BLOB(_ndr_blob, NDR_SCALARS, r->blob));
60 NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_blob, 0, r->length - r->offset));
61 }
62 ndr->flags = _flags_save_DATA_BLOB;
63 }
64 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
65 }
66 if (ndr_flags & NDR_BUFFERS) {
67 }
68 return NDR_ERR_SUCCESS;
69}
70
71static enum ndr_err_code ndr_pull_frsapi_Info(struct ndr_pull *ndr, int ndr_flags, struct frsapi_Info *r)
72{
73 if (ndr_flags & NDR_SCALARS) {
74 NDR_CHECK(ndr_pull_align(ndr, 4));
75 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->length));
76 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->guid));
77 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->length2));
78 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->unknown1));
79 NDR_CHECK(ndr_pull_frsapi_InfoEnum(ndr, NDR_SCALARS, &r->level));
80 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->query_counter));
81 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->unknown2));
82 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->offset));
83 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->blob_len));
84 {
85 uint32_t _flags_save_DATA_BLOB = ndr->flags;
86 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
87 {
88 struct ndr_pull *_ndr_blob;
89 NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_blob, 0, r->length - r->offset));
90 NDR_CHECK(ndr_pull_DATA_BLOB(_ndr_blob, NDR_SCALARS, &r->blob));
91 NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_blob, 0, r->length - r->offset));
92 }
93 ndr->flags = _flags_save_DATA_BLOB;
94 }
95 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
96 }
97 if (ndr_flags & NDR_BUFFERS) {
98 }
99 return NDR_ERR_SUCCESS;
100}
101
102_PUBLIC_ void ndr_print_frsapi_Info(struct ndr_print *ndr, const char *name, const struct frsapi_Info *r)
103{
104 ndr_print_struct(ndr, name, "frsapi_Info");
105 if (r == NULL) { ndr_print_null(ndr); return; }
106 ndr->depth++;
107 ndr_print_uint32(ndr, "length", r->length);
108 ndr_print_GUID(ndr, "guid", &r->guid);
109 ndr_print_uint32(ndr, "length2", r->length2);
110 ndr_print_uint32(ndr, "unknown1", r->unknown1);
111 ndr_print_frsapi_InfoEnum(ndr, "level", r->level);
112 ndr_print_uint32(ndr, "query_counter", r->query_counter);
113 ndr_print_uint32(ndr, "unknown2", r->unknown2);
114 ndr_print_uint32(ndr, "offset", r->offset);
115 ndr_print_uint32(ndr, "blob_len", r->blob_len);
116 ndr_print_DATA_BLOB(ndr, "blob", r->blob);
117 ndr->depth--;
118}
119
120static enum ndr_err_code ndr_push_frsapi_ReplicaSetType(struct ndr_push *ndr, int ndr_flags, enum frsapi_ReplicaSetType r)
121{
122 NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
123 return NDR_ERR_SUCCESS;
124}
125
126static enum ndr_err_code ndr_pull_frsapi_ReplicaSetType(struct ndr_pull *ndr, int ndr_flags, enum frsapi_ReplicaSetType *r)
127{
128 uint32_t v;
129 NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
130 *r = v;
131 return NDR_ERR_SUCCESS;
132}
133
134_PUBLIC_ void ndr_print_frsapi_ReplicaSetType(struct ndr_print *ndr, const char *name, enum frsapi_ReplicaSetType r)
135{
136 const char *val = NULL;
137
138 switch (r) {
139 case FRSAPI_REPLICA_SET_TYPE_0: val = "FRSAPI_REPLICA_SET_TYPE_0"; break;
140 case FRSAPI_REPLICA_SET_TYPE_DOMAIN: val = "FRSAPI_REPLICA_SET_TYPE_DOMAIN"; break;
141 case FRSAPI_REPLICA_SET_TYPE_DFS: val = "FRSAPI_REPLICA_SET_TYPE_DFS"; break;
142 }
143 ndr_print_enum(ndr, name, "ENUM", val, r);
144}
145
146static enum ndr_err_code ndr_push_frsapi_WriterCommandsValues(struct ndr_push *ndr, int ndr_flags, enum frsapi_WriterCommandsValues r)
147{
148 NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
149 return NDR_ERR_SUCCESS;
150}
151
152static enum ndr_err_code ndr_pull_frsapi_WriterCommandsValues(struct ndr_pull *ndr, int ndr_flags, enum frsapi_WriterCommandsValues *r)
153{
154 uint32_t v;
155 NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
156 *r = v;
157 return NDR_ERR_SUCCESS;
158}
159
160_PUBLIC_ void ndr_print_frsapi_WriterCommandsValues(struct ndr_print *ndr, const char *name, enum frsapi_WriterCommandsValues r)
161{
162 const char *val = NULL;
163
164 switch (r) {
165 case FRSAPI_WRITER_COMMAND_FREEZE: val = "FRSAPI_WRITER_COMMAND_FREEZE"; break;
166 case FRSAPI_WRITER_COMMAND_THAW: val = "FRSAPI_WRITER_COMMAND_THAW"; break;
167 }
168 ndr_print_enum(ndr, name, "ENUM", val, r);
169}
170
171static enum ndr_err_code ndr_push_FRSAPI_VERIFY_PROMOTION(struct ndr_push *ndr, int flags, const struct FRSAPI_VERIFY_PROMOTION *r)
172{
173 if (flags & NDR_IN) {
174 }
175 if (flags & NDR_OUT) {
176 }
177 return NDR_ERR_SUCCESS;
178}
179
180static enum ndr_err_code ndr_pull_FRSAPI_VERIFY_PROMOTION(struct ndr_pull *ndr, int flags, struct FRSAPI_VERIFY_PROMOTION *r)
181{
182 if (flags & NDR_IN) {
183 }
184 if (flags & NDR_OUT) {
185 }
186 return NDR_ERR_SUCCESS;
187}
188
189_PUBLIC_ void ndr_print_FRSAPI_VERIFY_PROMOTION(struct ndr_print *ndr, const char *name, int flags, const struct FRSAPI_VERIFY_PROMOTION *r)
190{
191 ndr_print_struct(ndr, name, "FRSAPI_VERIFY_PROMOTION");
192 if (r == NULL) { ndr_print_null(ndr); return; }
193 ndr->depth++;
194 if (flags & NDR_SET_VALUES) {
195 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
196 }
197 if (flags & NDR_IN) {
198 ndr_print_struct(ndr, "in", "FRSAPI_VERIFY_PROMOTION");
199 ndr->depth++;
200 ndr->depth--;
201 }
202 if (flags & NDR_OUT) {
203 ndr_print_struct(ndr, "out", "FRSAPI_VERIFY_PROMOTION");
204 ndr->depth++;
205 ndr->depth--;
206 }
207 ndr->depth--;
208}
209
210static enum ndr_err_code ndr_push_FRSAPI_PROMOTION_STATUS(struct ndr_push *ndr, int flags, const struct FRSAPI_PROMOTION_STATUS *r)
211{
212 if (flags & NDR_IN) {
213 }
214 if (flags & NDR_OUT) {
215 }
216 return NDR_ERR_SUCCESS;
217}
218
219static enum ndr_err_code ndr_pull_FRSAPI_PROMOTION_STATUS(struct ndr_pull *ndr, int flags, struct FRSAPI_PROMOTION_STATUS *r)
220{
221 if (flags & NDR_IN) {
222 }
223 if (flags & NDR_OUT) {
224 }
225 return NDR_ERR_SUCCESS;
226}
227
228_PUBLIC_ void ndr_print_FRSAPI_PROMOTION_STATUS(struct ndr_print *ndr, const char *name, int flags, const struct FRSAPI_PROMOTION_STATUS *r)
229{
230 ndr_print_struct(ndr, name, "FRSAPI_PROMOTION_STATUS");
231 if (r == NULL) { ndr_print_null(ndr); return; }
232 ndr->depth++;
233 if (flags & NDR_SET_VALUES) {
234 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
235 }
236 if (flags & NDR_IN) {
237 ndr_print_struct(ndr, "in", "FRSAPI_PROMOTION_STATUS");
238 ndr->depth++;
239 ndr->depth--;
240 }
241 if (flags & NDR_OUT) {
242 ndr_print_struct(ndr, "out", "FRSAPI_PROMOTION_STATUS");
243 ndr->depth++;
244 ndr->depth--;
245 }
246 ndr->depth--;
247}
248
249static enum ndr_err_code ndr_push_FRSAPI_START_DEMOTION(struct ndr_push *ndr, int flags, const struct FRSAPI_START_DEMOTION *r)
250{
251 if (flags & NDR_IN) {
252 }
253 if (flags & NDR_OUT) {
254 }
255 return NDR_ERR_SUCCESS;
256}
257
258static enum ndr_err_code ndr_pull_FRSAPI_START_DEMOTION(struct ndr_pull *ndr, int flags, struct FRSAPI_START_DEMOTION *r)
259{
260 if (flags & NDR_IN) {
261 }
262 if (flags & NDR_OUT) {
263 }
264 return NDR_ERR_SUCCESS;
265}
266
267_PUBLIC_ void ndr_print_FRSAPI_START_DEMOTION(struct ndr_print *ndr, const char *name, int flags, const struct FRSAPI_START_DEMOTION *r)
268{
269 ndr_print_struct(ndr, name, "FRSAPI_START_DEMOTION");
270 if (r == NULL) { ndr_print_null(ndr); return; }
271 ndr->depth++;
272 if (flags & NDR_SET_VALUES) {
273 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
274 }
275 if (flags & NDR_IN) {
276 ndr_print_struct(ndr, "in", "FRSAPI_START_DEMOTION");
277 ndr->depth++;
278 ndr->depth--;
279 }
280 if (flags & NDR_OUT) {
281 ndr_print_struct(ndr, "out", "FRSAPI_START_DEMOTION");
282 ndr->depth++;
283 ndr->depth--;
284 }
285 ndr->depth--;
286}
287
288static enum ndr_err_code ndr_push_FRSAPI_COMMIT_DEMOTION(struct ndr_push *ndr, int flags, const struct FRSAPI_COMMIT_DEMOTION *r)
289{
290 if (flags & NDR_IN) {
291 }
292 if (flags & NDR_OUT) {
293 }
294 return NDR_ERR_SUCCESS;
295}
296
297static enum ndr_err_code ndr_pull_FRSAPI_COMMIT_DEMOTION(struct ndr_pull *ndr, int flags, struct FRSAPI_COMMIT_DEMOTION *r)
298{
299 if (flags & NDR_IN) {
300 }
301 if (flags & NDR_OUT) {
302 }
303 return NDR_ERR_SUCCESS;
304}
305
306_PUBLIC_ void ndr_print_FRSAPI_COMMIT_DEMOTION(struct ndr_print *ndr, const char *name, int flags, const struct FRSAPI_COMMIT_DEMOTION *r)
307{
308 ndr_print_struct(ndr, name, "FRSAPI_COMMIT_DEMOTION");
309 if (r == NULL) { ndr_print_null(ndr); return; }
310 ndr->depth++;
311 if (flags & NDR_SET_VALUES) {
312 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
313 }
314 if (flags & NDR_IN) {
315 ndr_print_struct(ndr, "in", "FRSAPI_COMMIT_DEMOTION");
316 ndr->depth++;
317 ndr->depth--;
318 }
319 if (flags & NDR_OUT) {
320 ndr_print_struct(ndr, "out", "FRSAPI_COMMIT_DEMOTION");
321 ndr->depth++;
322 ndr->depth--;
323 }
324 ndr->depth--;
325}
326
327static enum ndr_err_code ndr_push_frsapi_SetDsPollingIntervalW(struct ndr_push *ndr, int flags, const struct frsapi_SetDsPollingIntervalW *r)
328{
329 if (flags & NDR_IN) {
330 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.CurrentInterval));
331 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.DsPollingLongInterval));
332 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.DsPollingShortInterval));
333 }
334 if (flags & NDR_OUT) {
335 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
336 }
337 return NDR_ERR_SUCCESS;
338}
339
340static enum ndr_err_code ndr_pull_frsapi_SetDsPollingIntervalW(struct ndr_pull *ndr, int flags, struct frsapi_SetDsPollingIntervalW *r)
341{
342 if (flags & NDR_IN) {
343 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.CurrentInterval));
344 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.DsPollingLongInterval));
345 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.DsPollingShortInterval));
346 }
347 if (flags & NDR_OUT) {
348 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
349 }
350 return NDR_ERR_SUCCESS;
351}
352
353_PUBLIC_ void ndr_print_frsapi_SetDsPollingIntervalW(struct ndr_print *ndr, const char *name, int flags, const struct frsapi_SetDsPollingIntervalW *r)
354{
355 ndr_print_struct(ndr, name, "frsapi_SetDsPollingIntervalW");
356 if (r == NULL) { ndr_print_null(ndr); return; }
357 ndr->depth++;
358 if (flags & NDR_SET_VALUES) {
359 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
360 }
361 if (flags & NDR_IN) {
362 ndr_print_struct(ndr, "in", "frsapi_SetDsPollingIntervalW");
363 ndr->depth++;
364 ndr_print_uint32(ndr, "CurrentInterval", r->in.CurrentInterval);
365 ndr_print_uint32(ndr, "DsPollingLongInterval", r->in.DsPollingLongInterval);
366 ndr_print_uint32(ndr, "DsPollingShortInterval", r->in.DsPollingShortInterval);
367 ndr->depth--;
368 }
369 if (flags & NDR_OUT) {
370 ndr_print_struct(ndr, "out", "frsapi_SetDsPollingIntervalW");
371 ndr->depth++;
372 ndr_print_WERROR(ndr, "result", r->out.result);
373 ndr->depth--;
374 }
375 ndr->depth--;
376}
377
378static enum ndr_err_code ndr_push_frsapi_GetDsPollingIntervalW(struct ndr_push *ndr, int flags, const struct frsapi_GetDsPollingIntervalW *r)
379{
380 if (flags & NDR_IN) {
381 }
382 if (flags & NDR_OUT) {
383 if (r->out.CurrentInterval == NULL) {
384 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
385 }
386 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.CurrentInterval));
387 if (r->out.DsPollingLongInterval == NULL) {
388 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
389 }
390 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.DsPollingLongInterval));
391 if (r->out.DsPollingShortInterval == NULL) {
392 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
393 }
394 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.DsPollingShortInterval));
395 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
396 }
397 return NDR_ERR_SUCCESS;
398}
399
400static enum ndr_err_code ndr_pull_frsapi_GetDsPollingIntervalW(struct ndr_pull *ndr, int flags, struct frsapi_GetDsPollingIntervalW *r)
401{
402 TALLOC_CTX *_mem_save_CurrentInterval_0;
403 TALLOC_CTX *_mem_save_DsPollingLongInterval_0;
404 TALLOC_CTX *_mem_save_DsPollingShortInterval_0;
405 if (flags & NDR_IN) {
406 ZERO_STRUCT(r->out);
407
408 NDR_PULL_ALLOC(ndr, r->out.CurrentInterval);
409 ZERO_STRUCTP(r->out.CurrentInterval);
410 NDR_PULL_ALLOC(ndr, r->out.DsPollingLongInterval);
411 ZERO_STRUCTP(r->out.DsPollingLongInterval);
412 NDR_PULL_ALLOC(ndr, r->out.DsPollingShortInterval);
413 ZERO_STRUCTP(r->out.DsPollingShortInterval);
414 }
415 if (flags & NDR_OUT) {
416 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
417 NDR_PULL_ALLOC(ndr, r->out.CurrentInterval);
418 }
419 _mem_save_CurrentInterval_0 = NDR_PULL_GET_MEM_CTX(ndr);
420 NDR_PULL_SET_MEM_CTX(ndr, r->out.CurrentInterval, LIBNDR_FLAG_REF_ALLOC);
421 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.CurrentInterval));
422 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_CurrentInterval_0, LIBNDR_FLAG_REF_ALLOC);
423 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
424 NDR_PULL_ALLOC(ndr, r->out.DsPollingLongInterval);
425 }
426 _mem_save_DsPollingLongInterval_0 = NDR_PULL_GET_MEM_CTX(ndr);
427 NDR_PULL_SET_MEM_CTX(ndr, r->out.DsPollingLongInterval, LIBNDR_FLAG_REF_ALLOC);
428 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.DsPollingLongInterval));
429 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_DsPollingLongInterval_0, LIBNDR_FLAG_REF_ALLOC);
430 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
431 NDR_PULL_ALLOC(ndr, r->out.DsPollingShortInterval);
432 }
433 _mem_save_DsPollingShortInterval_0 = NDR_PULL_GET_MEM_CTX(ndr);
434 NDR_PULL_SET_MEM_CTX(ndr, r->out.DsPollingShortInterval, LIBNDR_FLAG_REF_ALLOC);
435 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.DsPollingShortInterval));
436 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_DsPollingShortInterval_0, LIBNDR_FLAG_REF_ALLOC);
437 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
438 }
439 return NDR_ERR_SUCCESS;
440}
441
442_PUBLIC_ void ndr_print_frsapi_GetDsPollingIntervalW(struct ndr_print *ndr, const char *name, int flags, const struct frsapi_GetDsPollingIntervalW *r)
443{
444 ndr_print_struct(ndr, name, "frsapi_GetDsPollingIntervalW");
445 if (r == NULL) { ndr_print_null(ndr); return; }
446 ndr->depth++;
447 if (flags & NDR_SET_VALUES) {
448 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
449 }
450 if (flags & NDR_IN) {
451 ndr_print_struct(ndr, "in", "frsapi_GetDsPollingIntervalW");
452 ndr->depth++;
453 ndr->depth--;
454 }
455 if (flags & NDR_OUT) {
456 ndr_print_struct(ndr, "out", "frsapi_GetDsPollingIntervalW");
457 ndr->depth++;
458 ndr_print_ptr(ndr, "CurrentInterval", r->out.CurrentInterval);
459 ndr->depth++;
460 ndr_print_uint32(ndr, "CurrentInterval", *r->out.CurrentInterval);
461 ndr->depth--;
462 ndr_print_ptr(ndr, "DsPollingLongInterval", r->out.DsPollingLongInterval);
463 ndr->depth++;
464 ndr_print_uint32(ndr, "DsPollingLongInterval", *r->out.DsPollingLongInterval);
465 ndr->depth--;
466 ndr_print_ptr(ndr, "DsPollingShortInterval", r->out.DsPollingShortInterval);
467 ndr->depth++;
468 ndr_print_uint32(ndr, "DsPollingShortInterval", *r->out.DsPollingShortInterval);
469 ndr->depth--;
470 ndr_print_WERROR(ndr, "result", r->out.result);
471 ndr->depth--;
472 }
473 ndr->depth--;
474}
475
476static enum ndr_err_code ndr_push_FRSAPI_VERIFY_PROMOTION_W(struct ndr_push *ndr, int flags, const struct FRSAPI_VERIFY_PROMOTION_W *r)
477{
478 if (flags & NDR_IN) {
479 }
480 if (flags & NDR_OUT) {
481 }
482 return NDR_ERR_SUCCESS;
483}
484
485static enum ndr_err_code ndr_pull_FRSAPI_VERIFY_PROMOTION_W(struct ndr_pull *ndr, int flags, struct FRSAPI_VERIFY_PROMOTION_W *r)
486{
487 if (flags & NDR_IN) {
488 }
489 if (flags & NDR_OUT) {
490 }
491 return NDR_ERR_SUCCESS;
492}
493
494_PUBLIC_ void ndr_print_FRSAPI_VERIFY_PROMOTION_W(struct ndr_print *ndr, const char *name, int flags, const struct FRSAPI_VERIFY_PROMOTION_W *r)
495{
496 ndr_print_struct(ndr, name, "FRSAPI_VERIFY_PROMOTION_W");
497 if (r == NULL) { ndr_print_null(ndr); return; }
498 ndr->depth++;
499 if (flags & NDR_SET_VALUES) {
500 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
501 }
502 if (flags & NDR_IN) {
503 ndr_print_struct(ndr, "in", "FRSAPI_VERIFY_PROMOTION_W");
504 ndr->depth++;
505 ndr->depth--;
506 }
507 if (flags & NDR_OUT) {
508 ndr_print_struct(ndr, "out", "FRSAPI_VERIFY_PROMOTION_W");
509 ndr->depth++;
510 ndr->depth--;
511 }
512 ndr->depth--;
513}
514
515static enum ndr_err_code ndr_push_frsapi_InfoW(struct ndr_push *ndr, int flags, const struct frsapi_InfoW *r)
516{
517 if (flags & NDR_IN) {
518 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.length));
519 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.info));
520 if (r->in.info) {
521 NDR_CHECK(ndr_push_frsapi_Info(ndr, NDR_SCALARS, r->in.info));
522 }
523 }
524 if (flags & NDR_OUT) {
525 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.info));
526 if (r->out.info) {
527 NDR_CHECK(ndr_push_frsapi_Info(ndr, NDR_SCALARS, r->out.info));
528 }
529 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
530 }
531 return NDR_ERR_SUCCESS;
532}
533
534static enum ndr_err_code ndr_pull_frsapi_InfoW(struct ndr_pull *ndr, int flags, struct frsapi_InfoW *r)
535{
536 uint32_t _ptr_info;
537 TALLOC_CTX *_mem_save_info_0;
538 if (flags & NDR_IN) {
539 ZERO_STRUCT(r->out);
540
541 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.length));
542 if (r->in.length > 0x10000) {
543 return ndr_pull_error(ndr, NDR_ERR_RANGE, "value out of range");
544 }
545 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info));
546 if (_ptr_info) {
547 NDR_PULL_ALLOC(ndr, r->in.info);
548 } else {
549 r->in.info = NULL;
550 }
551 if (r->in.info) {
552 _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
553 NDR_PULL_SET_MEM_CTX(ndr, r->in.info, 0);
554 NDR_CHECK(ndr_pull_frsapi_Info(ndr, NDR_SCALARS, r->in.info));
555 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, 0);
556 }
557 }
558 if (flags & NDR_OUT) {
559 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info));
560 if (_ptr_info) {
561 NDR_PULL_ALLOC(ndr, r->out.info);
562 } else {
563 r->out.info = NULL;
564 }
565 if (r->out.info) {
566 _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
567 NDR_PULL_SET_MEM_CTX(ndr, r->out.info, 0);
568 NDR_CHECK(ndr_pull_frsapi_Info(ndr, NDR_SCALARS, r->out.info));
569 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, 0);
570 }
571 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
572 }
573 return NDR_ERR_SUCCESS;
574}
575
576_PUBLIC_ void ndr_print_frsapi_InfoW(struct ndr_print *ndr, const char *name, int flags, const struct frsapi_InfoW *r)
577{
578 ndr_print_struct(ndr, name, "frsapi_InfoW");
579 if (r == NULL) { ndr_print_null(ndr); return; }
580 ndr->depth++;
581 if (flags & NDR_SET_VALUES) {
582 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
583 }
584 if (flags & NDR_IN) {
585 ndr_print_struct(ndr, "in", "frsapi_InfoW");
586 ndr->depth++;
587 ndr_print_uint32(ndr, "length", r->in.length);
588 ndr_print_ptr(ndr, "info", r->in.info);
589 ndr->depth++;
590 if (r->in.info) {
591 ndr_print_frsapi_Info(ndr, "info", r->in.info);
592 }
593 ndr->depth--;
594 ndr->depth--;
595 }
596 if (flags & NDR_OUT) {
597 ndr_print_struct(ndr, "out", "frsapi_InfoW");
598 ndr->depth++;
599 ndr_print_ptr(ndr, "info", r->out.info);
600 ndr->depth++;
601 if (r->out.info) {
602 ndr_print_frsapi_Info(ndr, "info", r->out.info);
603 }
604 ndr->depth--;
605 ndr_print_WERROR(ndr, "result", r->out.result);
606 ndr->depth--;
607 }
608 ndr->depth--;
609}
610
611static enum ndr_err_code ndr_push_frsapi_IsPathReplicated(struct ndr_push *ndr, int flags, const struct frsapi_IsPathReplicated *r)
612{
613 if (flags & NDR_IN) {
614 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.path));
615 if (r->in.path) {
616 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.path, CH_UTF16)));
617 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
618 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.path, CH_UTF16)));
619 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.path, ndr_charset_length(r->in.path, CH_UTF16), sizeof(uint16_t), CH_UTF16));
620 }
621 NDR_CHECK(ndr_push_frsapi_ReplicaSetType(ndr, NDR_SCALARS, r->in.replica_set_type));
622 }
623 if (flags & NDR_OUT) {
624 if (r->out.replicated == NULL) {
625 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
626 }
627 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.replicated));
628 if (r->out.primary == NULL) {
629 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
630 }
631 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.primary));
632 if (r->out.root == NULL) {
633 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
634 }
635 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.root));
636 if (r->out.replica_set_guid == NULL) {
637 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
638 }
639 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, r->out.replica_set_guid));
640 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
641 }
642 return NDR_ERR_SUCCESS;
643}
644
645static enum ndr_err_code ndr_pull_frsapi_IsPathReplicated(struct ndr_pull *ndr, int flags, struct frsapi_IsPathReplicated *r)
646{
647 uint32_t _ptr_path;
648 uint32_t size_path_1 = 0;
649 uint32_t length_path_1 = 0;
650 TALLOC_CTX *_mem_save_path_0;
651 TALLOC_CTX *_mem_save_replicated_0;
652 TALLOC_CTX *_mem_save_primary_0;
653 TALLOC_CTX *_mem_save_root_0;
654 TALLOC_CTX *_mem_save_replica_set_guid_0;
655 if (flags & NDR_IN) {
656 ZERO_STRUCT(r->out);
657
658 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_path));
659 if (_ptr_path) {
660 NDR_PULL_ALLOC(ndr, r->in.path);
661 } else {
662 r->in.path = NULL;
663 }
664 if (r->in.path) {
665 _mem_save_path_0 = NDR_PULL_GET_MEM_CTX(ndr);
666 NDR_PULL_SET_MEM_CTX(ndr, r->in.path, 0);
667 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.path));
668 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.path));
669 size_path_1 = ndr_get_array_size(ndr, &r->in.path);
670 length_path_1 = ndr_get_array_length(ndr, &r->in.path);
671 if (length_path_1 > size_path_1) {
672 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_path_1, length_path_1);
673 }
674 NDR_CHECK(ndr_check_string_terminator(ndr, length_path_1, sizeof(uint16_t)));
675 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.path, length_path_1, sizeof(uint16_t), CH_UTF16));
676 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_path_0, 0);
677 }
678 NDR_CHECK(ndr_pull_frsapi_ReplicaSetType(ndr, NDR_SCALARS, &r->in.replica_set_type));
679 NDR_PULL_ALLOC(ndr, r->out.replicated);
680 ZERO_STRUCTP(r->out.replicated);
681 NDR_PULL_ALLOC(ndr, r->out.primary);
682 ZERO_STRUCTP(r->out.primary);
683 NDR_PULL_ALLOC(ndr, r->out.root);
684 ZERO_STRUCTP(r->out.root);
685 NDR_PULL_ALLOC(ndr, r->out.replica_set_guid);
686 ZERO_STRUCTP(r->out.replica_set_guid);
687 }
688 if (flags & NDR_OUT) {
689 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
690 NDR_PULL_ALLOC(ndr, r->out.replicated);
691 }
692 _mem_save_replicated_0 = NDR_PULL_GET_MEM_CTX(ndr);
693 NDR_PULL_SET_MEM_CTX(ndr, r->out.replicated, LIBNDR_FLAG_REF_ALLOC);
694 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.replicated));
695 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_replicated_0, LIBNDR_FLAG_REF_ALLOC);
696 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
697 NDR_PULL_ALLOC(ndr, r->out.primary);
698 }
699 _mem_save_primary_0 = NDR_PULL_GET_MEM_CTX(ndr);
700 NDR_PULL_SET_MEM_CTX(ndr, r->out.primary, LIBNDR_FLAG_REF_ALLOC);
701 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.primary));
702 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_primary_0, LIBNDR_FLAG_REF_ALLOC);
703 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
704 NDR_PULL_ALLOC(ndr, r->out.root);
705 }
706 _mem_save_root_0 = NDR_PULL_GET_MEM_CTX(ndr);
707 NDR_PULL_SET_MEM_CTX(ndr, r->out.root, LIBNDR_FLAG_REF_ALLOC);
708 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.root));
709 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_root_0, LIBNDR_FLAG_REF_ALLOC);
710 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
711 NDR_PULL_ALLOC(ndr, r->out.replica_set_guid);
712 }
713 _mem_save_replica_set_guid_0 = NDR_PULL_GET_MEM_CTX(ndr);
714 NDR_PULL_SET_MEM_CTX(ndr, r->out.replica_set_guid, LIBNDR_FLAG_REF_ALLOC);
715 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, r->out.replica_set_guid));
716 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_replica_set_guid_0, LIBNDR_FLAG_REF_ALLOC);
717 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
718 }
719 return NDR_ERR_SUCCESS;
720}
721
722_PUBLIC_ void ndr_print_frsapi_IsPathReplicated(struct ndr_print *ndr, const char *name, int flags, const struct frsapi_IsPathReplicated *r)
723{
724 ndr_print_struct(ndr, name, "frsapi_IsPathReplicated");
725 if (r == NULL) { ndr_print_null(ndr); return; }
726 ndr->depth++;
727 if (flags & NDR_SET_VALUES) {
728 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
729 }
730 if (flags & NDR_IN) {
731 ndr_print_struct(ndr, "in", "frsapi_IsPathReplicated");
732 ndr->depth++;
733 ndr_print_ptr(ndr, "path", r->in.path);
734 ndr->depth++;
735 if (r->in.path) {
736 ndr_print_string(ndr, "path", r->in.path);
737 }
738 ndr->depth--;
739 ndr_print_frsapi_ReplicaSetType(ndr, "replica_set_type", r->in.replica_set_type);
740 ndr->depth--;
741 }
742 if (flags & NDR_OUT) {
743 ndr_print_struct(ndr, "out", "frsapi_IsPathReplicated");
744 ndr->depth++;
745 ndr_print_ptr(ndr, "replicated", r->out.replicated);
746 ndr->depth++;
747 ndr_print_uint32(ndr, "replicated", *r->out.replicated);
748 ndr->depth--;
749 ndr_print_ptr(ndr, "primary", r->out.primary);
750 ndr->depth++;
751 ndr_print_uint32(ndr, "primary", *r->out.primary);
752 ndr->depth--;
753 ndr_print_ptr(ndr, "root", r->out.root);
754 ndr->depth++;
755 ndr_print_uint32(ndr, "root", *r->out.root);
756 ndr->depth--;
757 ndr_print_ptr(ndr, "replica_set_guid", r->out.replica_set_guid);
758 ndr->depth++;
759 ndr_print_GUID(ndr, "replica_set_guid", r->out.replica_set_guid);
760 ndr->depth--;
761 ndr_print_WERROR(ndr, "result", r->out.result);
762 ndr->depth--;
763 }
764 ndr->depth--;
765}
766
767static enum ndr_err_code ndr_push_frsapi_WriterCommand(struct ndr_push *ndr, int flags, const struct frsapi_WriterCommand *r)
768{
769 if (flags & NDR_IN) {
770 NDR_CHECK(ndr_push_frsapi_WriterCommandsValues(ndr, NDR_SCALARS, r->in.command));
771 }
772 if (flags & NDR_OUT) {
773 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
774 }
775 return NDR_ERR_SUCCESS;
776}
777
778static enum ndr_err_code ndr_pull_frsapi_WriterCommand(struct ndr_pull *ndr, int flags, struct frsapi_WriterCommand *r)
779{
780 if (flags & NDR_IN) {
781 NDR_CHECK(ndr_pull_frsapi_WriterCommandsValues(ndr, NDR_SCALARS, &r->in.command));
782 }
783 if (flags & NDR_OUT) {
784 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
785 }
786 return NDR_ERR_SUCCESS;
787}
788
789_PUBLIC_ void ndr_print_frsapi_WriterCommand(struct ndr_print *ndr, const char *name, int flags, const struct frsapi_WriterCommand *r)
790{
791 ndr_print_struct(ndr, name, "frsapi_WriterCommand");
792 if (r == NULL) { ndr_print_null(ndr); return; }
793 ndr->depth++;
794 if (flags & NDR_SET_VALUES) {
795 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
796 }
797 if (flags & NDR_IN) {
798 ndr_print_struct(ndr, "in", "frsapi_WriterCommand");
799 ndr->depth++;
800 ndr_print_frsapi_WriterCommandsValues(ndr, "command", r->in.command);
801 ndr->depth--;
802 }
803 if (flags & NDR_OUT) {
804 ndr_print_struct(ndr, "out", "frsapi_WriterCommand");
805 ndr->depth++;
806 ndr_print_WERROR(ndr, "result", r->out.result);
807 ndr->depth--;
808 }
809 ndr->depth--;
810}
811
812static enum ndr_err_code ndr_push_frsapi_ForceReplication(struct ndr_push *ndr, int flags, const struct frsapi_ForceReplication *r)
813{
814 if (flags & NDR_IN) {
815 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.replica_set_guid));
816 if (r->in.replica_set_guid) {
817 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, r->in.replica_set_guid));
818 }
819 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.connection_guid));
820 if (r->in.connection_guid) {
821 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, r->in.connection_guid));
822 }
823 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.replica_set_name));
824 if (r->in.replica_set_name) {
825 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.replica_set_name, CH_UTF16)));
826 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
827 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.replica_set_name, CH_UTF16)));
828 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.replica_set_name, ndr_charset_length(r->in.replica_set_name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
829 }
830 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.partner_dns_name));
831 if (r->in.partner_dns_name) {
832 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.partner_dns_name, CH_UTF16)));
833 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
834 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.partner_dns_name, CH_UTF16)));
835 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.partner_dns_name, ndr_charset_length(r->in.partner_dns_name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
836 }
837 }
838 if (flags & NDR_OUT) {
839 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
840 }
841 return NDR_ERR_SUCCESS;
842}
843
844static enum ndr_err_code ndr_pull_frsapi_ForceReplication(struct ndr_pull *ndr, int flags, struct frsapi_ForceReplication *r)
845{
846 uint32_t _ptr_replica_set_guid;
847 uint32_t _ptr_connection_guid;
848 uint32_t _ptr_replica_set_name;
849 uint32_t size_replica_set_name_1 = 0;
850 uint32_t length_replica_set_name_1 = 0;
851 uint32_t _ptr_partner_dns_name;
852 uint32_t size_partner_dns_name_1 = 0;
853 uint32_t length_partner_dns_name_1 = 0;
854 TALLOC_CTX *_mem_save_replica_set_guid_0;
855 TALLOC_CTX *_mem_save_connection_guid_0;
856 TALLOC_CTX *_mem_save_replica_set_name_0;
857 TALLOC_CTX *_mem_save_partner_dns_name_0;
858 if (flags & NDR_IN) {
859 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_replica_set_guid));
860 if (_ptr_replica_set_guid) {
861 NDR_PULL_ALLOC(ndr, r->in.replica_set_guid);
862 } else {
863 r->in.replica_set_guid = NULL;
864 }
865 if (r->in.replica_set_guid) {
866 _mem_save_replica_set_guid_0 = NDR_PULL_GET_MEM_CTX(ndr);
867 NDR_PULL_SET_MEM_CTX(ndr, r->in.replica_set_guid, 0);
868 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, r->in.replica_set_guid));
869 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_replica_set_guid_0, 0);
870 }
871 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_connection_guid));
872 if (_ptr_connection_guid) {
873 NDR_PULL_ALLOC(ndr, r->in.connection_guid);
874 } else {
875 r->in.connection_guid = NULL;
876 }
877 if (r->in.connection_guid) {
878 _mem_save_connection_guid_0 = NDR_PULL_GET_MEM_CTX(ndr);
879 NDR_PULL_SET_MEM_CTX(ndr, r->in.connection_guid, 0);
880 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, r->in.connection_guid));
881 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_connection_guid_0, 0);
882 }
883 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_replica_set_name));
884 if (_ptr_replica_set_name) {
885 NDR_PULL_ALLOC(ndr, r->in.replica_set_name);
886 } else {
887 r->in.replica_set_name = NULL;
888 }
889 if (r->in.replica_set_name) {
890 _mem_save_replica_set_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
891 NDR_PULL_SET_MEM_CTX(ndr, r->in.replica_set_name, 0);
892 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.replica_set_name));
893 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.replica_set_name));
894 size_replica_set_name_1 = ndr_get_array_size(ndr, &r->in.replica_set_name);
895 length_replica_set_name_1 = ndr_get_array_length(ndr, &r->in.replica_set_name);
896 if (length_replica_set_name_1 > size_replica_set_name_1) {
897 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_replica_set_name_1, length_replica_set_name_1);
898 }
899 NDR_CHECK(ndr_check_string_terminator(ndr, length_replica_set_name_1, sizeof(uint16_t)));
900 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.replica_set_name, length_replica_set_name_1, sizeof(uint16_t), CH_UTF16));
901 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_replica_set_name_0, 0);
902 }
903 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_partner_dns_name));
904 if (_ptr_partner_dns_name) {
905 NDR_PULL_ALLOC(ndr, r->in.partner_dns_name);
906 } else {
907 r->in.partner_dns_name = NULL;
908 }
909 if (r->in.partner_dns_name) {
910 _mem_save_partner_dns_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
911 NDR_PULL_SET_MEM_CTX(ndr, r->in.partner_dns_name, 0);
912 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.partner_dns_name));
913 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.partner_dns_name));
914 size_partner_dns_name_1 = ndr_get_array_size(ndr, &r->in.partner_dns_name);
915 length_partner_dns_name_1 = ndr_get_array_length(ndr, &r->in.partner_dns_name);
916 if (length_partner_dns_name_1 > size_partner_dns_name_1) {
917 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_partner_dns_name_1, length_partner_dns_name_1);
918 }
919 NDR_CHECK(ndr_check_string_terminator(ndr, length_partner_dns_name_1, sizeof(uint16_t)));
920 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.partner_dns_name, length_partner_dns_name_1, sizeof(uint16_t), CH_UTF16));
921 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_partner_dns_name_0, 0);
922 }
923 }
924 if (flags & NDR_OUT) {
925 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
926 }
927 return NDR_ERR_SUCCESS;
928}
929
930_PUBLIC_ void ndr_print_frsapi_ForceReplication(struct ndr_print *ndr, const char *name, int flags, const struct frsapi_ForceReplication *r)
931{
932 ndr_print_struct(ndr, name, "frsapi_ForceReplication");
933 if (r == NULL) { ndr_print_null(ndr); return; }
934 ndr->depth++;
935 if (flags & NDR_SET_VALUES) {
936 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
937 }
938 if (flags & NDR_IN) {
939 ndr_print_struct(ndr, "in", "frsapi_ForceReplication");
940 ndr->depth++;
941 ndr_print_ptr(ndr, "replica_set_guid", r->in.replica_set_guid);
942 ndr->depth++;
943 if (r->in.replica_set_guid) {
944 ndr_print_GUID(ndr, "replica_set_guid", r->in.replica_set_guid);
945 }
946 ndr->depth--;
947 ndr_print_ptr(ndr, "connection_guid", r->in.connection_guid);
948 ndr->depth++;
949 if (r->in.connection_guid) {
950 ndr_print_GUID(ndr, "connection_guid", r->in.connection_guid);
951 }
952 ndr->depth--;
953 ndr_print_ptr(ndr, "replica_set_name", r->in.replica_set_name);
954 ndr->depth++;
955 if (r->in.replica_set_name) {
956 ndr_print_string(ndr, "replica_set_name", r->in.replica_set_name);
957 }
958 ndr->depth--;
959 ndr_print_ptr(ndr, "partner_dns_name", r->in.partner_dns_name);
960 ndr->depth++;
961 if (r->in.partner_dns_name) {
962 ndr_print_string(ndr, "partner_dns_name", r->in.partner_dns_name);
963 }
964 ndr->depth--;
965 ndr->depth--;
966 }
967 if (flags & NDR_OUT) {
968 ndr_print_struct(ndr, "out", "frsapi_ForceReplication");
969 ndr->depth++;
970 ndr_print_WERROR(ndr, "result", r->out.result);
971 ndr->depth--;
972 }
973 ndr->depth--;
974}
975
976static const struct ndr_interface_call frsapi_calls[] = {
977 {
978 "FRSAPI_VERIFY_PROMOTION",
979 sizeof(struct FRSAPI_VERIFY_PROMOTION),
980 (ndr_push_flags_fn_t) ndr_push_FRSAPI_VERIFY_PROMOTION,
981 (ndr_pull_flags_fn_t) ndr_pull_FRSAPI_VERIFY_PROMOTION,
982 (ndr_print_function_t) ndr_print_FRSAPI_VERIFY_PROMOTION,
983 { 0, NULL },
984 { 0, NULL },
985 },
986 {
987 "FRSAPI_PROMOTION_STATUS",
988 sizeof(struct FRSAPI_PROMOTION_STATUS),
989 (ndr_push_flags_fn_t) ndr_push_FRSAPI_PROMOTION_STATUS,
990 (ndr_pull_flags_fn_t) ndr_pull_FRSAPI_PROMOTION_STATUS,
991 (ndr_print_function_t) ndr_print_FRSAPI_PROMOTION_STATUS,
992 { 0, NULL },
993 { 0, NULL },
994 },
995 {
996 "FRSAPI_START_DEMOTION",
997 sizeof(struct FRSAPI_START_DEMOTION),
998 (ndr_push_flags_fn_t) ndr_push_FRSAPI_START_DEMOTION,
999 (ndr_pull_flags_fn_t) ndr_pull_FRSAPI_START_DEMOTION,
1000 (ndr_print_function_t) ndr_print_FRSAPI_START_DEMOTION,
1001 { 0, NULL },
1002 { 0, NULL },
1003 },
1004 {
1005 "FRSAPI_COMMIT_DEMOTION",
1006 sizeof(struct FRSAPI_COMMIT_DEMOTION),
1007 (ndr_push_flags_fn_t) ndr_push_FRSAPI_COMMIT_DEMOTION,
1008 (ndr_pull_flags_fn_t) ndr_pull_FRSAPI_COMMIT_DEMOTION,
1009 (ndr_print_function_t) ndr_print_FRSAPI_COMMIT_DEMOTION,
1010 { 0, NULL },
1011 { 0, NULL },
1012 },
1013 {
1014 "frsapi_SetDsPollingIntervalW",
1015 sizeof(struct frsapi_SetDsPollingIntervalW),
1016 (ndr_push_flags_fn_t) ndr_push_frsapi_SetDsPollingIntervalW,
1017 (ndr_pull_flags_fn_t) ndr_pull_frsapi_SetDsPollingIntervalW,
1018 (ndr_print_function_t) ndr_print_frsapi_SetDsPollingIntervalW,
1019 { 0, NULL },
1020 { 0, NULL },
1021 },
1022 {
1023 "frsapi_GetDsPollingIntervalW",
1024 sizeof(struct frsapi_GetDsPollingIntervalW),
1025 (ndr_push_flags_fn_t) ndr_push_frsapi_GetDsPollingIntervalW,
1026 (ndr_pull_flags_fn_t) ndr_pull_frsapi_GetDsPollingIntervalW,
1027 (ndr_print_function_t) ndr_print_frsapi_GetDsPollingIntervalW,
1028 { 0, NULL },
1029 { 0, NULL },
1030 },
1031 {
1032 "FRSAPI_VERIFY_PROMOTION_W",
1033 sizeof(struct FRSAPI_VERIFY_PROMOTION_W),
1034 (ndr_push_flags_fn_t) ndr_push_FRSAPI_VERIFY_PROMOTION_W,
1035 (ndr_pull_flags_fn_t) ndr_pull_FRSAPI_VERIFY_PROMOTION_W,
1036 (ndr_print_function_t) ndr_print_FRSAPI_VERIFY_PROMOTION_W,
1037 { 0, NULL },
1038 { 0, NULL },
1039 },
1040 {
1041 "frsapi_InfoW",
1042 sizeof(struct frsapi_InfoW),
1043 (ndr_push_flags_fn_t) ndr_push_frsapi_InfoW,
1044 (ndr_pull_flags_fn_t) ndr_pull_frsapi_InfoW,
1045 (ndr_print_function_t) ndr_print_frsapi_InfoW,
1046 { 0, NULL },
1047 { 0, NULL },
1048 },
1049 {
1050 "frsapi_IsPathReplicated",
1051 sizeof(struct frsapi_IsPathReplicated),
1052 (ndr_push_flags_fn_t) ndr_push_frsapi_IsPathReplicated,
1053 (ndr_pull_flags_fn_t) ndr_pull_frsapi_IsPathReplicated,
1054 (ndr_print_function_t) ndr_print_frsapi_IsPathReplicated,
1055 { 0, NULL },
1056 { 0, NULL },
1057 },
1058 {
1059 "frsapi_WriterCommand",
1060 sizeof(struct frsapi_WriterCommand),
1061 (ndr_push_flags_fn_t) ndr_push_frsapi_WriterCommand,
1062 (ndr_pull_flags_fn_t) ndr_pull_frsapi_WriterCommand,
1063 (ndr_print_function_t) ndr_print_frsapi_WriterCommand,
1064 { 0, NULL },
1065 { 0, NULL },
1066 },
1067 {
1068 "frsapi_ForceReplication",
1069 sizeof(struct frsapi_ForceReplication),
1070 (ndr_push_flags_fn_t) ndr_push_frsapi_ForceReplication,
1071 (ndr_pull_flags_fn_t) ndr_pull_frsapi_ForceReplication,
1072 (ndr_print_function_t) ndr_print_frsapi_ForceReplication,
1073 { 0, NULL },
1074 { 0, NULL },
1075 },
1076 { NULL, 0, NULL, NULL, NULL }
1077};
1078
1079static const char * const frsapi_endpoint_strings[] = {
1080 "ncacn_ip_tcp:",
1081 "ncalrpc:",
1082};
1083
1084static const struct ndr_interface_string_array frsapi_endpoints = {
1085 .count = 2,
1086 .names = frsapi_endpoint_strings
1087};
1088
1089static const char * const frsapi_authservice_strings[] = {
1090 "host",
1091};
1092
1093static const struct ndr_interface_string_array frsapi_authservices = {
1094 .count = 1,
1095 .names = frsapi_authservice_strings
1096};
1097
1098
1099const struct ndr_interface_table ndr_table_frsapi = {
1100 .name = "frsapi",
1101 .syntax_id = {
1102 {0xd049b186,0x814f,0x11d1,{0x9a,0x3c},{0x00,0xc0,0x4f,0xc9,0xb2,0x32}},
1103 NDR_FRSAPI_VERSION
1104 },
1105 .helpstring = NDR_FRSAPI_HELPSTRING,
1106 .num_calls = 11,
1107 .calls = frsapi_calls,
1108 .endpoints = &frsapi_endpoints,
1109 .authservices = &frsapi_authservices
1110};
1111
Note: See TracBrowser for help on using the repository browser.