From 415aa96f09fd708d134eb15a9e8f729ca3eb05c4 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 8 Sep 2006 17:21:15 +0000 Subject: r18275: add auto generated dfs code (This used to be commit edb7a3607e3fa2090310b5c405f2b0a08f51db78) --- source3/librpc/gen_ndr/dfs.h | 337 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 337 insertions(+) create mode 100644 source3/librpc/gen_ndr/dfs.h (limited to 'source3/librpc/gen_ndr/dfs.h') diff --git a/source3/librpc/gen_ndr/dfs.h b/source3/librpc/gen_ndr/dfs.h new file mode 100644 index 0000000000..1909b938ef --- /dev/null +++ b/source3/librpc/gen_ndr/dfs.h @@ -0,0 +1,337 @@ +/* header auto-generated by pidl */ + +#ifndef _HEADER_netdfs +#define _HEADER_netdfs + +struct dfs_Info0 { + char _empty_; +}; + +struct dfs_Info1 { + const char *path;/* [unique,keepref,charset(UTF16)] */ +}; + +struct dfs_Info2 { + const char *path;/* [unique,keepref,charset(UTF16)] */ + const char *comment;/* [unique,keepref,charset(UTF16)] */ + uint32_t state;/* [keepref] */ + uint32_t num_stores;/* [keepref] */ +}; + +struct dfs_StorageInfo { + uint32_t state;/* [keepref] */ + const char *server;/* [unique,keepref,charset(UTF16)] */ + const char *share;/* [unique,keepref,charset(UTF16)] */ +}; + +struct dfs_Info3 { + const char *path;/* [unique,keepref,charset(UTF16)] */ + const char *comment;/* [unique,keepref,charset(UTF16)] */ + uint32_t state;/* [keepref] */ + uint32_t num_stores;/* [keepref] */ + struct dfs_StorageInfo *stores;/* [unique,keepref,size_is(num_stores)] */ +}; + +struct dfs_Info4 { + const char *path;/* [unique,keepref,charset(UTF16)] */ + const char *comment;/* [unique,keepref,charset(UTF16)] */ + uint32_t state;/* [keepref] */ + uint32_t timeout;/* [keepref] */ + struct GUID guid;/* [keepref] */ + uint32_t num_stores;/* [keepref] */ + struct dfs_StorageInfo *stores;/* [unique,keepref,size_is(num_stores)] */ +}; + +struct dfs_Info100 { + const char *comment;/* [unique,keepref,charset(UTF16)] */ +}; + +struct dfs_Info101 { + uint32_t state;/* [keepref] */ +}; + +struct dfs_Info102 { + uint32_t timeout;/* [keepref] */ +}; + +struct dfs_Info200 { + const char *dom_root;/* [unique,keepref,charset(UTF16)] */ +}; + +struct dfs_Info300 { + uint32_t flags;/* [keepref] */ + const char *dom_root;/* [unique,keepref,charset(UTF16)] */ +}; + +union dfs_Info { + struct dfs_Info0 *info0;/* [unique,keepref,case(0)] */ + struct dfs_Info1 *info1;/* [unique,keepref,case] */ + struct dfs_Info2 *info2;/* [unique,keepref,case(2)] */ + struct dfs_Info3 *info3;/* [unique,keepref,case(3)] */ + struct dfs_Info4 *info4;/* [unique,keepref,case(4)] */ + struct dfs_Info100 *info100;/* [unique,keepref,case(100)] */ + struct dfs_Info101 *info101;/* [unique,keepref,case(101)] */ + struct dfs_Info102 *info102;/* [unique,keepref,case(102)] */ +}; + +struct dfs_EnumArray1 { + uint32_t count;/* [keepref] */ + struct dfs_Info1 *s;/* [unique,keepref,size_is(count)] */ +}; + +struct dfs_EnumArray2 { + uint32_t count;/* [keepref] */ + struct dfs_Info2 *s;/* [unique,keepref,size_is(count)] */ +}; + +struct dfs_EnumArray3 { + uint32_t count;/* [keepref] */ + struct dfs_Info3 *s;/* [unique,keepref,size_is(count)] */ +}; + +struct dfs_EnumArray4 { + uint32_t count;/* [keepref] */ + struct dfs_Info4 *s;/* [unique,keepref,size_is(count)] */ +}; + +struct dfs_EnumArray200 { + uint32_t count;/* [keepref] */ + struct dfs_Info200 *s;/* [unique,keepref,size_is(count)] */ +}; + +struct dfs_EnumArray300 { + uint32_t count;/* [keepref] */ + struct dfs_Info300 *s;/* [unique,keepref,size_is(count)] */ +}; + +union dfs_EnumInfo { + struct dfs_EnumArray1 *info1;/* [unique,keepref,case] */ + struct dfs_EnumArray2 *info2;/* [unique,keepref,case(2)] */ + struct dfs_EnumArray3 *info3;/* [unique,keepref,case(3)] */ + struct dfs_EnumArray4 *info4;/* [unique,keepref,case(4)] */ + struct dfs_EnumArray200 *info200;/* [unique,keepref,case(200)] */ + struct dfs_EnumArray300 *info300;/* [unique,keepref,case(300)] */ +}; + +struct dfs_EnumStruct { + uint32_t level;/* [keepref] */ + union dfs_EnumInfo e;/* [keepref,switch_is(level)] */ +}; + + +struct dfs_GetManagerVersion { + struct { + uint32_t *exist_flag;/* [keepref,ref] */ + } out; + +}; + + +struct dfs_Add { + struct { + const char *path;/* [keepref,ref,charset(UTF16)] */ + const char *server;/* [keepref,ref,charset(UTF16)] */ + const char *share;/* [unique,keepref,charset(UTF16)] */ + const char *comment;/* [unique,keepref,charset(UTF16)] */ + uint32_t flags;/* [keepref] */ + } in; + + struct { + WERROR result; + } out; + +}; + + +struct dfs_Remove { + struct { + const char *path;/* [keepref,ref,charset(UTF16)] */ + const char *server;/* [unique,keepref,charset(UTF16)] */ + const char *share;/* [unique,keepref,charset(UTF16)] */ + } in; + + struct { + WERROR result; + } out; + +}; + + +struct dfs_SetInfo { + struct { + WERROR result; + } out; + +}; + + +struct dfs_GetInfo { + struct { + const char *path;/* [keepref,ref,charset(UTF16)] */ + const char *server;/* [unique,keepref,charset(UTF16)] */ + const char *share;/* [unique,keepref,charset(UTF16)] */ + uint32_t level;/* [keepref] */ + } in; + + struct { + union dfs_Info *info;/* [keepref,ref,switch_is(level)] */ + WERROR result; + } out; + +}; + + +struct dfs_Enum { + struct { + uint32_t level;/* [keepref] */ + uint32_t bufsize;/* [keepref] */ + struct dfs_EnumStruct *info;/* [unique,keepref] */ + uint32_t *unknown;/* [unique,keepref] */ + uint32_t *total;/* [unique,keepref] */ + } in; + + struct { + struct dfs_EnumStruct *info;/* [unique,keepref] */ + uint32_t *total;/* [unique,keepref] */ + WERROR result; + } out; + +}; + + +struct dfs_Rename { + struct { + WERROR result; + } out; + +}; + + +struct dfs_Move { + struct { + WERROR result; + } out; + +}; + + +struct dfs_ManagerGetConfigInfo { + struct { + WERROR result; + } out; + +}; + + +struct dfs_ManagerSendSiteInfo { + struct { + WERROR result; + } out; + +}; + + +struct dfs_AddFtRoot { + struct { + WERROR result; + } out; + +}; + + +struct dfs_RemoveFtRoot { + struct { + WERROR result; + } out; + +}; + + +struct dfs_AddStdRoot { + struct { + WERROR result; + } out; + +}; + + +struct dfs_RemoveStdRoot { + struct { + WERROR result; + } out; + +}; + + +struct dfs_ManagerInitialize { + struct { + WERROR result; + } out; + +}; + + +struct dfs_AddStdRootForced { + struct { + WERROR result; + } out; + +}; + + +struct dfs_GetDcAddress { + struct { + WERROR result; + } out; + +}; + + +struct dfs_SetDcAddress { + struct { + WERROR result; + } out; + +}; + + +struct dfs_FlushFtTable { + struct { + WERROR result; + } out; + +}; + + +struct dfs_Add2 { + struct { + WERROR result; + } out; + +}; + + +struct dfs_Remove2 { + struct { + WERROR result; + } out; + +}; + + +struct dfs_EnumEx { + struct { + WERROR result; + } out; + +}; + + +struct dfs_SetInfo2 { + struct { + WERROR result; + } out; + +}; + +#endif /* _HEADER_netdfs */ -- cgit From 8be112a81bf7d7fb48ee82fd38c1f8d0f85bbc75 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 13 Sep 2006 13:42:23 +0000 Subject: r18469: Use new pidl-generated DFS client code. (This used to be commit e277fb067b1a12d816c8a066839751c1824d27bb) --- source3/librpc/gen_ndr/dfs.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source3/librpc/gen_ndr/dfs.h') diff --git a/source3/librpc/gen_ndr/dfs.h b/source3/librpc/gen_ndr/dfs.h index 1909b938ef..4bd4f2d7f0 100644 --- a/source3/librpc/gen_ndr/dfs.h +++ b/source3/librpc/gen_ndr/dfs.h @@ -321,6 +321,16 @@ struct dfs_Remove2 { struct dfs_EnumEx { struct { + const char *name;/* [keepref,ref,charset(UTF16)] */ + uint32_t level;/* [keepref] */ + uint32_t bufsize;/* [keepref] */ + struct dfs_EnumStruct *info;/* [unique,keepref] */ + uint32_t *total;/* [unique,keepref] */ + } in; + + struct { + struct dfs_EnumStruct *info;/* [unique,keepref] */ + uint32_t *total;/* [unique,keepref] */ WERROR result; } out; -- cgit From 8c79b4cbc152dd4df11d3916739bc851b6db2e86 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 19 Sep 2006 22:22:57 +0000 Subject: r18690: Regenerate RPC files after pidl changes. (This used to be commit 87d34305374e867eeac9d75d5d690c6b15570e6e) --- source3/librpc/gen_ndr/dfs.h | 164 +++++++++++++++++++++---------------------- 1 file changed, 82 insertions(+), 82 deletions(-) (limited to 'source3/librpc/gen_ndr/dfs.h') diff --git a/source3/librpc/gen_ndr/dfs.h b/source3/librpc/gen_ndr/dfs.h index 4bd4f2d7f0..bd4dc5ed12 100644 --- a/source3/librpc/gen_ndr/dfs.h +++ b/source3/librpc/gen_ndr/dfs.h @@ -8,120 +8,120 @@ struct dfs_Info0 { }; struct dfs_Info1 { - const char *path;/* [unique,keepref,charset(UTF16)] */ + const char *path;/* [unique,charset(UTF16)] */ }; struct dfs_Info2 { - const char *path;/* [unique,keepref,charset(UTF16)] */ - const char *comment;/* [unique,keepref,charset(UTF16)] */ - uint32_t state;/* [keepref] */ - uint32_t num_stores;/* [keepref] */ + const char *path;/* [unique,charset(UTF16)] */ + const char *comment;/* [unique,charset(UTF16)] */ + uint32_t state; + uint32_t num_stores; }; struct dfs_StorageInfo { - uint32_t state;/* [keepref] */ - const char *server;/* [unique,keepref,charset(UTF16)] */ - const char *share;/* [unique,keepref,charset(UTF16)] */ + uint32_t state; + const char *server;/* [unique,charset(UTF16)] */ + const char *share;/* [unique,charset(UTF16)] */ }; struct dfs_Info3 { - const char *path;/* [unique,keepref,charset(UTF16)] */ - const char *comment;/* [unique,keepref,charset(UTF16)] */ - uint32_t state;/* [keepref] */ - uint32_t num_stores;/* [keepref] */ - struct dfs_StorageInfo *stores;/* [unique,keepref,size_is(num_stores)] */ + const char *path;/* [unique,charset(UTF16)] */ + const char *comment;/* [unique,charset(UTF16)] */ + uint32_t state; + uint32_t num_stores; + struct dfs_StorageInfo *stores;/* [unique,size_is(num_stores)] */ }; struct dfs_Info4 { - const char *path;/* [unique,keepref,charset(UTF16)] */ - const char *comment;/* [unique,keepref,charset(UTF16)] */ - uint32_t state;/* [keepref] */ - uint32_t timeout;/* [keepref] */ - struct GUID guid;/* [keepref] */ - uint32_t num_stores;/* [keepref] */ - struct dfs_StorageInfo *stores;/* [unique,keepref,size_is(num_stores)] */ + const char *path;/* [unique,charset(UTF16)] */ + const char *comment;/* [unique,charset(UTF16)] */ + uint32_t state; + uint32_t timeout; + struct GUID guid; + uint32_t num_stores; + struct dfs_StorageInfo *stores;/* [unique,size_is(num_stores)] */ }; struct dfs_Info100 { - const char *comment;/* [unique,keepref,charset(UTF16)] */ + const char *comment;/* [unique,charset(UTF16)] */ }; struct dfs_Info101 { - uint32_t state;/* [keepref] */ + uint32_t state; }; struct dfs_Info102 { - uint32_t timeout;/* [keepref] */ + uint32_t timeout; }; struct dfs_Info200 { - const char *dom_root;/* [unique,keepref,charset(UTF16)] */ + const char *dom_root;/* [unique,charset(UTF16)] */ }; struct dfs_Info300 { - uint32_t flags;/* [keepref] */ - const char *dom_root;/* [unique,keepref,charset(UTF16)] */ + uint32_t flags; + const char *dom_root;/* [unique,charset(UTF16)] */ }; union dfs_Info { - struct dfs_Info0 *info0;/* [unique,keepref,case(0)] */ - struct dfs_Info1 *info1;/* [unique,keepref,case] */ - struct dfs_Info2 *info2;/* [unique,keepref,case(2)] */ - struct dfs_Info3 *info3;/* [unique,keepref,case(3)] */ - struct dfs_Info4 *info4;/* [unique,keepref,case(4)] */ - struct dfs_Info100 *info100;/* [unique,keepref,case(100)] */ - struct dfs_Info101 *info101;/* [unique,keepref,case(101)] */ - struct dfs_Info102 *info102;/* [unique,keepref,case(102)] */ + struct dfs_Info0 *info0;/* [unique,case(0)] */ + struct dfs_Info1 *info1;/* [unique,case] */ + struct dfs_Info2 *info2;/* [unique,case(2)] */ + struct dfs_Info3 *info3;/* [unique,case(3)] */ + struct dfs_Info4 *info4;/* [unique,case(4)] */ + struct dfs_Info100 *info100;/* [unique,case(100)] */ + struct dfs_Info101 *info101;/* [unique,case(101)] */ + struct dfs_Info102 *info102;/* [unique,case(102)] */ }; struct dfs_EnumArray1 { - uint32_t count;/* [keepref] */ - struct dfs_Info1 *s;/* [unique,keepref,size_is(count)] */ + uint32_t count; + struct dfs_Info1 *s;/* [unique,size_is(count)] */ }; struct dfs_EnumArray2 { - uint32_t count;/* [keepref] */ - struct dfs_Info2 *s;/* [unique,keepref,size_is(count)] */ + uint32_t count; + struct dfs_Info2 *s;/* [unique,size_is(count)] */ }; struct dfs_EnumArray3 { - uint32_t count;/* [keepref] */ - struct dfs_Info3 *s;/* [unique,keepref,size_is(count)] */ + uint32_t count; + struct dfs_Info3 *s;/* [unique,size_is(count)] */ }; struct dfs_EnumArray4 { - uint32_t count;/* [keepref] */ - struct dfs_Info4 *s;/* [unique,keepref,size_is(count)] */ + uint32_t count; + struct dfs_Info4 *s;/* [unique,size_is(count)] */ }; struct dfs_EnumArray200 { - uint32_t count;/* [keepref] */ - struct dfs_Info200 *s;/* [unique,keepref,size_is(count)] */ + uint32_t count; + struct dfs_Info200 *s;/* [unique,size_is(count)] */ }; struct dfs_EnumArray300 { - uint32_t count;/* [keepref] */ - struct dfs_Info300 *s;/* [unique,keepref,size_is(count)] */ + uint32_t count; + struct dfs_Info300 *s;/* [unique,size_is(count)] */ }; union dfs_EnumInfo { - struct dfs_EnumArray1 *info1;/* [unique,keepref,case] */ - struct dfs_EnumArray2 *info2;/* [unique,keepref,case(2)] */ - struct dfs_EnumArray3 *info3;/* [unique,keepref,case(3)] */ - struct dfs_EnumArray4 *info4;/* [unique,keepref,case(4)] */ - struct dfs_EnumArray200 *info200;/* [unique,keepref,case(200)] */ - struct dfs_EnumArray300 *info300;/* [unique,keepref,case(300)] */ + struct dfs_EnumArray1 *info1;/* [unique,case] */ + struct dfs_EnumArray2 *info2;/* [unique,case(2)] */ + struct dfs_EnumArray3 *info3;/* [unique,case(3)] */ + struct dfs_EnumArray4 *info4;/* [unique,case(4)] */ + struct dfs_EnumArray200 *info200;/* [unique,case(200)] */ + struct dfs_EnumArray300 *info300;/* [unique,case(300)] */ }; struct dfs_EnumStruct { - uint32_t level;/* [keepref] */ - union dfs_EnumInfo e;/* [keepref,switch_is(level)] */ + uint32_t level; + union dfs_EnumInfo e;/* [switch_is(level)] */ }; struct dfs_GetManagerVersion { struct { - uint32_t *exist_flag;/* [keepref,ref] */ + uint32_t *exist_flag;/* [ref] */ } out; }; @@ -129,11 +129,11 @@ struct dfs_GetManagerVersion { struct dfs_Add { struct { - const char *path;/* [keepref,ref,charset(UTF16)] */ - const char *server;/* [keepref,ref,charset(UTF16)] */ - const char *share;/* [unique,keepref,charset(UTF16)] */ - const char *comment;/* [unique,keepref,charset(UTF16)] */ - uint32_t flags;/* [keepref] */ + const char *path;/* [ref,charset(UTF16)] */ + const char *server;/* [ref,charset(UTF16)] */ + const char *share;/* [unique,charset(UTF16)] */ + const char *comment;/* [unique,charset(UTF16)] */ + uint32_t flags; } in; struct { @@ -145,9 +145,9 @@ struct dfs_Add { struct dfs_Remove { struct { - const char *path;/* [keepref,ref,charset(UTF16)] */ - const char *server;/* [unique,keepref,charset(UTF16)] */ - const char *share;/* [unique,keepref,charset(UTF16)] */ + const char *path;/* [ref,charset(UTF16)] */ + const char *server;/* [unique,charset(UTF16)] */ + const char *share;/* [unique,charset(UTF16)] */ } in; struct { @@ -167,14 +167,14 @@ struct dfs_SetInfo { struct dfs_GetInfo { struct { - const char *path;/* [keepref,ref,charset(UTF16)] */ - const char *server;/* [unique,keepref,charset(UTF16)] */ - const char *share;/* [unique,keepref,charset(UTF16)] */ - uint32_t level;/* [keepref] */ + const char *path;/* [ref,charset(UTF16)] */ + const char *server;/* [unique,charset(UTF16)] */ + const char *share;/* [unique,charset(UTF16)] */ + uint32_t level; } in; struct { - union dfs_Info *info;/* [keepref,ref,switch_is(level)] */ + union dfs_Info *info;/* [ref,switch_is(level)] */ WERROR result; } out; @@ -183,16 +183,16 @@ struct dfs_GetInfo { struct dfs_Enum { struct { - uint32_t level;/* [keepref] */ - uint32_t bufsize;/* [keepref] */ - struct dfs_EnumStruct *info;/* [unique,keepref] */ - uint32_t *unknown;/* [unique,keepref] */ - uint32_t *total;/* [unique,keepref] */ + uint32_t level; + uint32_t bufsize; + struct dfs_EnumStruct *info;/* [unique] */ + uint32_t *unknown;/* [unique] */ + uint32_t *total;/* [unique] */ } in; struct { - struct dfs_EnumStruct *info;/* [unique,keepref] */ - uint32_t *total;/* [unique,keepref] */ + struct dfs_EnumStruct *info;/* [unique] */ + uint32_t *total;/* [unique] */ WERROR result; } out; @@ -321,16 +321,16 @@ struct dfs_Remove2 { struct dfs_EnumEx { struct { - const char *name;/* [keepref,ref,charset(UTF16)] */ - uint32_t level;/* [keepref] */ - uint32_t bufsize;/* [keepref] */ - struct dfs_EnumStruct *info;/* [unique,keepref] */ - uint32_t *total;/* [unique,keepref] */ + const char *name;/* [ref,charset(UTF16)] */ + uint32_t level; + uint32_t bufsize; + struct dfs_EnumStruct *info;/* [unique] */ + uint32_t *total;/* [unique] */ } in; struct { - struct dfs_EnumStruct *info;/* [unique,keepref] */ - uint32_t *total;/* [unique,keepref] */ + struct dfs_EnumStruct *info;/* [unique] */ + uint32_t *total;/* [unique] */ WERROR result; } out; -- cgit From 4003edf0df14b69fca0d1af923badbd682c0008c Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 16 Feb 2007 14:50:57 +0000 Subject: r21385: Regenerate IDL after pidl changes, sync winreg.idl from samba4. (This used to be commit b84370513fbf790e599c33f177fb271a2a992b72) --- source3/librpc/gen_ndr/dfs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/librpc/gen_ndr/dfs.h') diff --git a/source3/librpc/gen_ndr/dfs.h b/source3/librpc/gen_ndr/dfs.h index bd4dc5ed12..1cfea4b42b 100644 --- a/source3/librpc/gen_ndr/dfs.h +++ b/source3/librpc/gen_ndr/dfs.h @@ -1,5 +1,7 @@ /* header auto-generated by pidl */ +#include + #ifndef _HEADER_netdfs #define _HEADER_netdfs @@ -185,8 +187,8 @@ struct dfs_Enum { struct { uint32_t level; uint32_t bufsize; - struct dfs_EnumStruct *info;/* [unique] */ uint32_t *unknown;/* [unique] */ + struct dfs_EnumStruct *info;/* [unique] */ uint32_t *total;/* [unique] */ } in; -- cgit From a458211702da5f573f09dde196ca302f2f7cb976 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 27 Jun 2007 09:17:52 +0000 Subject: r23622: regenerate dfs rpc gen_ndr. Guenther (This used to be commit 71b3259962004c278ca2e859d5460ad47c2468d6) --- source3/librpc/gen_ndr/dfs.h | 224 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 214 insertions(+), 10 deletions(-) (limited to 'source3/librpc/gen_ndr/dfs.h') diff --git a/source3/librpc/gen_ndr/dfs.h b/source3/librpc/gen_ndr/dfs.h index 1cfea4b42b..58eb34f0de 100644 --- a/source3/librpc/gen_ndr/dfs.h +++ b/source3/librpc/gen_ndr/dfs.h @@ -5,6 +5,21 @@ #ifndef _HEADER_netdfs #define _HEADER_netdfs +#define DFS_STORAGE_STATES ( 0xf ) +#ifndef USE_UINT_ENUMS +enum dfs_ManagerVersion { + DFS_MANAGER_VERSION_NT4=1, + DFS_MANAGER_VERSION_W2K=2, + DFS_MANAGER_VERSION_W2K3=4 +} +#else +enum dfs_ManagerVersion { __donnot_use_enum_dfs_ManagerVersion=0x7FFFFFFF} +#define DFS_MANAGER_VERSION_NT4 ( 1 ) +#define DFS_MANAGER_VERSION_W2K ( 2 ) +#define DFS_MANAGER_VERSION_W2K3 ( 4 ) +#endif +; + struct dfs_Info0 { char _empty_; }; @@ -13,6 +28,16 @@ struct dfs_Info1 { const char *path;/* [unique,charset(UTF16)] */ }; +/* bitmap dfs_VolumeState */ +#define DFS_VOLUME_STATE_OK ( 0x1 ) +#define DFS_VOLUME_STATE_INCONSISTENT ( 0x2 ) +#define DFS_VOLUME_STATE_OFFLINE ( 0x4 ) +#define DFS_VOLUME_STATE_ONLINE ( 0x8 ) +#define DFS_VOLUME_STATE_STANDALONE ( DFS_VOLUME_FLAVOR_STANDALONE ) +#define DFS_VOLUME_STATE_AD_BLOB ( DFS_VOLUME_FLAVOR_AD_BLOB ) + +; + struct dfs_Info2 { const char *path;/* [unique,charset(UTF16)] */ const char *comment;/* [unique,charset(UTF16)] */ @@ -20,6 +45,13 @@ struct dfs_Info2 { uint32_t num_stores; }; +/* bitmap dfs_StorageState */ +#define DFS_STORAGE_STATE_OFFLINE ( 1 ) +#define DFS_STORAGE_STATE_ONLINE ( 2 ) +#define DFS_STORAGE_STATE_ACTIVE ( 4 ) + +; + struct dfs_StorageInfo { uint32_t state; const char *server;/* [unique,charset(UTF16)] */ @@ -44,6 +76,73 @@ struct dfs_Info4 { struct dfs_StorageInfo *stores;/* [unique,size_is(num_stores)] */ }; +/* bitmap dfs_PropertyFlags */ +#define DFS_PROPERTY_FLAG_INSITE_REFERRALS ( 0x01 ) +#define DFS_PROPERTY_FLAG_ROOT_SCALABILITY ( 0x02 ) +#define DFS_PROPERTY_FLAG_SITE_COSTING ( 0x04 ) +#define DFS_PROPERTY_FLAG_TARGET_FAILBACK ( 0x08 ) +#define DFS_PROPERTY_FLAG_CLUSTER_ENABLED ( 0x10 ) + +; + +struct dfs_Info5 { + const char *path;/* [unique,charset(UTF16)] */ + const char *comment;/* [unique,charset(UTF16)] */ + uint32_t state; + uint32_t timeout; + struct GUID guid; + uint32_t flags; + uint32_t pktsize; + uint32_t num_stores; +}; + +#ifndef USE_UINT_ENUMS +enum dfs_Target_PriorityClass { + DFS_INVALID_PRIORITY_CLASS=-1, + DFS_SITE_COST_NORMAL_PRIORITY_CLASS=0, + DFS_GLOBAL_HIGH_PRIORITY_CLASS=1, + DFS_SITE_COST_HIGH_PRIORITY_CLASS=2, + DFS_SITE_COST_LOW_PRIORITY_CLASS=3, + DFS_GLOBAL_LOW_PRIORITY_CLASS=4 +} +#else +enum dfs_Target_PriorityClass { __donnot_use_enum_dfs_Target_PriorityClass=0x7FFFFFFF} +#define DFS_INVALID_PRIORITY_CLASS ( -1 ) +#define DFS_SITE_COST_NORMAL_PRIORITY_CLASS ( 0 ) +#define DFS_GLOBAL_HIGH_PRIORITY_CLASS ( 1 ) +#define DFS_SITE_COST_HIGH_PRIORITY_CLASS ( 2 ) +#define DFS_SITE_COST_LOW_PRIORITY_CLASS ( 3 ) +#define DFS_GLOBAL_LOW_PRIORITY_CLASS ( 4 ) +#endif +; + +struct dfs_Target_Priority { + enum dfs_Target_PriorityClass target_priority_class; + uint16_t target_priority_rank; + uint16_t reserved; +}; + +struct dfs_StorageInfo2 { + struct dfs_StorageInfo info; + struct dfs_Target_Priority target_priority; +}; + +struct dfs_Info6 { + const char *entry_path;/* [unique,charset(UTF16)] */ + const char *comment;/* [unique,charset(UTF16)] */ + uint32_t state; + uint32_t timeout; + struct GUID guid; + uint32_t flags; + uint32_t pktsize; + uint16_t num_stores; + struct dfs_StorageInfo2 *stores;/* [unique,size_is(num_stores)] */ +}; + +struct dfs_Info7 { + struct GUID generation_guid; +}; + struct dfs_Info100 { const char *comment;/* [unique,charset(UTF16)] */ }; @@ -56,12 +155,45 @@ struct dfs_Info102 { uint32_t timeout; }; +struct dfs_Info103 { + uint32_t flags; +}; + +struct dfs_Info104 { + struct dfs_Target_Priority priority; +}; + +struct dfs_Info105 { + const char *comment;/* [unique,charset(UTF16)] */ + uint32_t state; + uint32_t timeout; + uint32_t property_flag_mask; + uint32_t property_flags; +}; + +struct dfs_Info106 { + uint32_t state; + struct dfs_Target_Priority priority; +}; + struct dfs_Info200 { const char *dom_root;/* [unique,charset(UTF16)] */ }; +#ifndef USE_UINT_ENUMS +enum dfs_VolumeFlavor { + DFS_VOLUME_FLAVOR_STANDALONE=0x100, + DFS_VOLUME_FLAVOR_AD_BLOB=0x200 +} +#else +enum dfs_VolumeFlavor { __donnot_use_enum_dfs_VolumeFlavor=0x7FFFFFFF} +#define DFS_VOLUME_FLAVOR_STANDALONE ( 0x100 ) +#define DFS_VOLUME_FLAVOR_AD_BLOB ( 0x200 ) +#endif +; + struct dfs_Info300 { - uint32_t flags; + enum dfs_VolumeFlavor flavor; const char *dom_root;/* [unique,charset(UTF16)] */ }; @@ -71,9 +203,16 @@ union dfs_Info { struct dfs_Info2 *info2;/* [unique,case(2)] */ struct dfs_Info3 *info3;/* [unique,case(3)] */ struct dfs_Info4 *info4;/* [unique,case(4)] */ + struct dfs_Info5 *info5;/* [unique,case(5)] */ + struct dfs_Info6 *info6;/* [unique,case(6)] */ + struct dfs_Info7 *info7;/* [unique,case(7)] */ struct dfs_Info100 *info100;/* [unique,case(100)] */ struct dfs_Info101 *info101;/* [unique,case(101)] */ struct dfs_Info102 *info102;/* [unique,case(102)] */ + struct dfs_Info103 *info103;/* [unique,case(103)] */ + struct dfs_Info104 *info104;/* [unique,case(104)] */ + struct dfs_Info105 *info105;/* [unique,case(105)] */ + struct dfs_Info106 *info106;/* [unique,case(106)] */ }; struct dfs_EnumArray1 { @@ -120,10 +259,15 @@ struct dfs_EnumStruct { union dfs_EnumInfo e;/* [switch_is(level)] */ }; +struct dfs_UnknownStruct { + uint32_t unknown1; + const char *unknown2;/* [unique,charset(UTF16)] */ +}; + struct dfs_GetManagerVersion { struct { - uint32_t *exist_flag;/* [ref] */ + enum dfs_ManagerVersion *version;/* [ref] */ } out; }; @@ -147,9 +291,9 @@ struct dfs_Add { struct dfs_Remove { struct { - const char *path;/* [ref,charset(UTF16)] */ - const char *server;/* [unique,charset(UTF16)] */ - const char *share;/* [unique,charset(UTF16)] */ + const char *dfs_entry_path;/* [ref,charset(UTF16)] */ + const char *servername;/* [unique,charset(UTF16)] */ + const char *sharename;/* [unique,charset(UTF16)] */ } in; struct { @@ -160,6 +304,14 @@ struct dfs_Remove { struct dfs_SetInfo { + struct { + const char *dfs_entry_path;/* [charset(UTF16)] */ + const char *servername;/* [unique,charset(UTF16)] */ + const char *sharename;/* [unique,charset(UTF16)] */ + uint32_t level; + union dfs_Info *info;/* [ref,switch_is(level)] */ + } in; + struct { WERROR result; } out; @@ -169,9 +321,9 @@ struct dfs_SetInfo { struct dfs_GetInfo { struct { - const char *path;/* [ref,charset(UTF16)] */ - const char *server;/* [unique,charset(UTF16)] */ - const char *share;/* [unique,charset(UTF16)] */ + const char *dfs_entry_path;/* [charset(UTF16)] */ + const char *servername;/* [unique,charset(UTF16)] */ + const char *sharename;/* [unique,charset(UTF16)] */ uint32_t level; } in; @@ -187,7 +339,6 @@ struct dfs_Enum { struct { uint32_t level; uint32_t bufsize; - uint32_t *unknown;/* [unique] */ struct dfs_EnumStruct *info;/* [unique] */ uint32_t *total;/* [unique] */ } in; @@ -235,6 +386,19 @@ struct dfs_ManagerSendSiteInfo { struct dfs_AddFtRoot { struct { + const char *servername;/* [charset(UTF16)] */ + const char *dns_servername;/* [charset(UTF16)] */ + const char *dfsname;/* [charset(UTF16)] */ + const char *rootshare;/* [charset(UTF16)] */ + const char *comment;/* [charset(UTF16)] */ + const char *dfs_config_dn;/* [charset(UTF16)] */ + uint8_t unknown1; + uint32_t flags; + struct dfs_UnknownStruct **unknown2;/* [unique] */ + } in; + + struct { + struct dfs_UnknownStruct **unknown2;/* [unique] */ WERROR result; } out; @@ -243,6 +407,16 @@ struct dfs_AddFtRoot { struct dfs_RemoveFtRoot { struct { + const char *servername;/* [charset(UTF16)] */ + const char *dns_servername;/* [charset(UTF16)] */ + const char *dfsname;/* [charset(UTF16)] */ + const char *rootshare;/* [charset(UTF16)] */ + uint32_t flags; + struct dfs_UnknownStruct **unknown;/* [unique] */ + } in; + + struct { + struct dfs_UnknownStruct **unknown;/* [unique] */ WERROR result; } out; @@ -250,6 +424,13 @@ struct dfs_RemoveFtRoot { struct dfs_AddStdRoot { + struct { + const char *servername;/* [charset(UTF16)] */ + const char *rootshare;/* [charset(UTF16)] */ + const char *comment;/* [charset(UTF16)] */ + uint32_t flags; + } in; + struct { WERROR result; } out; @@ -258,6 +439,12 @@ struct dfs_AddStdRoot { struct dfs_RemoveStdRoot { + struct { + const char *servername;/* [charset(UTF16)] */ + const char *rootshare;/* [charset(UTF16)] */ + uint32_t flags; + } in; + struct { WERROR result; } out; @@ -266,6 +453,11 @@ struct dfs_RemoveStdRoot { struct dfs_ManagerInitialize { + struct { + const char *servername;/* [ref,charset(UTF16)] */ + uint32_t flags; + } in; + struct { WERROR result; } out; @@ -274,6 +466,13 @@ struct dfs_ManagerInitialize { struct dfs_AddStdRootForced { + struct { + const char *servername;/* [charset(UTF16)] */ + const char *rootshare;/* [charset(UTF16)] */ + const char *comment;/* [charset(UTF16)] */ + const char *store;/* [charset(UTF16)] */ + } in; + struct { WERROR result; } out; @@ -298,6 +497,11 @@ struct dfs_SetDcAddress { struct dfs_FlushFtTable { + struct { + const char *servername;/* [charset(UTF16)] */ + const char *rootshare;/* [charset(UTF16)] */ + } in; + struct { WERROR result; } out; @@ -323,7 +527,7 @@ struct dfs_Remove2 { struct dfs_EnumEx { struct { - const char *name;/* [ref,charset(UTF16)] */ + const char *dfs_name;/* [charset(UTF16)] */ uint32_t level; uint32_t bufsize; struct dfs_EnumStruct *info;/* [unique] */ -- cgit From 4add2fe36e0eb84a4e49f8e38c2a14023581eeca Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 13 Jan 2008 01:22:23 +0100 Subject: idl: Replace non-standard "declare" keyword with typedef and regenerate. (This used to be commit 7e75acfdd1910b3b5908c02d5f343f014eb77841) --- source3/librpc/gen_ndr/dfs.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'source3/librpc/gen_ndr/dfs.h') diff --git a/source3/librpc/gen_ndr/dfs.h b/source3/librpc/gen_ndr/dfs.h index 58eb34f0de..89f243b7dd 100644 --- a/source3/librpc/gen_ndr/dfs.h +++ b/source3/librpc/gen_ndr/dfs.h @@ -6,14 +6,15 @@ #define _HEADER_netdfs #define DFS_STORAGE_STATES ( 0xf ) +enum dfs_ManagerVersion #ifndef USE_UINT_ENUMS -enum dfs_ManagerVersion { + { DFS_MANAGER_VERSION_NT4=1, DFS_MANAGER_VERSION_W2K=2, DFS_MANAGER_VERSION_W2K3=4 } #else -enum dfs_ManagerVersion { __donnot_use_enum_dfs_ManagerVersion=0x7FFFFFFF} + { __donnot_use_enum_dfs_ManagerVersion=0x7FFFFFFF} #define DFS_MANAGER_VERSION_NT4 ( 1 ) #define DFS_MANAGER_VERSION_W2K ( 2 ) #define DFS_MANAGER_VERSION_W2K3 ( 4 ) @@ -96,8 +97,9 @@ struct dfs_Info5 { uint32_t num_stores; }; +enum dfs_Target_PriorityClass #ifndef USE_UINT_ENUMS -enum dfs_Target_PriorityClass { + { DFS_INVALID_PRIORITY_CLASS=-1, DFS_SITE_COST_NORMAL_PRIORITY_CLASS=0, DFS_GLOBAL_HIGH_PRIORITY_CLASS=1, @@ -106,7 +108,7 @@ enum dfs_Target_PriorityClass { DFS_GLOBAL_LOW_PRIORITY_CLASS=4 } #else -enum dfs_Target_PriorityClass { __donnot_use_enum_dfs_Target_PriorityClass=0x7FFFFFFF} + { __donnot_use_enum_dfs_Target_PriorityClass=0x7FFFFFFF} #define DFS_INVALID_PRIORITY_CLASS ( -1 ) #define DFS_SITE_COST_NORMAL_PRIORITY_CLASS ( 0 ) #define DFS_GLOBAL_HIGH_PRIORITY_CLASS ( 1 ) @@ -180,13 +182,14 @@ struct dfs_Info200 { const char *dom_root;/* [unique,charset(UTF16)] */ }; +enum dfs_VolumeFlavor #ifndef USE_UINT_ENUMS -enum dfs_VolumeFlavor { + { DFS_VOLUME_FLAVOR_STANDALONE=0x100, DFS_VOLUME_FLAVOR_AD_BLOB=0x200 } #else -enum dfs_VolumeFlavor { __donnot_use_enum_dfs_VolumeFlavor=0x7FFFFFFF} + { __donnot_use_enum_dfs_VolumeFlavor=0x7FFFFFFF} #define DFS_VOLUME_FLAVOR_STANDALONE ( 0x100 ) #define DFS_VOLUME_FLAVOR_AD_BLOB ( 0x200 ) #endif -- cgit From 5e86ac9e6d2eb7ff0f6f8461dcfc230e2d87c42c Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 17 Jan 2008 13:00:12 +0100 Subject: idl: Update DFS IDL from Samba 4. (This used to be commit a6677b2e186212f723b24775293682ce5b94952e) --- source3/librpc/gen_ndr/dfs.h | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) (limited to 'source3/librpc/gen_ndr/dfs.h') diff --git a/source3/librpc/gen_ndr/dfs.h b/source3/librpc/gen_ndr/dfs.h index 89f243b7dd..38e7f93950 100644 --- a/source3/librpc/gen_ndr/dfs.h +++ b/source3/librpc/gen_ndr/dfs.h @@ -32,8 +32,8 @@ struct dfs_Info1 { /* bitmap dfs_VolumeState */ #define DFS_VOLUME_STATE_OK ( 0x1 ) #define DFS_VOLUME_STATE_INCONSISTENT ( 0x2 ) -#define DFS_VOLUME_STATE_OFFLINE ( 0x4 ) -#define DFS_VOLUME_STATE_ONLINE ( 0x8 ) +#define DFS_VOLUME_STATE_OFFLINE ( 0x3 ) +#define DFS_VOLUME_STATE_ONLINE ( 0x4 ) #define DFS_VOLUME_STATE_STANDALONE ( DFS_VOLUME_FLAVOR_STANDALONE ) #define DFS_VOLUME_STATE_AD_BLOB ( DFS_VOLUME_FLAVOR_AD_BLOB ) @@ -238,6 +238,16 @@ struct dfs_EnumArray4 { struct dfs_Info4 *s;/* [unique,size_is(count)] */ }; +struct dfs_EnumArray5 { + uint32_t count; + struct dfs_Info5 *s;/* [unique,size_is(count)] */ +}; + +struct dfs_EnumArray6 { + uint32_t count; + struct dfs_Info6 *s;/* [unique,size_is(count)] */ +}; + struct dfs_EnumArray200 { uint32_t count; struct dfs_Info200 *s;/* [unique,size_is(count)] */ @@ -253,6 +263,8 @@ union dfs_EnumInfo { struct dfs_EnumArray2 *info2;/* [unique,case(2)] */ struct dfs_EnumArray3 *info3;/* [unique,case(3)] */ struct dfs_EnumArray4 *info4;/* [unique,case(4)] */ + struct dfs_EnumArray5 *info5;/* [unique,case(5)] */ + struct dfs_EnumArray6 *info6;/* [unique,case(6)] */ struct dfs_EnumArray200 *info200;/* [unique,case(200)] */ struct dfs_EnumArray300 *info300;/* [unique,case(300)] */ }; @@ -485,6 +497,16 @@ struct dfs_AddStdRootForced { struct dfs_GetDcAddress { struct { + const char *servername;/* [charset(UTF16)] */ + const char **server_fullname;/* [ref,charset(UTF16)] */ + uint8_t *is_root;/* [ref] */ + uint32_t *ttl;/* [ref] */ + } in; + + struct { + const char **server_fullname;/* [ref,charset(UTF16)] */ + uint8_t *is_root;/* [ref] */ + uint32_t *ttl;/* [ref] */ WERROR result; } out; @@ -492,6 +514,13 @@ struct dfs_GetDcAddress { struct dfs_SetDcAddress { + struct { + const char *servername;/* [charset(UTF16)] */ + const char *server_fullname;/* [charset(UTF16)] */ + uint32_t flags; + uint32_t ttl; + } in; + struct { WERROR result; } out; -- cgit From 048c80bf5472ff5492e543a33c28a370ed3efea8 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 24 Jan 2008 15:12:00 +0100 Subject: rerun 'make idl' metze (This used to be commit 37b95450518419e2153e9930b63f894b68096d3d) --- source3/librpc/gen_ndr/dfs.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'source3/librpc/gen_ndr/dfs.h') diff --git a/source3/librpc/gen_ndr/dfs.h b/source3/librpc/gen_ndr/dfs.h index 38e7f93950..dc11e70b59 100644 --- a/source3/librpc/gen_ndr/dfs.h +++ b/source3/librpc/gen_ndr/dfs.h @@ -37,8 +37,6 @@ struct dfs_Info1 { #define DFS_VOLUME_STATE_STANDALONE ( DFS_VOLUME_FLAVOR_STANDALONE ) #define DFS_VOLUME_STATE_AD_BLOB ( DFS_VOLUME_FLAVOR_AD_BLOB ) -; - struct dfs_Info2 { const char *path;/* [unique,charset(UTF16)] */ const char *comment;/* [unique,charset(UTF16)] */ @@ -51,8 +49,6 @@ struct dfs_Info2 { #define DFS_STORAGE_STATE_ONLINE ( 2 ) #define DFS_STORAGE_STATE_ACTIVE ( 4 ) -; - struct dfs_StorageInfo { uint32_t state; const char *server;/* [unique,charset(UTF16)] */ @@ -84,8 +80,6 @@ struct dfs_Info4 { #define DFS_PROPERTY_FLAG_TARGET_FAILBACK ( 0x08 ) #define DFS_PROPERTY_FLAG_CLUSTER_ENABLED ( 0x10 ) -; - struct dfs_Info5 { const char *path;/* [unique,charset(UTF16)] */ const char *comment;/* [unique,charset(UTF16)] */ -- cgit From ecab49a4d3db06be9f225804474cb6c514e24f45 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 29 Apr 2008 20:12:26 +0200 Subject: Re-run make idl. Guenther (This used to be commit 89284792722ab38d98e874e477c7a4046ee2aba0) --- source3/librpc/gen_ndr/dfs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/librpc/gen_ndr/dfs.h') diff --git a/source3/librpc/gen_ndr/dfs.h b/source3/librpc/gen_ndr/dfs.h index dc11e70b59..8957eaef56 100644 --- a/source3/librpc/gen_ndr/dfs.h +++ b/source3/librpc/gen_ndr/dfs.h @@ -11,13 +11,15 @@ enum dfs_ManagerVersion { DFS_MANAGER_VERSION_NT4=1, DFS_MANAGER_VERSION_W2K=2, - DFS_MANAGER_VERSION_W2K3=4 + DFS_MANAGER_VERSION_W2K3=4, + DFS_MANAGER_VERSION_W2K8=6 } #else { __donnot_use_enum_dfs_ManagerVersion=0x7FFFFFFF} #define DFS_MANAGER_VERSION_NT4 ( 1 ) #define DFS_MANAGER_VERSION_W2K ( 2 ) #define DFS_MANAGER_VERSION_W2K3 ( 4 ) +#define DFS_MANAGER_VERSION_W2K8 ( 6 ) #endif ; -- cgit