1 /* parser auto-generated by pidl */
4 #include "../librpc/gen_ndr/ndr_dssetup.h"
6 #include "librpc/gen_ndr/ndr_misc.h"
7 static enum ndr_err_code
ndr_push_dssetup_DsRole(struct ndr_push
*ndr
, int ndr_flags
, enum dssetup_DsRole r
)
9 NDR_CHECK(ndr_push_enum_uint1632(ndr
, NDR_SCALARS
, r
));
10 return NDR_ERR_SUCCESS
;
13 static enum ndr_err_code
ndr_pull_dssetup_DsRole(struct ndr_pull
*ndr
, int ndr_flags
, enum dssetup_DsRole
*r
)
16 NDR_CHECK(ndr_pull_enum_uint1632(ndr
, NDR_SCALARS
, &v
));
18 return NDR_ERR_SUCCESS
;
21 _PUBLIC_
void ndr_print_dssetup_DsRole(struct ndr_print
*ndr
, const char *name
, enum dssetup_DsRole r
)
23 const char *val
= NULL
;
26 case DS_ROLE_STANDALONE_WORKSTATION
: val
= "DS_ROLE_STANDALONE_WORKSTATION"; break;
27 case DS_ROLE_MEMBER_WORKSTATION
: val
= "DS_ROLE_MEMBER_WORKSTATION"; break;
28 case DS_ROLE_STANDALONE_SERVER
: val
= "DS_ROLE_STANDALONE_SERVER"; break;
29 case DS_ROLE_MEMBER_SERVER
: val
= "DS_ROLE_MEMBER_SERVER"; break;
30 case DS_ROLE_BACKUP_DC
: val
= "DS_ROLE_BACKUP_DC"; break;
31 case DS_ROLE_PRIMARY_DC
: val
= "DS_ROLE_PRIMARY_DC"; break;
33 ndr_print_enum(ndr
, name
, "ENUM", val
, r
);
36 static enum ndr_err_code
ndr_push_dssetup_DsRoleFlags(struct ndr_push
*ndr
, int ndr_flags
, uint32_t r
)
38 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
));
39 return NDR_ERR_SUCCESS
;
42 static enum ndr_err_code
ndr_pull_dssetup_DsRoleFlags(struct ndr_pull
*ndr
, int ndr_flags
, uint32_t *r
)
45 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &v
));
47 return NDR_ERR_SUCCESS
;
50 _PUBLIC_
void ndr_print_dssetup_DsRoleFlags(struct ndr_print
*ndr
, const char *name
, uint32_t r
)
52 ndr_print_uint32(ndr
, name
, r
);
54 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "DS_ROLE_PRIMARY_DS_RUNNING", DS_ROLE_PRIMARY_DS_RUNNING
, r
);
55 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "DS_ROLE_PRIMARY_DS_MIXED_MODE", DS_ROLE_PRIMARY_DS_MIXED_MODE
, r
);
56 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "DS_ROLE_UPGRADE_IN_PROGRESS", DS_ROLE_UPGRADE_IN_PROGRESS
, r
);
57 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "DS_ROLE_PRIMARY_DOMAIN_GUID_PRESENT", DS_ROLE_PRIMARY_DOMAIN_GUID_PRESENT
, r
);
61 static enum ndr_err_code
ndr_push_dssetup_DsRolePrimaryDomInfoBasic(struct ndr_push
*ndr
, int ndr_flags
, const struct dssetup_DsRolePrimaryDomInfoBasic
*r
)
63 if (ndr_flags
& NDR_SCALARS
) {
64 NDR_CHECK(ndr_push_align(ndr
, 5));
65 NDR_CHECK(ndr_push_dssetup_DsRole(ndr
, NDR_SCALARS
, r
->role
));
66 NDR_CHECK(ndr_push_dssetup_DsRoleFlags(ndr
, NDR_SCALARS
, r
->flags
));
67 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->domain
));
68 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->dns_domain
));
69 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->forest
));
70 NDR_CHECK(ndr_push_GUID(ndr
, NDR_SCALARS
, &r
->domain_guid
));
71 NDR_CHECK(ndr_push_trailer_align(ndr
, 5));
73 if (ndr_flags
& NDR_BUFFERS
) {
75 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->domain
, CH_UTF16
)));
76 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
77 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->domain
, CH_UTF16
)));
78 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->domain
, ndr_charset_length(r
->domain
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
81 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->dns_domain
, CH_UTF16
)));
82 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
83 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->dns_domain
, CH_UTF16
)));
84 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->dns_domain
, ndr_charset_length(r
->dns_domain
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
87 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->forest
, CH_UTF16
)));
88 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
89 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->forest
, CH_UTF16
)));
90 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->forest
, ndr_charset_length(r
->forest
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
93 return NDR_ERR_SUCCESS
;
96 static enum ndr_err_code
ndr_pull_dssetup_DsRolePrimaryDomInfoBasic(struct ndr_pull
*ndr
, int ndr_flags
, struct dssetup_DsRolePrimaryDomInfoBasic
*r
)
99 TALLOC_CTX
*_mem_save_domain_0
;
100 uint32_t _ptr_dns_domain
;
101 TALLOC_CTX
*_mem_save_dns_domain_0
;
102 uint32_t _ptr_forest
;
103 TALLOC_CTX
*_mem_save_forest_0
;
104 if (ndr_flags
& NDR_SCALARS
) {
105 NDR_CHECK(ndr_pull_align(ndr
, 5));
106 NDR_CHECK(ndr_pull_dssetup_DsRole(ndr
, NDR_SCALARS
, &r
->role
));
107 NDR_CHECK(ndr_pull_dssetup_DsRoleFlags(ndr
, NDR_SCALARS
, &r
->flags
));
108 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_domain
));
110 NDR_PULL_ALLOC(ndr
, r
->domain
);
114 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_dns_domain
));
115 if (_ptr_dns_domain
) {
116 NDR_PULL_ALLOC(ndr
, r
->dns_domain
);
118 r
->dns_domain
= NULL
;
120 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_forest
));
122 NDR_PULL_ALLOC(ndr
, r
->forest
);
126 NDR_CHECK(ndr_pull_GUID(ndr
, NDR_SCALARS
, &r
->domain_guid
));
127 NDR_CHECK(ndr_pull_trailer_align(ndr
, 5));
129 if (ndr_flags
& NDR_BUFFERS
) {
131 _mem_save_domain_0
= NDR_PULL_GET_MEM_CTX(ndr
);
132 NDR_PULL_SET_MEM_CTX(ndr
, r
->domain
, 0);
133 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->domain
));
134 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->domain
));
135 if (ndr_get_array_length(ndr
, &r
->domain
) > ndr_get_array_size(ndr
, &r
->domain
)) {
136 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->domain
), ndr_get_array_length(ndr
, &r
->domain
));
138 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->domain
), sizeof(uint16_t)));
139 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->domain
, ndr_get_array_length(ndr
, &r
->domain
), sizeof(uint16_t), CH_UTF16
));
140 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_domain_0
, 0);
143 _mem_save_dns_domain_0
= NDR_PULL_GET_MEM_CTX(ndr
);
144 NDR_PULL_SET_MEM_CTX(ndr
, r
->dns_domain
, 0);
145 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->dns_domain
));
146 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->dns_domain
));
147 if (ndr_get_array_length(ndr
, &r
->dns_domain
) > ndr_get_array_size(ndr
, &r
->dns_domain
)) {
148 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->dns_domain
), ndr_get_array_length(ndr
, &r
->dns_domain
));
150 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->dns_domain
), sizeof(uint16_t)));
151 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->dns_domain
, ndr_get_array_length(ndr
, &r
->dns_domain
), sizeof(uint16_t), CH_UTF16
));
152 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_dns_domain_0
, 0);
155 _mem_save_forest_0
= NDR_PULL_GET_MEM_CTX(ndr
);
156 NDR_PULL_SET_MEM_CTX(ndr
, r
->forest
, 0);
157 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->forest
));
158 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->forest
));
159 if (ndr_get_array_length(ndr
, &r
->forest
) > ndr_get_array_size(ndr
, &r
->forest
)) {
160 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->forest
), ndr_get_array_length(ndr
, &r
->forest
));
162 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->forest
), sizeof(uint16_t)));
163 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->forest
, ndr_get_array_length(ndr
, &r
->forest
), sizeof(uint16_t), CH_UTF16
));
164 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_forest_0
, 0);
167 return NDR_ERR_SUCCESS
;
170 _PUBLIC_
void ndr_print_dssetup_DsRolePrimaryDomInfoBasic(struct ndr_print
*ndr
, const char *name
, const struct dssetup_DsRolePrimaryDomInfoBasic
*r
)
172 ndr_print_struct(ndr
, name
, "dssetup_DsRolePrimaryDomInfoBasic");
174 ndr_print_dssetup_DsRole(ndr
, "role", r
->role
);
175 ndr_print_dssetup_DsRoleFlags(ndr
, "flags", r
->flags
);
176 ndr_print_ptr(ndr
, "domain", r
->domain
);
179 ndr_print_string(ndr
, "domain", r
->domain
);
182 ndr_print_ptr(ndr
, "dns_domain", r
->dns_domain
);
185 ndr_print_string(ndr
, "dns_domain", r
->dns_domain
);
188 ndr_print_ptr(ndr
, "forest", r
->forest
);
191 ndr_print_string(ndr
, "forest", r
->forest
);
194 ndr_print_GUID(ndr
, "domain_guid", &r
->domain_guid
);
198 static enum ndr_err_code
ndr_push_dssetup_DsUpgrade(struct ndr_push
*ndr
, int ndr_flags
, enum dssetup_DsUpgrade r
)
200 NDR_CHECK(ndr_push_enum_uint32(ndr
, NDR_SCALARS
, r
));
201 return NDR_ERR_SUCCESS
;
204 static enum ndr_err_code
ndr_pull_dssetup_DsUpgrade(struct ndr_pull
*ndr
, int ndr_flags
, enum dssetup_DsUpgrade
*r
)
207 NDR_CHECK(ndr_pull_enum_uint32(ndr
, NDR_SCALARS
, &v
));
209 return NDR_ERR_SUCCESS
;
212 _PUBLIC_
void ndr_print_dssetup_DsUpgrade(struct ndr_print
*ndr
, const char *name
, enum dssetup_DsUpgrade r
)
214 const char *val
= NULL
;
217 case DS_ROLE_NOT_UPGRADING
: val
= "DS_ROLE_NOT_UPGRADING"; break;
218 case DS_ROLE_UPGRADING
: val
= "DS_ROLE_UPGRADING"; break;
220 ndr_print_enum(ndr
, name
, "ENUM", val
, r
);
223 static enum ndr_err_code
ndr_push_dssetup_DsPrevious(struct ndr_push
*ndr
, int ndr_flags
, enum dssetup_DsPrevious r
)
225 NDR_CHECK(ndr_push_enum_uint1632(ndr
, NDR_SCALARS
, r
));
226 return NDR_ERR_SUCCESS
;
229 static enum ndr_err_code
ndr_pull_dssetup_DsPrevious(struct ndr_pull
*ndr
, int ndr_flags
, enum dssetup_DsPrevious
*r
)
232 NDR_CHECK(ndr_pull_enum_uint1632(ndr
, NDR_SCALARS
, &v
));
234 return NDR_ERR_SUCCESS
;
237 _PUBLIC_
void ndr_print_dssetup_DsPrevious(struct ndr_print
*ndr
, const char *name
, enum dssetup_DsPrevious r
)
239 const char *val
= NULL
;
242 case DS_ROLE_PREVIOUS_UNKNOWN
: val
= "DS_ROLE_PREVIOUS_UNKNOWN"; break;
243 case DS_ROLE_PREVIOUS_PRIMARY
: val
= "DS_ROLE_PREVIOUS_PRIMARY"; break;
244 case DS_ROLE_PREVIOUS_BACKUP
: val
= "DS_ROLE_PREVIOUS_BACKUP"; break;
246 ndr_print_enum(ndr
, name
, "ENUM", val
, r
);
249 static enum ndr_err_code
ndr_push_dssetup_DsRoleUpgradeStatus(struct ndr_push
*ndr
, int ndr_flags
, const struct dssetup_DsRoleUpgradeStatus
*r
)
251 if (ndr_flags
& NDR_SCALARS
) {
252 NDR_CHECK(ndr_push_align(ndr
, 4));
253 NDR_CHECK(ndr_push_dssetup_DsUpgrade(ndr
, NDR_SCALARS
, r
->upgrading
));
254 NDR_CHECK(ndr_push_dssetup_DsPrevious(ndr
, NDR_SCALARS
, r
->previous_role
));
255 NDR_CHECK(ndr_push_trailer_align(ndr
, 4));
257 if (ndr_flags
& NDR_BUFFERS
) {
259 return NDR_ERR_SUCCESS
;
262 static enum ndr_err_code
ndr_pull_dssetup_DsRoleUpgradeStatus(struct ndr_pull
*ndr
, int ndr_flags
, struct dssetup_DsRoleUpgradeStatus
*r
)
264 if (ndr_flags
& NDR_SCALARS
) {
265 NDR_CHECK(ndr_pull_align(ndr
, 4));
266 NDR_CHECK(ndr_pull_dssetup_DsUpgrade(ndr
, NDR_SCALARS
, &r
->upgrading
));
267 NDR_CHECK(ndr_pull_dssetup_DsPrevious(ndr
, NDR_SCALARS
, &r
->previous_role
));
268 NDR_CHECK(ndr_pull_trailer_align(ndr
, 4));
270 if (ndr_flags
& NDR_BUFFERS
) {
272 return NDR_ERR_SUCCESS
;
275 _PUBLIC_
void ndr_print_dssetup_DsRoleUpgradeStatus(struct ndr_print
*ndr
, const char *name
, const struct dssetup_DsRoleUpgradeStatus
*r
)
277 ndr_print_struct(ndr
, name
, "dssetup_DsRoleUpgradeStatus");
279 ndr_print_dssetup_DsUpgrade(ndr
, "upgrading", r
->upgrading
);
280 ndr_print_dssetup_DsPrevious(ndr
, "previous_role", r
->previous_role
);
284 static enum ndr_err_code
ndr_push_dssetup_DsRoleOp(struct ndr_push
*ndr
, int ndr_flags
, enum dssetup_DsRoleOp r
)
286 NDR_CHECK(ndr_push_enum_uint1632(ndr
, NDR_SCALARS
, r
));
287 return NDR_ERR_SUCCESS
;
290 static enum ndr_err_code
ndr_pull_dssetup_DsRoleOp(struct ndr_pull
*ndr
, int ndr_flags
, enum dssetup_DsRoleOp
*r
)
293 NDR_CHECK(ndr_pull_enum_uint1632(ndr
, NDR_SCALARS
, &v
));
295 return NDR_ERR_SUCCESS
;
298 _PUBLIC_
void ndr_print_dssetup_DsRoleOp(struct ndr_print
*ndr
, const char *name
, enum dssetup_DsRoleOp r
)
300 const char *val
= NULL
;
303 case DS_ROLE_OP_IDLE
: val
= "DS_ROLE_OP_IDLE"; break;
304 case DS_ROLE_OP_ACTIVE
: val
= "DS_ROLE_OP_ACTIVE"; break;
305 case DS_ROLE_OP_NEEDS_REBOOT
: val
= "DS_ROLE_OP_NEEDS_REBOOT"; break;
307 ndr_print_enum(ndr
, name
, "ENUM", val
, r
);
310 static enum ndr_err_code
ndr_push_dssetup_DsRoleOpStatus(struct ndr_push
*ndr
, int ndr_flags
, const struct dssetup_DsRoleOpStatus
*r
)
312 if (ndr_flags
& NDR_SCALARS
) {
313 NDR_CHECK(ndr_push_align(ndr
, 3));
314 NDR_CHECK(ndr_push_dssetup_DsRoleOp(ndr
, NDR_SCALARS
, r
->status
));
315 NDR_CHECK(ndr_push_trailer_align(ndr
, 3));
317 if (ndr_flags
& NDR_BUFFERS
) {
319 return NDR_ERR_SUCCESS
;
322 static enum ndr_err_code
ndr_pull_dssetup_DsRoleOpStatus(struct ndr_pull
*ndr
, int ndr_flags
, struct dssetup_DsRoleOpStatus
*r
)
324 if (ndr_flags
& NDR_SCALARS
) {
325 NDR_CHECK(ndr_pull_align(ndr
, 3));
326 NDR_CHECK(ndr_pull_dssetup_DsRoleOp(ndr
, NDR_SCALARS
, &r
->status
));
327 NDR_CHECK(ndr_pull_trailer_align(ndr
, 3));
329 if (ndr_flags
& NDR_BUFFERS
) {
331 return NDR_ERR_SUCCESS
;
334 _PUBLIC_
void ndr_print_dssetup_DsRoleOpStatus(struct ndr_print
*ndr
, const char *name
, const struct dssetup_DsRoleOpStatus
*r
)
336 ndr_print_struct(ndr
, name
, "dssetup_DsRoleOpStatus");
338 ndr_print_dssetup_DsRoleOp(ndr
, "status", r
->status
);
342 static enum ndr_err_code
ndr_push_dssetup_DsRoleInfoLevel(struct ndr_push
*ndr
, int ndr_flags
, enum dssetup_DsRoleInfoLevel r
)
344 NDR_CHECK(ndr_push_enum_uint1632(ndr
, NDR_SCALARS
, r
));
345 return NDR_ERR_SUCCESS
;
348 static enum ndr_err_code
ndr_pull_dssetup_DsRoleInfoLevel(struct ndr_pull
*ndr
, int ndr_flags
, enum dssetup_DsRoleInfoLevel
*r
)
351 NDR_CHECK(ndr_pull_enum_uint1632(ndr
, NDR_SCALARS
, &v
));
353 return NDR_ERR_SUCCESS
;
356 _PUBLIC_
void ndr_print_dssetup_DsRoleInfoLevel(struct ndr_print
*ndr
, const char *name
, enum dssetup_DsRoleInfoLevel r
)
358 const char *val
= NULL
;
361 case DS_ROLE_BASIC_INFORMATION
: val
= "DS_ROLE_BASIC_INFORMATION"; break;
362 case DS_ROLE_UPGRADE_STATUS
: val
= "DS_ROLE_UPGRADE_STATUS"; break;
363 case DS_ROLE_OP_STATUS
: val
= "DS_ROLE_OP_STATUS"; break;
365 ndr_print_enum(ndr
, name
, "ENUM", val
, r
);
368 static enum ndr_err_code
ndr_push_dssetup_DsRoleInfo(struct ndr_push
*ndr
, int ndr_flags
, const union dssetup_DsRoleInfo
*r
)
370 if (ndr_flags
& NDR_SCALARS
) {
371 int level
= ndr_push_get_switch_value(ndr
, r
);
372 NDR_CHECK(ndr_push_dssetup_DsRoleInfoLevel(ndr
, NDR_SCALARS
, level
));
373 NDR_CHECK(ndr_push_union_align(ndr
, 5));
375 case DS_ROLE_BASIC_INFORMATION
: {
376 NDR_CHECK(ndr_push_dssetup_DsRolePrimaryDomInfoBasic(ndr
, NDR_SCALARS
, &r
->basic
));
379 case DS_ROLE_UPGRADE_STATUS
: {
380 NDR_CHECK(ndr_push_dssetup_DsRoleUpgradeStatus(ndr
, NDR_SCALARS
, &r
->upgrade
));
383 case DS_ROLE_OP_STATUS
: {
384 NDR_CHECK(ndr_push_dssetup_DsRoleOpStatus(ndr
, NDR_SCALARS
, &r
->opstatus
));
388 return ndr_push_error(ndr
, NDR_ERR_BAD_SWITCH
, "Bad switch value %u at %s", level
, __location__
);
391 if (ndr_flags
& NDR_BUFFERS
) {
392 int level
= ndr_push_get_switch_value(ndr
, r
);
394 case DS_ROLE_BASIC_INFORMATION
:
395 NDR_CHECK(ndr_push_dssetup_DsRolePrimaryDomInfoBasic(ndr
, NDR_BUFFERS
, &r
->basic
));
398 case DS_ROLE_UPGRADE_STATUS
:
401 case DS_ROLE_OP_STATUS
:
405 return ndr_push_error(ndr
, NDR_ERR_BAD_SWITCH
, "Bad switch value %u at %s", level
, __location__
);
408 return NDR_ERR_SUCCESS
;
411 static enum ndr_err_code
ndr_pull_dssetup_DsRoleInfo(struct ndr_pull
*ndr
, int ndr_flags
, union dssetup_DsRoleInfo
*r
)
415 level
= ndr_pull_get_switch_value(ndr
, r
);
416 if (ndr_flags
& NDR_SCALARS
) {
417 NDR_CHECK(ndr_pull_uint1632(ndr
, NDR_SCALARS
, &_level
));
418 if (_level
!= level
) {
419 return ndr_pull_error(ndr
, NDR_ERR_BAD_SWITCH
, "Bad switch value %u for r at %s", _level
, __location__
);
421 NDR_CHECK(ndr_pull_union_align(ndr
, 5));
423 case DS_ROLE_BASIC_INFORMATION
: {
424 NDR_CHECK(ndr_pull_dssetup_DsRolePrimaryDomInfoBasic(ndr
, NDR_SCALARS
, &r
->basic
));
427 case DS_ROLE_UPGRADE_STATUS
: {
428 NDR_CHECK(ndr_pull_dssetup_DsRoleUpgradeStatus(ndr
, NDR_SCALARS
, &r
->upgrade
));
431 case DS_ROLE_OP_STATUS
: {
432 NDR_CHECK(ndr_pull_dssetup_DsRoleOpStatus(ndr
, NDR_SCALARS
, &r
->opstatus
));
436 return ndr_pull_error(ndr
, NDR_ERR_BAD_SWITCH
, "Bad switch value %u at %s", level
, __location__
);
439 if (ndr_flags
& NDR_BUFFERS
) {
441 case DS_ROLE_BASIC_INFORMATION
:
442 NDR_CHECK(ndr_pull_dssetup_DsRolePrimaryDomInfoBasic(ndr
, NDR_BUFFERS
, &r
->basic
));
445 case DS_ROLE_UPGRADE_STATUS
:
448 case DS_ROLE_OP_STATUS
:
452 return ndr_pull_error(ndr
, NDR_ERR_BAD_SWITCH
, "Bad switch value %u at %s", level
, __location__
);
455 return NDR_ERR_SUCCESS
;
458 _PUBLIC_
void ndr_print_dssetup_DsRoleInfo(struct ndr_print
*ndr
, const char *name
, const union dssetup_DsRoleInfo
*r
)
461 level
= ndr_print_get_switch_value(ndr
, r
);
462 ndr_print_union(ndr
, name
, level
, "dssetup_DsRoleInfo");
464 case DS_ROLE_BASIC_INFORMATION
:
465 ndr_print_dssetup_DsRolePrimaryDomInfoBasic(ndr
, "basic", &r
->basic
);
468 case DS_ROLE_UPGRADE_STATUS
:
469 ndr_print_dssetup_DsRoleUpgradeStatus(ndr
, "upgrade", &r
->upgrade
);
472 case DS_ROLE_OP_STATUS
:
473 ndr_print_dssetup_DsRoleOpStatus(ndr
, "opstatus", &r
->opstatus
);
477 ndr_print_bad_level(ndr
, name
, level
);
481 static enum ndr_err_code
ndr_push_dssetup_DsRoleGetPrimaryDomainInformation(struct ndr_push
*ndr
, int flags
, const struct dssetup_DsRoleGetPrimaryDomainInformation
*r
)
483 if (flags
& NDR_IN
) {
484 NDR_CHECK(ndr_push_dssetup_DsRoleInfoLevel(ndr
, NDR_SCALARS
, r
->in
.level
));
486 if (flags
& NDR_OUT
) {
487 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->out
.info
));
489 NDR_CHECK(ndr_push_set_switch_value(ndr
, r
->out
.info
, r
->in
.level
));
490 NDR_CHECK(ndr_push_dssetup_DsRoleInfo(ndr
, NDR_SCALARS
|NDR_BUFFERS
, r
->out
.info
));
492 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
494 return NDR_ERR_SUCCESS
;
497 static enum ndr_err_code
ndr_pull_dssetup_DsRoleGetPrimaryDomainInformation(struct ndr_pull
*ndr
, int flags
, struct dssetup_DsRoleGetPrimaryDomainInformation
*r
)
500 TALLOC_CTX
*_mem_save_info_0
;
501 if (flags
& NDR_IN
) {
504 NDR_CHECK(ndr_pull_dssetup_DsRoleInfoLevel(ndr
, NDR_SCALARS
, &r
->in
.level
));
506 if (flags
& NDR_OUT
) {
507 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_info
));
509 NDR_PULL_ALLOC(ndr
, r
->out
.info
);
514 _mem_save_info_0
= NDR_PULL_GET_MEM_CTX(ndr
);
515 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.info
, 0);
516 NDR_CHECK(ndr_pull_set_switch_value(ndr
, r
->out
.info
, r
->in
.level
));
517 NDR_CHECK(ndr_pull_dssetup_DsRoleInfo(ndr
, NDR_SCALARS
|NDR_BUFFERS
, r
->out
.info
));
518 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_info_0
, 0);
520 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
522 return NDR_ERR_SUCCESS
;
525 _PUBLIC_
void ndr_print_dssetup_DsRoleGetPrimaryDomainInformation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleGetPrimaryDomainInformation
*r
)
527 ndr_print_struct(ndr
, name
, "dssetup_DsRoleGetPrimaryDomainInformation");
529 if (flags
& NDR_SET_VALUES
) {
530 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
532 if (flags
& NDR_IN
) {
533 ndr_print_struct(ndr
, "in", "dssetup_DsRoleGetPrimaryDomainInformation");
535 ndr_print_dssetup_DsRoleInfoLevel(ndr
, "level", r
->in
.level
);
538 if (flags
& NDR_OUT
) {
539 ndr_print_struct(ndr
, "out", "dssetup_DsRoleGetPrimaryDomainInformation");
541 ndr_print_ptr(ndr
, "info", r
->out
.info
);
544 ndr_print_set_switch_value(ndr
, r
->out
.info
, r
->in
.level
);
545 ndr_print_dssetup_DsRoleInfo(ndr
, "info", r
->out
.info
);
548 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
554 static enum ndr_err_code
ndr_push_dssetup_DsRoleDnsNameToFlatName(struct ndr_push
*ndr
, int flags
, const struct dssetup_DsRoleDnsNameToFlatName
*r
)
556 if (flags
& NDR_IN
) {
558 if (flags
& NDR_OUT
) {
559 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
561 return NDR_ERR_SUCCESS
;
564 static enum ndr_err_code
ndr_pull_dssetup_DsRoleDnsNameToFlatName(struct ndr_pull
*ndr
, int flags
, struct dssetup_DsRoleDnsNameToFlatName
*r
)
566 if (flags
& NDR_IN
) {
568 if (flags
& NDR_OUT
) {
569 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
571 return NDR_ERR_SUCCESS
;
574 _PUBLIC_
void ndr_print_dssetup_DsRoleDnsNameToFlatName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleDnsNameToFlatName
*r
)
576 ndr_print_struct(ndr
, name
, "dssetup_DsRoleDnsNameToFlatName");
578 if (flags
& NDR_SET_VALUES
) {
579 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
581 if (flags
& NDR_IN
) {
582 ndr_print_struct(ndr
, "in", "dssetup_DsRoleDnsNameToFlatName");
586 if (flags
& NDR_OUT
) {
587 ndr_print_struct(ndr
, "out", "dssetup_DsRoleDnsNameToFlatName");
589 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
595 static enum ndr_err_code
ndr_push_dssetup_DsRoleDcAsDc(struct ndr_push
*ndr
, int flags
, const struct dssetup_DsRoleDcAsDc
*r
)
597 if (flags
& NDR_IN
) {
599 if (flags
& NDR_OUT
) {
600 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
602 return NDR_ERR_SUCCESS
;
605 static enum ndr_err_code
ndr_pull_dssetup_DsRoleDcAsDc(struct ndr_pull
*ndr
, int flags
, struct dssetup_DsRoleDcAsDc
*r
)
607 if (flags
& NDR_IN
) {
609 if (flags
& NDR_OUT
) {
610 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
612 return NDR_ERR_SUCCESS
;
615 _PUBLIC_
void ndr_print_dssetup_DsRoleDcAsDc(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleDcAsDc
*r
)
617 ndr_print_struct(ndr
, name
, "dssetup_DsRoleDcAsDc");
619 if (flags
& NDR_SET_VALUES
) {
620 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
622 if (flags
& NDR_IN
) {
623 ndr_print_struct(ndr
, "in", "dssetup_DsRoleDcAsDc");
627 if (flags
& NDR_OUT
) {
628 ndr_print_struct(ndr
, "out", "dssetup_DsRoleDcAsDc");
630 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
636 static enum ndr_err_code
ndr_push_dssetup_DsRoleDcAsReplica(struct ndr_push
*ndr
, int flags
, const struct dssetup_DsRoleDcAsReplica
*r
)
638 if (flags
& NDR_IN
) {
640 if (flags
& NDR_OUT
) {
641 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
643 return NDR_ERR_SUCCESS
;
646 static enum ndr_err_code
ndr_pull_dssetup_DsRoleDcAsReplica(struct ndr_pull
*ndr
, int flags
, struct dssetup_DsRoleDcAsReplica
*r
)
648 if (flags
& NDR_IN
) {
650 if (flags
& NDR_OUT
) {
651 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
653 return NDR_ERR_SUCCESS
;
656 _PUBLIC_
void ndr_print_dssetup_DsRoleDcAsReplica(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleDcAsReplica
*r
)
658 ndr_print_struct(ndr
, name
, "dssetup_DsRoleDcAsReplica");
660 if (flags
& NDR_SET_VALUES
) {
661 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
663 if (flags
& NDR_IN
) {
664 ndr_print_struct(ndr
, "in", "dssetup_DsRoleDcAsReplica");
668 if (flags
& NDR_OUT
) {
669 ndr_print_struct(ndr
, "out", "dssetup_DsRoleDcAsReplica");
671 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
677 static enum ndr_err_code
ndr_push_dssetup_DsRoleDemoteDc(struct ndr_push
*ndr
, int flags
, const struct dssetup_DsRoleDemoteDc
*r
)
679 if (flags
& NDR_IN
) {
681 if (flags
& NDR_OUT
) {
682 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
684 return NDR_ERR_SUCCESS
;
687 static enum ndr_err_code
ndr_pull_dssetup_DsRoleDemoteDc(struct ndr_pull
*ndr
, int flags
, struct dssetup_DsRoleDemoteDc
*r
)
689 if (flags
& NDR_IN
) {
691 if (flags
& NDR_OUT
) {
692 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
694 return NDR_ERR_SUCCESS
;
697 _PUBLIC_
void ndr_print_dssetup_DsRoleDemoteDc(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleDemoteDc
*r
)
699 ndr_print_struct(ndr
, name
, "dssetup_DsRoleDemoteDc");
701 if (flags
& NDR_SET_VALUES
) {
702 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
704 if (flags
& NDR_IN
) {
705 ndr_print_struct(ndr
, "in", "dssetup_DsRoleDemoteDc");
709 if (flags
& NDR_OUT
) {
710 ndr_print_struct(ndr
, "out", "dssetup_DsRoleDemoteDc");
712 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
718 static enum ndr_err_code
ndr_push_dssetup_DsRoleGetDcOperationProgress(struct ndr_push
*ndr
, int flags
, const struct dssetup_DsRoleGetDcOperationProgress
*r
)
720 if (flags
& NDR_IN
) {
722 if (flags
& NDR_OUT
) {
723 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
725 return NDR_ERR_SUCCESS
;
728 static enum ndr_err_code
ndr_pull_dssetup_DsRoleGetDcOperationProgress(struct ndr_pull
*ndr
, int flags
, struct dssetup_DsRoleGetDcOperationProgress
*r
)
730 if (flags
& NDR_IN
) {
732 if (flags
& NDR_OUT
) {
733 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
735 return NDR_ERR_SUCCESS
;
738 _PUBLIC_
void ndr_print_dssetup_DsRoleGetDcOperationProgress(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleGetDcOperationProgress
*r
)
740 ndr_print_struct(ndr
, name
, "dssetup_DsRoleGetDcOperationProgress");
742 if (flags
& NDR_SET_VALUES
) {
743 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
745 if (flags
& NDR_IN
) {
746 ndr_print_struct(ndr
, "in", "dssetup_DsRoleGetDcOperationProgress");
750 if (flags
& NDR_OUT
) {
751 ndr_print_struct(ndr
, "out", "dssetup_DsRoleGetDcOperationProgress");
753 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
759 static enum ndr_err_code
ndr_push_dssetup_DsRoleGetDcOperationResults(struct ndr_push
*ndr
, int flags
, const struct dssetup_DsRoleGetDcOperationResults
*r
)
761 if (flags
& NDR_IN
) {
763 if (flags
& NDR_OUT
) {
764 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
766 return NDR_ERR_SUCCESS
;
769 static enum ndr_err_code
ndr_pull_dssetup_DsRoleGetDcOperationResults(struct ndr_pull
*ndr
, int flags
, struct dssetup_DsRoleGetDcOperationResults
*r
)
771 if (flags
& NDR_IN
) {
773 if (flags
& NDR_OUT
) {
774 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
776 return NDR_ERR_SUCCESS
;
779 _PUBLIC_
void ndr_print_dssetup_DsRoleGetDcOperationResults(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleGetDcOperationResults
*r
)
781 ndr_print_struct(ndr
, name
, "dssetup_DsRoleGetDcOperationResults");
783 if (flags
& NDR_SET_VALUES
) {
784 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
786 if (flags
& NDR_IN
) {
787 ndr_print_struct(ndr
, "in", "dssetup_DsRoleGetDcOperationResults");
791 if (flags
& NDR_OUT
) {
792 ndr_print_struct(ndr
, "out", "dssetup_DsRoleGetDcOperationResults");
794 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
800 static enum ndr_err_code
ndr_push_dssetup_DsRoleCancel(struct ndr_push
*ndr
, int flags
, const struct dssetup_DsRoleCancel
*r
)
802 if (flags
& NDR_IN
) {
804 if (flags
& NDR_OUT
) {
805 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
807 return NDR_ERR_SUCCESS
;
810 static enum ndr_err_code
ndr_pull_dssetup_DsRoleCancel(struct ndr_pull
*ndr
, int flags
, struct dssetup_DsRoleCancel
*r
)
812 if (flags
& NDR_IN
) {
814 if (flags
& NDR_OUT
) {
815 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
817 return NDR_ERR_SUCCESS
;
820 _PUBLIC_
void ndr_print_dssetup_DsRoleCancel(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleCancel
*r
)
822 ndr_print_struct(ndr
, name
, "dssetup_DsRoleCancel");
824 if (flags
& NDR_SET_VALUES
) {
825 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
827 if (flags
& NDR_IN
) {
828 ndr_print_struct(ndr
, "in", "dssetup_DsRoleCancel");
832 if (flags
& NDR_OUT
) {
833 ndr_print_struct(ndr
, "out", "dssetup_DsRoleCancel");
835 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
841 static enum ndr_err_code
ndr_push_dssetup_DsRoleServerSaveStateForUpgrade(struct ndr_push
*ndr
, int flags
, const struct dssetup_DsRoleServerSaveStateForUpgrade
*r
)
843 if (flags
& NDR_IN
) {
845 if (flags
& NDR_OUT
) {
846 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
848 return NDR_ERR_SUCCESS
;
851 static enum ndr_err_code
ndr_pull_dssetup_DsRoleServerSaveStateForUpgrade(struct ndr_pull
*ndr
, int flags
, struct dssetup_DsRoleServerSaveStateForUpgrade
*r
)
853 if (flags
& NDR_IN
) {
855 if (flags
& NDR_OUT
) {
856 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
858 return NDR_ERR_SUCCESS
;
861 _PUBLIC_
void ndr_print_dssetup_DsRoleServerSaveStateForUpgrade(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleServerSaveStateForUpgrade
*r
)
863 ndr_print_struct(ndr
, name
, "dssetup_DsRoleServerSaveStateForUpgrade");
865 if (flags
& NDR_SET_VALUES
) {
866 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
868 if (flags
& NDR_IN
) {
869 ndr_print_struct(ndr
, "in", "dssetup_DsRoleServerSaveStateForUpgrade");
873 if (flags
& NDR_OUT
) {
874 ndr_print_struct(ndr
, "out", "dssetup_DsRoleServerSaveStateForUpgrade");
876 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
882 static enum ndr_err_code
ndr_push_dssetup_DsRoleUpgradeDownlevelServer(struct ndr_push
*ndr
, int flags
, const struct dssetup_DsRoleUpgradeDownlevelServer
*r
)
884 if (flags
& NDR_IN
) {
886 if (flags
& NDR_OUT
) {
887 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
889 return NDR_ERR_SUCCESS
;
892 static enum ndr_err_code
ndr_pull_dssetup_DsRoleUpgradeDownlevelServer(struct ndr_pull
*ndr
, int flags
, struct dssetup_DsRoleUpgradeDownlevelServer
*r
)
894 if (flags
& NDR_IN
) {
896 if (flags
& NDR_OUT
) {
897 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
899 return NDR_ERR_SUCCESS
;
902 _PUBLIC_
void ndr_print_dssetup_DsRoleUpgradeDownlevelServer(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleUpgradeDownlevelServer
*r
)
904 ndr_print_struct(ndr
, name
, "dssetup_DsRoleUpgradeDownlevelServer");
906 if (flags
& NDR_SET_VALUES
) {
907 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
909 if (flags
& NDR_IN
) {
910 ndr_print_struct(ndr
, "in", "dssetup_DsRoleUpgradeDownlevelServer");
914 if (flags
& NDR_OUT
) {
915 ndr_print_struct(ndr
, "out", "dssetup_DsRoleUpgradeDownlevelServer");
917 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
923 static enum ndr_err_code
ndr_push_dssetup_DsRoleAbortDownlevelServerUpgrade(struct ndr_push
*ndr
, int flags
, const struct dssetup_DsRoleAbortDownlevelServerUpgrade
*r
)
925 if (flags
& NDR_IN
) {
927 if (flags
& NDR_OUT
) {
928 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
930 return NDR_ERR_SUCCESS
;
933 static enum ndr_err_code
ndr_pull_dssetup_DsRoleAbortDownlevelServerUpgrade(struct ndr_pull
*ndr
, int flags
, struct dssetup_DsRoleAbortDownlevelServerUpgrade
*r
)
935 if (flags
& NDR_IN
) {
937 if (flags
& NDR_OUT
) {
938 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
940 return NDR_ERR_SUCCESS
;
943 _PUBLIC_
void ndr_print_dssetup_DsRoleAbortDownlevelServerUpgrade(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleAbortDownlevelServerUpgrade
*r
)
945 ndr_print_struct(ndr
, name
, "dssetup_DsRoleAbortDownlevelServerUpgrade");
947 if (flags
& NDR_SET_VALUES
) {
948 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
950 if (flags
& NDR_IN
) {
951 ndr_print_struct(ndr
, "in", "dssetup_DsRoleAbortDownlevelServerUpgrade");
955 if (flags
& NDR_OUT
) {
956 ndr_print_struct(ndr
, "out", "dssetup_DsRoleAbortDownlevelServerUpgrade");
958 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
964 static const struct ndr_interface_call dssetup_calls
[] = {
966 "dssetup_DsRoleGetPrimaryDomainInformation",
967 sizeof(struct dssetup_DsRoleGetPrimaryDomainInformation
),
968 (ndr_push_flags_fn_t
) ndr_push_dssetup_DsRoleGetPrimaryDomainInformation
,
969 (ndr_pull_flags_fn_t
) ndr_pull_dssetup_DsRoleGetPrimaryDomainInformation
,
970 (ndr_print_function_t
) ndr_print_dssetup_DsRoleGetPrimaryDomainInformation
,
974 "dssetup_DsRoleDnsNameToFlatName",
975 sizeof(struct dssetup_DsRoleDnsNameToFlatName
),
976 (ndr_push_flags_fn_t
) ndr_push_dssetup_DsRoleDnsNameToFlatName
,
977 (ndr_pull_flags_fn_t
) ndr_pull_dssetup_DsRoleDnsNameToFlatName
,
978 (ndr_print_function_t
) ndr_print_dssetup_DsRoleDnsNameToFlatName
,
982 "dssetup_DsRoleDcAsDc",
983 sizeof(struct dssetup_DsRoleDcAsDc
),
984 (ndr_push_flags_fn_t
) ndr_push_dssetup_DsRoleDcAsDc
,
985 (ndr_pull_flags_fn_t
) ndr_pull_dssetup_DsRoleDcAsDc
,
986 (ndr_print_function_t
) ndr_print_dssetup_DsRoleDcAsDc
,
990 "dssetup_DsRoleDcAsReplica",
991 sizeof(struct dssetup_DsRoleDcAsReplica
),
992 (ndr_push_flags_fn_t
) ndr_push_dssetup_DsRoleDcAsReplica
,
993 (ndr_pull_flags_fn_t
) ndr_pull_dssetup_DsRoleDcAsReplica
,
994 (ndr_print_function_t
) ndr_print_dssetup_DsRoleDcAsReplica
,
998 "dssetup_DsRoleDemoteDc",
999 sizeof(struct dssetup_DsRoleDemoteDc
),
1000 (ndr_push_flags_fn_t
) ndr_push_dssetup_DsRoleDemoteDc
,
1001 (ndr_pull_flags_fn_t
) ndr_pull_dssetup_DsRoleDemoteDc
,
1002 (ndr_print_function_t
) ndr_print_dssetup_DsRoleDemoteDc
,
1006 "dssetup_DsRoleGetDcOperationProgress",
1007 sizeof(struct dssetup_DsRoleGetDcOperationProgress
),
1008 (ndr_push_flags_fn_t
) ndr_push_dssetup_DsRoleGetDcOperationProgress
,
1009 (ndr_pull_flags_fn_t
) ndr_pull_dssetup_DsRoleGetDcOperationProgress
,
1010 (ndr_print_function_t
) ndr_print_dssetup_DsRoleGetDcOperationProgress
,
1014 "dssetup_DsRoleGetDcOperationResults",
1015 sizeof(struct dssetup_DsRoleGetDcOperationResults
),
1016 (ndr_push_flags_fn_t
) ndr_push_dssetup_DsRoleGetDcOperationResults
,
1017 (ndr_pull_flags_fn_t
) ndr_pull_dssetup_DsRoleGetDcOperationResults
,
1018 (ndr_print_function_t
) ndr_print_dssetup_DsRoleGetDcOperationResults
,
1022 "dssetup_DsRoleCancel",
1023 sizeof(struct dssetup_DsRoleCancel
),
1024 (ndr_push_flags_fn_t
) ndr_push_dssetup_DsRoleCancel
,
1025 (ndr_pull_flags_fn_t
) ndr_pull_dssetup_DsRoleCancel
,
1026 (ndr_print_function_t
) ndr_print_dssetup_DsRoleCancel
,
1030 "dssetup_DsRoleServerSaveStateForUpgrade",
1031 sizeof(struct dssetup_DsRoleServerSaveStateForUpgrade
),
1032 (ndr_push_flags_fn_t
) ndr_push_dssetup_DsRoleServerSaveStateForUpgrade
,
1033 (ndr_pull_flags_fn_t
) ndr_pull_dssetup_DsRoleServerSaveStateForUpgrade
,
1034 (ndr_print_function_t
) ndr_print_dssetup_DsRoleServerSaveStateForUpgrade
,
1038 "dssetup_DsRoleUpgradeDownlevelServer",
1039 sizeof(struct dssetup_DsRoleUpgradeDownlevelServer
),
1040 (ndr_push_flags_fn_t
) ndr_push_dssetup_DsRoleUpgradeDownlevelServer
,
1041 (ndr_pull_flags_fn_t
) ndr_pull_dssetup_DsRoleUpgradeDownlevelServer
,
1042 (ndr_print_function_t
) ndr_print_dssetup_DsRoleUpgradeDownlevelServer
,
1046 "dssetup_DsRoleAbortDownlevelServerUpgrade",
1047 sizeof(struct dssetup_DsRoleAbortDownlevelServerUpgrade
),
1048 (ndr_push_flags_fn_t
) ndr_push_dssetup_DsRoleAbortDownlevelServerUpgrade
,
1049 (ndr_pull_flags_fn_t
) ndr_pull_dssetup_DsRoleAbortDownlevelServerUpgrade
,
1050 (ndr_print_function_t
) ndr_print_dssetup_DsRoleAbortDownlevelServerUpgrade
,
1053 { NULL
, 0, NULL
, NULL
, NULL
, false }
1056 static const char * const dssetup_endpoint_strings
[] = {
1057 "ncacn_np:[\\pipe\\lsarpc]",
1058 "ncacn_np:[\\pipe\\lsass]",
1063 static const struct ndr_interface_string_array dssetup_endpoints
= {
1065 .names
= dssetup_endpoint_strings
1068 static const char * const dssetup_authservice_strings
[] = {
1072 static const struct ndr_interface_string_array dssetup_authservices
= {
1074 .names
= dssetup_authservice_strings
1078 const struct ndr_interface_table ndr_table_dssetup
= {
1081 {0x3919286a,0xb10c,0x11d0,{0x9b,0xa8},{0x00,0xc0,0x4f,0xd9,0x2e,0xf5}},
1084 .helpstring
= NDR_DSSETUP_HELPSTRING
,
1086 .calls
= dssetup_calls
,
1087 .endpoints
= &dssetup_endpoints
,
1088 .authservices
= &dssetup_authservices