Rerun pidl.
[amitay/samba.git] / librpc / gen_ndr / dssetup.h
1 /* header auto-generated by pidl */
2
3 #include <stdint.h>
4
5 #include "libcli/util/ntstatus.h"
6
7 #include "librpc/gen_ndr/misc.h"
8 #ifndef _HEADER_dssetup
9 #define _HEADER_dssetup
10
11 enum dssetup_DsRole
12 #ifndef USE_UINT_ENUMS
13  {
14         DS_ROLE_STANDALONE_WORKSTATION=0,
15         DS_ROLE_MEMBER_WORKSTATION=1,
16         DS_ROLE_STANDALONE_SERVER=2,
17         DS_ROLE_MEMBER_SERVER=3,
18         DS_ROLE_BACKUP_DC=4,
19         DS_ROLE_PRIMARY_DC=5
20 }
21 #else
22  { __donnot_use_enum_dssetup_DsRole=0x7FFFFFFF}
23 #define DS_ROLE_STANDALONE_WORKSTATION ( 0 )
24 #define DS_ROLE_MEMBER_WORKSTATION ( 1 )
25 #define DS_ROLE_STANDALONE_SERVER ( 2 )
26 #define DS_ROLE_MEMBER_SERVER ( 3 )
27 #define DS_ROLE_BACKUP_DC ( 4 )
28 #define DS_ROLE_PRIMARY_DC ( 5 )
29 #endif
30 ;
31
32 /* bitmap dssetup_DsRoleFlags */
33 #define DS_ROLE_PRIMARY_DS_RUNNING ( 0x00000001 )
34 #define DS_ROLE_PRIMARY_DS_MIXED_MODE ( 0x00000002 )
35 #define DS_ROLE_UPGRADE_IN_PROGRESS ( 0x00000004 )
36 #define DS_ROLE_PRIMARY_DOMAIN_GUID_PRESENT ( 0x01000000 )
37
38 struct dssetup_DsRolePrimaryDomInfoBasic {
39         enum dssetup_DsRole role;
40         uint32_t flags;
41         const char *domain;/* [unique,charset(UTF16)] */
42         const char *dns_domain;/* [unique,charset(UTF16)] */
43         const char *forest;/* [unique,charset(UTF16)] */
44         struct GUID domain_guid;
45 };
46
47 enum dssetup_DsUpgrade
48 #ifndef USE_UINT_ENUMS
49  {
50         DS_ROLE_NOT_UPGRADING=0,
51         DS_ROLE_UPGRADING=1
52 }
53 #else
54  { __donnot_use_enum_dssetup_DsUpgrade=0x7FFFFFFF}
55 #define DS_ROLE_NOT_UPGRADING ( 0 )
56 #define DS_ROLE_UPGRADING ( 1 )
57 #endif
58 ;
59
60 enum dssetup_DsPrevious
61 #ifndef USE_UINT_ENUMS
62  {
63         DS_ROLE_PREVIOUS_UNKNOWN=0,
64         DS_ROLE_PREVIOUS_PRIMARY=1,
65         DS_ROLE_PREVIOUS_BACKUP=2
66 }
67 #else
68  { __donnot_use_enum_dssetup_DsPrevious=0x7FFFFFFF}
69 #define DS_ROLE_PREVIOUS_UNKNOWN ( 0 )
70 #define DS_ROLE_PREVIOUS_PRIMARY ( 1 )
71 #define DS_ROLE_PREVIOUS_BACKUP ( 2 )
72 #endif
73 ;
74
75 struct dssetup_DsRoleUpgradeStatus {
76         enum dssetup_DsUpgrade upgrading;
77         enum dssetup_DsPrevious previous_role;
78 };
79
80 enum dssetup_DsRoleOp
81 #ifndef USE_UINT_ENUMS
82  {
83         DS_ROLE_OP_IDLE=0,
84         DS_ROLE_OP_ACTIVE=1,
85         DS_ROLE_OP_NEEDS_REBOOT=2
86 }
87 #else
88  { __donnot_use_enum_dssetup_DsRoleOp=0x7FFFFFFF}
89 #define DS_ROLE_OP_IDLE ( 0 )
90 #define DS_ROLE_OP_ACTIVE ( 1 )
91 #define DS_ROLE_OP_NEEDS_REBOOT ( 2 )
92 #endif
93 ;
94
95 struct dssetup_DsRoleOpStatus {
96         enum dssetup_DsRoleOp status;
97 };
98
99 enum dssetup_DsRoleInfoLevel
100 #ifndef USE_UINT_ENUMS
101  {
102         DS_ROLE_BASIC_INFORMATION=1,
103         DS_ROLE_UPGRADE_STATUS=2,
104         DS_ROLE_OP_STATUS=3
105 }
106 #else
107  { __donnot_use_enum_dssetup_DsRoleInfoLevel=0x7FFFFFFF}
108 #define DS_ROLE_BASIC_INFORMATION ( 1 )
109 #define DS_ROLE_UPGRADE_STATUS ( 2 )
110 #define DS_ROLE_OP_STATUS ( 3 )
111 #endif
112 ;
113
114 union dssetup_DsRoleInfo {
115         struct dssetup_DsRolePrimaryDomInfoBasic basic;/* [case(DS_ROLE_BASIC_INFORMATION)] */
116         struct dssetup_DsRoleUpgradeStatus upgrade;/* [case(DS_ROLE_UPGRADE_STATUS)] */
117         struct dssetup_DsRoleOpStatus opstatus;/* [case(DS_ROLE_OP_STATUS)] */
118 }/* [switch_type(dssetup_DsRoleInfoLevel)] */;
119
120
121 struct dssetup_DsRoleGetPrimaryDomainInformation {
122         struct {
123                 enum dssetup_DsRoleInfoLevel level;
124         } in;
125
126         struct {
127                 union dssetup_DsRoleInfo *info;/* [unique,switch_is(level)] */
128                 WERROR result;
129         } out;
130
131 };
132
133
134 struct dssetup_DsRoleDnsNameToFlatName {
135         struct {
136                 WERROR result;
137         } out;
138
139 };
140
141
142 struct dssetup_DsRoleDcAsDc {
143         struct {
144                 WERROR result;
145         } out;
146
147 };
148
149
150 struct dssetup_DsRoleDcAsReplica {
151         struct {
152                 WERROR result;
153         } out;
154
155 };
156
157
158 struct dssetup_DsRoleDemoteDc {
159         struct {
160                 WERROR result;
161         } out;
162
163 };
164
165
166 struct dssetup_DsRoleGetDcOperationProgress {
167         struct {
168                 WERROR result;
169         } out;
170
171 };
172
173
174 struct dssetup_DsRoleGetDcOperationResults {
175         struct {
176                 WERROR result;
177         } out;
178
179 };
180
181
182 struct dssetup_DsRoleCancel {
183         struct {
184                 WERROR result;
185         } out;
186
187 };
188
189
190 struct dssetup_DsRoleServerSaveStateForUpgrade {
191         struct {
192                 WERROR result;
193         } out;
194
195 };
196
197
198 struct dssetup_DsRoleUpgradeDownlevelServer {
199         struct {
200                 WERROR result;
201         } out;
202
203 };
204
205
206 struct dssetup_DsRoleAbortDownlevelServerUpgrade {
207         struct {
208                 WERROR result;
209         } out;
210
211 };
212
213 #endif /* _HEADER_dssetup */