s4-smbtorture: fix test_GetJob.
[Samba/gebeck_regimport.git] / librpc / gen_ndr / dfs.h
blob07548c3742cb8771fe123e13a92da7bfb5e9c865
1 /* header auto-generated by pidl */
3 #include <stdint.h>
5 #include "librpc/gen_ndr/misc.h"
6 #ifndef _HEADER_netdfs
7 #define _HEADER_netdfs
9 #define DFS_STORAGE_STATES ( 0xf )
10 enum dfs_ManagerVersion
11 #ifndef USE_UINT_ENUMS
13 DFS_MANAGER_VERSION_NT4=1,
14 DFS_MANAGER_VERSION_W2K=2,
15 DFS_MANAGER_VERSION_W2K3=4,
16 DFS_MANAGER_VERSION_W2K8=6
18 #else
19 { __donnot_use_enum_dfs_ManagerVersion=0x7FFFFFFF}
20 #define DFS_MANAGER_VERSION_NT4 ( 1 )
21 #define DFS_MANAGER_VERSION_W2K ( 2 )
22 #define DFS_MANAGER_VERSION_W2K3 ( 4 )
23 #define DFS_MANAGER_VERSION_W2K8 ( 6 )
24 #endif
27 struct dfs_Info0 {
28 char _empty_;
31 struct dfs_Info1 {
32 const char *path;/* [unique,charset(UTF16)] */
35 /* bitmap dfs_VolumeState */
36 #define DFS_VOLUME_STATE_OK ( 0x1 )
37 #define DFS_VOLUME_STATE_INCONSISTENT ( 0x2 )
38 #define DFS_VOLUME_STATE_OFFLINE ( 0x3 )
39 #define DFS_VOLUME_STATE_ONLINE ( 0x4 )
40 #define DFS_VOLUME_STATE_STANDALONE ( DFS_VOLUME_FLAVOR_STANDALONE )
41 #define DFS_VOLUME_STATE_AD_BLOB ( DFS_VOLUME_FLAVOR_AD_BLOB )
43 struct dfs_Info2 {
44 const char *path;/* [unique,charset(UTF16)] */
45 const char *comment;/* [unique,charset(UTF16)] */
46 uint32_t state;
47 uint32_t num_stores;
50 /* bitmap dfs_StorageState */
51 #define DFS_STORAGE_STATE_OFFLINE ( 1 )
52 #define DFS_STORAGE_STATE_ONLINE ( 2 )
53 #define DFS_STORAGE_STATE_ACTIVE ( 4 )
55 struct dfs_StorageInfo {
56 uint32_t state;
57 const char *server;/* [unique,charset(UTF16)] */
58 const char *share;/* [unique,charset(UTF16)] */
61 struct dfs_Info3 {
62 const char *path;/* [unique,charset(UTF16)] */
63 const char *comment;/* [unique,charset(UTF16)] */
64 uint32_t state;
65 uint32_t num_stores;
66 struct dfs_StorageInfo *stores;/* [unique,size_is(num_stores)] */
69 struct dfs_Info4 {
70 const char *path;/* [unique,charset(UTF16)] */
71 const char *comment;/* [unique,charset(UTF16)] */
72 uint32_t state;
73 uint32_t timeout;
74 struct GUID guid;
75 uint32_t num_stores;
76 struct dfs_StorageInfo *stores;/* [unique,size_is(num_stores)] */
79 /* bitmap dfs_PropertyFlags */
80 #define DFS_PROPERTY_FLAG_INSITE_REFERRALS ( 0x01 )
81 #define DFS_PROPERTY_FLAG_ROOT_SCALABILITY ( 0x02 )
82 #define DFS_PROPERTY_FLAG_SITE_COSTING ( 0x04 )
83 #define DFS_PROPERTY_FLAG_TARGET_FAILBACK ( 0x08 )
84 #define DFS_PROPERTY_FLAG_CLUSTER_ENABLED ( 0x10 )
86 struct dfs_Info5 {
87 const char *path;/* [unique,charset(UTF16)] */
88 const char *comment;/* [unique,charset(UTF16)] */
89 uint32_t state;
90 uint32_t timeout;
91 struct GUID guid;
92 uint32_t flags;
93 uint32_t pktsize;
94 uint32_t num_stores;
97 enum dfs_Target_PriorityClass
98 #ifndef USE_UINT_ENUMS
100 DFS_INVALID_PRIORITY_CLASS=-1,
101 DFS_SITE_COST_NORMAL_PRIORITY_CLASS=0,
102 DFS_GLOBAL_HIGH_PRIORITY_CLASS=1,
103 DFS_SITE_COST_HIGH_PRIORITY_CLASS=2,
104 DFS_SITE_COST_LOW_PRIORITY_CLASS=3,
105 DFS_GLOBAL_LOW_PRIORITY_CLASS=4
107 #else
108 { __donnot_use_enum_dfs_Target_PriorityClass=0x7FFFFFFF}
109 #define DFS_INVALID_PRIORITY_CLASS ( -1 )
110 #define DFS_SITE_COST_NORMAL_PRIORITY_CLASS ( 0 )
111 #define DFS_GLOBAL_HIGH_PRIORITY_CLASS ( 1 )
112 #define DFS_SITE_COST_HIGH_PRIORITY_CLASS ( 2 )
113 #define DFS_SITE_COST_LOW_PRIORITY_CLASS ( 3 )
114 #define DFS_GLOBAL_LOW_PRIORITY_CLASS ( 4 )
115 #endif
118 struct dfs_Target_Priority {
119 enum dfs_Target_PriorityClass target_priority_class;
120 uint16_t target_priority_rank;
121 uint16_t reserved;
124 struct dfs_StorageInfo2 {
125 struct dfs_StorageInfo info;
126 struct dfs_Target_Priority target_priority;
129 struct dfs_Info6 {
130 const char *entry_path;/* [unique,charset(UTF16)] */
131 const char *comment;/* [unique,charset(UTF16)] */
132 uint32_t state;
133 uint32_t timeout;
134 struct GUID guid;
135 uint32_t flags;
136 uint32_t pktsize;
137 uint16_t num_stores;
138 struct dfs_StorageInfo2 *stores;/* [unique,size_is(num_stores)] */
141 struct dfs_Info7 {
142 struct GUID generation_guid;
145 struct dfs_Info100 {
146 const char *comment;/* [unique,charset(UTF16)] */
149 struct dfs_Info101 {
150 uint32_t state;
153 struct dfs_Info102 {
154 uint32_t timeout;
157 struct dfs_Info103 {
158 uint32_t flags;
161 struct dfs_Info104 {
162 struct dfs_Target_Priority priority;
165 struct dfs_Info105 {
166 const char *comment;/* [unique,charset(UTF16)] */
167 uint32_t state;
168 uint32_t timeout;
169 uint32_t property_flag_mask;
170 uint32_t property_flags;
173 struct dfs_Info106 {
174 uint32_t state;
175 struct dfs_Target_Priority priority;
178 struct dfs_Info200 {
179 const char *dom_root;/* [unique,charset(UTF16)] */
182 enum dfs_VolumeFlavor
183 #ifndef USE_UINT_ENUMS
185 DFS_VOLUME_FLAVOR_STANDALONE=0x100,
186 DFS_VOLUME_FLAVOR_AD_BLOB=0x200
188 #else
189 { __donnot_use_enum_dfs_VolumeFlavor=0x7FFFFFFF}
190 #define DFS_VOLUME_FLAVOR_STANDALONE ( 0x100 )
191 #define DFS_VOLUME_FLAVOR_AD_BLOB ( 0x200 )
192 #endif
195 struct dfs_Info300 {
196 enum dfs_VolumeFlavor flavor;
197 const char *dom_root;/* [unique,charset(UTF16)] */
200 union dfs_Info {
201 struct dfs_Info0 *info0;/* [unique,case(0)] */
202 struct dfs_Info1 *info1;/* [unique,case] */
203 struct dfs_Info2 *info2;/* [unique,case(2)] */
204 struct dfs_Info3 *info3;/* [unique,case(3)] */
205 struct dfs_Info4 *info4;/* [unique,case(4)] */
206 struct dfs_Info5 *info5;/* [unique,case(5)] */
207 struct dfs_Info6 *info6;/* [unique,case(6)] */
208 struct dfs_Info7 *info7;/* [unique,case(7)] */
209 struct dfs_Info100 *info100;/* [unique,case(100)] */
210 struct dfs_Info101 *info101;/* [unique,case(101)] */
211 struct dfs_Info102 *info102;/* [unique,case(102)] */
212 struct dfs_Info103 *info103;/* [unique,case(103)] */
213 struct dfs_Info104 *info104;/* [unique,case(104)] */
214 struct dfs_Info105 *info105;/* [unique,case(105)] */
215 struct dfs_Info106 *info106;/* [unique,case(106)] */
218 struct dfs_EnumArray1 {
219 uint32_t count;
220 struct dfs_Info1 *s;/* [unique,size_is(count)] */
223 struct dfs_EnumArray2 {
224 uint32_t count;
225 struct dfs_Info2 *s;/* [unique,size_is(count)] */
228 struct dfs_EnumArray3 {
229 uint32_t count;
230 struct dfs_Info3 *s;/* [unique,size_is(count)] */
233 struct dfs_EnumArray4 {
234 uint32_t count;
235 struct dfs_Info4 *s;/* [unique,size_is(count)] */
238 struct dfs_EnumArray5 {
239 uint32_t count;
240 struct dfs_Info5 *s;/* [unique,size_is(count)] */
243 struct dfs_EnumArray6 {
244 uint32_t count;
245 struct dfs_Info6 *s;/* [unique,size_is(count)] */
248 struct dfs_EnumArray200 {
249 uint32_t count;
250 struct dfs_Info200 *s;/* [unique,size_is(count)] */
253 struct dfs_EnumArray300 {
254 uint32_t count;
255 struct dfs_Info300 *s;/* [unique,size_is(count)] */
258 union dfs_EnumInfo {
259 struct dfs_EnumArray1 *info1;/* [unique,case] */
260 struct dfs_EnumArray2 *info2;/* [unique,case(2)] */
261 struct dfs_EnumArray3 *info3;/* [unique,case(3)] */
262 struct dfs_EnumArray4 *info4;/* [unique,case(4)] */
263 struct dfs_EnumArray5 *info5;/* [unique,case(5)] */
264 struct dfs_EnumArray6 *info6;/* [unique,case(6)] */
265 struct dfs_EnumArray200 *info200;/* [unique,case(200)] */
266 struct dfs_EnumArray300 *info300;/* [unique,case(300)] */
269 struct dfs_EnumStruct {
270 uint32_t level;
271 union dfs_EnumInfo e;/* [switch_is(level)] */
274 struct dfs_UnknownStruct {
275 uint32_t unknown1;
276 const char *unknown2;/* [unique,charset(UTF16)] */
280 struct dfs_GetManagerVersion {
281 struct {
282 enum dfs_ManagerVersion *version;/* [ref] */
283 } out;
288 struct dfs_Add {
289 struct {
290 const char *path;/* [ref,charset(UTF16)] */
291 const char *server;/* [ref,charset(UTF16)] */
292 const char *share;/* [unique,charset(UTF16)] */
293 const char *comment;/* [unique,charset(UTF16)] */
294 uint32_t flags;
295 } in;
297 struct {
298 WERROR result;
299 } out;
304 struct dfs_Remove {
305 struct {
306 const char *dfs_entry_path;/* [ref,charset(UTF16)] */
307 const char *servername;/* [unique,charset(UTF16)] */
308 const char *sharename;/* [unique,charset(UTF16)] */
309 } in;
311 struct {
312 WERROR result;
313 } out;
318 struct dfs_SetInfo {
319 struct {
320 const char *dfs_entry_path;/* [charset(UTF16)] */
321 const char *servername;/* [unique,charset(UTF16)] */
322 const char *sharename;/* [unique,charset(UTF16)] */
323 uint32_t level;
324 union dfs_Info *info;/* [ref,switch_is(level)] */
325 } in;
327 struct {
328 WERROR result;
329 } out;
334 struct dfs_GetInfo {
335 struct {
336 const char *dfs_entry_path;/* [charset(UTF16)] */
337 const char *servername;/* [unique,charset(UTF16)] */
338 const char *sharename;/* [unique,charset(UTF16)] */
339 uint32_t level;
340 } in;
342 struct {
343 union dfs_Info *info;/* [ref,switch_is(level)] */
344 WERROR result;
345 } out;
350 struct dfs_Enum {
351 struct {
352 uint32_t level;
353 uint32_t bufsize;
354 struct dfs_EnumStruct *info;/* [unique] */
355 uint32_t *total;/* [unique] */
356 } in;
358 struct {
359 struct dfs_EnumStruct *info;/* [unique] */
360 uint32_t *total;/* [unique] */
361 WERROR result;
362 } out;
367 struct dfs_Rename {
368 struct {
369 WERROR result;
370 } out;
375 struct dfs_Move {
376 struct {
377 WERROR result;
378 } out;
383 struct dfs_ManagerGetConfigInfo {
384 struct {
385 WERROR result;
386 } out;
391 struct dfs_ManagerSendSiteInfo {
392 struct {
393 WERROR result;
394 } out;
399 struct dfs_AddFtRoot {
400 struct {
401 const char *servername;/* [charset(UTF16)] */
402 const char *dns_servername;/* [charset(UTF16)] */
403 const char *dfsname;/* [charset(UTF16)] */
404 const char *rootshare;/* [charset(UTF16)] */
405 const char *comment;/* [charset(UTF16)] */
406 const char *dfs_config_dn;/* [charset(UTF16)] */
407 uint8_t unknown1;
408 uint32_t flags;
409 struct dfs_UnknownStruct **unknown2;/* [unique] */
410 } in;
412 struct {
413 struct dfs_UnknownStruct **unknown2;/* [unique] */
414 WERROR result;
415 } out;
420 struct dfs_RemoveFtRoot {
421 struct {
422 const char *servername;/* [charset(UTF16)] */
423 const char *dns_servername;/* [charset(UTF16)] */
424 const char *dfsname;/* [charset(UTF16)] */
425 const char *rootshare;/* [charset(UTF16)] */
426 uint32_t flags;
427 struct dfs_UnknownStruct **unknown;/* [unique] */
428 } in;
430 struct {
431 struct dfs_UnknownStruct **unknown;/* [unique] */
432 WERROR result;
433 } out;
438 struct dfs_AddStdRoot {
439 struct {
440 const char *servername;/* [charset(UTF16)] */
441 const char *rootshare;/* [charset(UTF16)] */
442 const char *comment;/* [charset(UTF16)] */
443 uint32_t flags;
444 } in;
446 struct {
447 WERROR result;
448 } out;
453 struct dfs_RemoveStdRoot {
454 struct {
455 const char *servername;/* [charset(UTF16)] */
456 const char *rootshare;/* [charset(UTF16)] */
457 uint32_t flags;
458 } in;
460 struct {
461 WERROR result;
462 } out;
467 struct dfs_ManagerInitialize {
468 struct {
469 const char *servername;/* [ref,charset(UTF16)] */
470 uint32_t flags;
471 } in;
473 struct {
474 WERROR result;
475 } out;
480 struct dfs_AddStdRootForced {
481 struct {
482 const char *servername;/* [charset(UTF16)] */
483 const char *rootshare;/* [charset(UTF16)] */
484 const char *comment;/* [charset(UTF16)] */
485 const char *store;/* [charset(UTF16)] */
486 } in;
488 struct {
489 WERROR result;
490 } out;
495 struct dfs_GetDcAddress {
496 struct {
497 const char *servername;/* [charset(UTF16)] */
498 const char **server_fullname;/* [ref,charset(UTF16)] */
499 uint8_t *is_root;/* [ref] */
500 uint32_t *ttl;/* [ref] */
501 } in;
503 struct {
504 const char **server_fullname;/* [ref,charset(UTF16)] */
505 uint8_t *is_root;/* [ref] */
506 uint32_t *ttl;/* [ref] */
507 WERROR result;
508 } out;
513 struct dfs_SetDcAddress {
514 struct {
515 const char *servername;/* [charset(UTF16)] */
516 const char *server_fullname;/* [charset(UTF16)] */
517 uint32_t flags;
518 uint32_t ttl;
519 } in;
521 struct {
522 WERROR result;
523 } out;
528 struct dfs_FlushFtTable {
529 struct {
530 const char *servername;/* [charset(UTF16)] */
531 const char *rootshare;/* [charset(UTF16)] */
532 } in;
534 struct {
535 WERROR result;
536 } out;
541 struct dfs_Add2 {
542 struct {
543 WERROR result;
544 } out;
549 struct dfs_Remove2 {
550 struct {
551 WERROR result;
552 } out;
557 struct dfs_EnumEx {
558 struct {
559 const char *dfs_name;/* [charset(UTF16)] */
560 uint32_t level;
561 uint32_t bufsize;
562 struct dfs_EnumStruct *info;/* [unique] */
563 uint32_t *total;/* [unique] */
564 } in;
566 struct {
567 struct dfs_EnumStruct *info;/* [unique] */
568 uint32_t *total;/* [unique] */
569 WERROR result;
570 } out;
575 struct dfs_SetInfo2 {
576 struct {
577 WERROR result;
578 } out;
582 #endif /* _HEADER_netdfs */