s4 winbind: Fix typos in debug output
[Samba/gbeck.git] / librpc / gen_ndr / dssetup.h
blobd284a63375c47ff8c810b220e007a23a80336ff6
1 /* header auto-generated by pidl */
3 #include <stdint.h>
5 #include "librpc/gen_ndr/misc.h"
6 #ifndef _HEADER_dssetup
7 #define _HEADER_dssetup
9 enum dssetup_DsRole
10 #ifndef USE_UINT_ENUMS
12 DS_ROLE_STANDALONE_WORKSTATION=0,
13 DS_ROLE_MEMBER_WORKSTATION=1,
14 DS_ROLE_STANDALONE_SERVER=2,
15 DS_ROLE_MEMBER_SERVER=3,
16 DS_ROLE_BACKUP_DC=4,
17 DS_ROLE_PRIMARY_DC=5
19 #else
20 { __donnot_use_enum_dssetup_DsRole=0x7FFFFFFF}
21 #define DS_ROLE_STANDALONE_WORKSTATION ( 0 )
22 #define DS_ROLE_MEMBER_WORKSTATION ( 1 )
23 #define DS_ROLE_STANDALONE_SERVER ( 2 )
24 #define DS_ROLE_MEMBER_SERVER ( 3 )
25 #define DS_ROLE_BACKUP_DC ( 4 )
26 #define DS_ROLE_PRIMARY_DC ( 5 )
27 #endif
30 /* bitmap dssetup_DsRoleFlags */
31 #define DS_ROLE_PRIMARY_DS_RUNNING ( 0x00000001 )
32 #define DS_ROLE_PRIMARY_DS_MIXED_MODE ( 0x00000002 )
33 #define DS_ROLE_UPGRADE_IN_PROGRESS ( 0x00000004 )
34 #define DS_ROLE_PRIMARY_DOMAIN_GUID_PRESENT ( 0x01000000 )
36 struct dssetup_DsRolePrimaryDomInfoBasic {
37 enum dssetup_DsRole role;
38 uint32_t flags;
39 const char *domain;/* [unique,charset(UTF16)] */
40 const char *dns_domain;/* [unique,charset(UTF16)] */
41 const char *forest;/* [unique,charset(UTF16)] */
42 struct GUID domain_guid;
45 enum dssetup_DsUpgrade
46 #ifndef USE_UINT_ENUMS
48 DS_ROLE_NOT_UPGRADING=0,
49 DS_ROLE_UPGRADING=1
51 #else
52 { __donnot_use_enum_dssetup_DsUpgrade=0x7FFFFFFF}
53 #define DS_ROLE_NOT_UPGRADING ( 0 )
54 #define DS_ROLE_UPGRADING ( 1 )
55 #endif
58 enum dssetup_DsPrevious
59 #ifndef USE_UINT_ENUMS
61 DS_ROLE_PREVIOUS_UNKNOWN=0,
62 DS_ROLE_PREVIOUS_PRIMARY=1,
63 DS_ROLE_PREVIOUS_BACKUP=2
65 #else
66 { __donnot_use_enum_dssetup_DsPrevious=0x7FFFFFFF}
67 #define DS_ROLE_PREVIOUS_UNKNOWN ( 0 )
68 #define DS_ROLE_PREVIOUS_PRIMARY ( 1 )
69 #define DS_ROLE_PREVIOUS_BACKUP ( 2 )
70 #endif
73 struct dssetup_DsRoleUpgradeStatus {
74 enum dssetup_DsUpgrade upgrading;
75 enum dssetup_DsPrevious previous_role;
78 enum dssetup_DsRoleOp
79 #ifndef USE_UINT_ENUMS
81 DS_ROLE_OP_IDLE=0,
82 DS_ROLE_OP_ACTIVE=1,
83 DS_ROLE_OP_NEEDS_REBOOT=2
85 #else
86 { __donnot_use_enum_dssetup_DsRoleOp=0x7FFFFFFF}
87 #define DS_ROLE_OP_IDLE ( 0 )
88 #define DS_ROLE_OP_ACTIVE ( 1 )
89 #define DS_ROLE_OP_NEEDS_REBOOT ( 2 )
90 #endif
93 struct dssetup_DsRoleOpStatus {
94 enum dssetup_DsRoleOp status;
97 enum dssetup_DsRoleInfoLevel
98 #ifndef USE_UINT_ENUMS
100 DS_ROLE_BASIC_INFORMATION=1,
101 DS_ROLE_UPGRADE_STATUS=2,
102 DS_ROLE_OP_STATUS=3
104 #else
105 { __donnot_use_enum_dssetup_DsRoleInfoLevel=0x7FFFFFFF}
106 #define DS_ROLE_BASIC_INFORMATION ( 1 )
107 #define DS_ROLE_UPGRADE_STATUS ( 2 )
108 #define DS_ROLE_OP_STATUS ( 3 )
109 #endif
112 union dssetup_DsRoleInfo {
113 struct dssetup_DsRolePrimaryDomInfoBasic basic;/* [case(DS_ROLE_BASIC_INFORMATION)] */
114 struct dssetup_DsRoleUpgradeStatus upgrade;/* [case(DS_ROLE_UPGRADE_STATUS)] */
115 struct dssetup_DsRoleOpStatus opstatus;/* [case(DS_ROLE_OP_STATUS)] */
116 }/* [switch_type(dssetup_DsRoleInfoLevel)] */;
119 struct dssetup_DsRoleGetPrimaryDomainInformation {
120 struct {
121 enum dssetup_DsRoleInfoLevel level;
122 } in;
124 struct {
125 union dssetup_DsRoleInfo *info;/* [unique,switch_is(level)] */
126 WERROR result;
127 } out;
132 struct dssetup_DsRoleDnsNameToFlatName {
133 struct {
134 WERROR result;
135 } out;
140 struct dssetup_DsRoleDcAsDc {
141 struct {
142 WERROR result;
143 } out;
148 struct dssetup_DsRoleDcAsReplica {
149 struct {
150 WERROR result;
151 } out;
156 struct dssetup_DsRoleDemoteDc {
157 struct {
158 WERROR result;
159 } out;
164 struct dssetup_DsRoleGetDcOperationProgress {
165 struct {
166 WERROR result;
167 } out;
172 struct dssetup_DsRoleGetDcOperationResults {
173 struct {
174 WERROR result;
175 } out;
180 struct dssetup_DsRoleCancel {
181 struct {
182 WERROR result;
183 } out;
188 struct dssetup_DsRoleServerSaveStateForUpgrade {
189 struct {
190 WERROR result;
191 } out;
196 struct dssetup_DsRoleUpgradeDownlevelServer {
197 struct {
198 WERROR result;
199 } out;
204 struct dssetup_DsRoleAbortDownlevelServerUpgrade {
205 struct {
206 WERROR result;
207 } out;
211 #endif /* _HEADER_dssetup */