d284a63375c47ff8c810b220e007a23a80336ff6
[amitay/samba.git] / librpc / gen_ndr / dssetup.h
1 /* header auto-generated by pidl */
2
3 #include <stdint.h>
4
5 #include "librpc/gen_ndr/misc.h"
6 #ifndef _HEADER_dssetup
7 #define _HEADER_dssetup
8
9 enum dssetup_DsRole
10 #ifndef USE_UINT_ENUMS
11  {
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
18 }
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
28 ;
29
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 )
35
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;
43 };
44
45 enum dssetup_DsUpgrade
46 #ifndef USE_UINT_ENUMS
47  {
48         DS_ROLE_NOT_UPGRADING=0,
49         DS_ROLE_UPGRADING=1
50 }
51 #else
52  { __donnot_use_enum_dssetup_DsUpgrade=0x7FFFFFFF}
53 #define DS_ROLE_NOT_UPGRADING ( 0 )
54 #define DS_ROLE_UPGRADING ( 1 )
55 #endif
56 ;
57
58 enum dssetup_DsPrevious
59 #ifndef USE_UINT_ENUMS
60  {
61         DS_ROLE_PREVIOUS_UNKNOWN=0,
62         DS_ROLE_PREVIOUS_PRIMARY=1,
63         DS_ROLE_PREVIOUS_BACKUP=2
64 }
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
71 ;
72
73 struct dssetup_DsRoleUpgradeStatus {
74         enum dssetup_DsUpgrade upgrading;
75         enum dssetup_DsPrevious previous_role;
76 };
77
78 enum dssetup_DsRoleOp
79 #ifndef USE_UINT_ENUMS
80  {
81         DS_ROLE_OP_IDLE=0,
82         DS_ROLE_OP_ACTIVE=1,
83         DS_ROLE_OP_NEEDS_REBOOT=2
84 }
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
91 ;
92
93 struct dssetup_DsRoleOpStatus {
94         enum dssetup_DsRoleOp status;
95 };
96
97 enum dssetup_DsRoleInfoLevel
98 #ifndef USE_UINT_ENUMS
99  {
100         DS_ROLE_BASIC_INFORMATION=1,
101         DS_ROLE_UPGRADE_STATUS=2,
102         DS_ROLE_OP_STATUS=3
103 }
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
110 ;
111
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)] */;
117
118
119 struct dssetup_DsRoleGetPrimaryDomainInformation {
120         struct {
121                 enum dssetup_DsRoleInfoLevel level;
122         } in;
123
124         struct {
125                 union dssetup_DsRoleInfo *info;/* [unique,switch_is(level)] */
126                 WERROR result;
127         } out;
128
129 };
130
131
132 struct dssetup_DsRoleDnsNameToFlatName {
133         struct {
134                 WERROR result;
135         } out;
136
137 };
138
139
140 struct dssetup_DsRoleDcAsDc {
141         struct {
142                 WERROR result;
143         } out;
144
145 };
146
147
148 struct dssetup_DsRoleDcAsReplica {
149         struct {
150                 WERROR result;
151         } out;
152
153 };
154
155
156 struct dssetup_DsRoleDemoteDc {
157         struct {
158                 WERROR result;
159         } out;
160
161 };
162
163
164 struct dssetup_DsRoleGetDcOperationProgress {
165         struct {
166                 WERROR result;
167         } out;
168
169 };
170
171
172 struct dssetup_DsRoleGetDcOperationResults {
173         struct {
174                 WERROR result;
175         } out;
176
177 };
178
179
180 struct dssetup_DsRoleCancel {
181         struct {
182                 WERROR result;
183         } out;
184
185 };
186
187
188 struct dssetup_DsRoleServerSaveStateForUpgrade {
189         struct {
190                 WERROR result;
191         } out;
192
193 };
194
195
196 struct dssetup_DsRoleUpgradeDownlevelServer {
197         struct {
198                 WERROR result;
199         } out;
200
201 };
202
203
204 struct dssetup_DsRoleAbortDownlevelServerUpgrade {
205         struct {
206                 WERROR result;
207         } out;
208
209 };
210
211 #endif /* _HEADER_dssetup */