From 345863915ff9d07d3b9de851bf49222ec52ded4d Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 20 Sep 2006 19:09:33 +0000 Subject: r18738: Fill in dfs_VolumeState. Hm, wondering if there is a better way to let that be composed out of one dfs_VolumeFlavor flag and one dfs_VolumeState flag. Guenther (This used to be commit 152fcddebc459624002c002bd2ee457ff6bca9ba) --- source4/librpc/idl/dfs.idl | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/source4/librpc/idl/dfs.idl b/source4/librpc/idl/dfs.idl index 0360636465..751704cea5 100644 --- a/source4/librpc/idl/dfs.idl +++ b/source4/librpc/idl/dfs.idl @@ -53,10 +53,20 @@ [string,charset(UTF16)] uint16 *path; } dfs_Info1; + /* first 4 bits unverified yet */ + typedef [public,bitmap32bit] bitmap { + DFS_VOLUME_STATE_OK = 0x1, + DFS_VOLUME_STATE_INCONSISTENT = 0x2, + DFS_VOLUME_STATE_OFFLINE = 0x4, + DFS_VOLUME_STATE_ONLINE = 0x8, + DFS_VOLUME_STATE_STANDALONE = DFS_VOLUME_FLAVOR_STANDALONE, + DFS_VOLUME_STATE_AD_BLOB = DFS_VOLUME_FLAVOR_AD_BLOB + } dfs_VolumeState; + typedef struct { [string,charset(UTF16)] uint16 *path; [string,charset(UTF16)] uint16 *comment; - uint32 state; + dfs_VolumeState state; uint32 num_stores; } dfs_Info2; @@ -78,7 +88,7 @@ typedef struct { [string,charset(UTF16)] uint16 *path; [string,charset(UTF16)] uint16 *comment; - uint32 state; + dfs_VolumeState state; uint32 num_stores; [size_is(num_stores)] dfs_StorageInfo *stores; } dfs_Info3; @@ -86,7 +96,7 @@ typedef struct { [string,charset(UTF16)] uint16 *path; [string,charset(UTF16)] uint16 *comment; - uint32 state; + dfs_VolumeState state; uint32 timeout; GUID guid; uint32 num_stores; @@ -105,7 +115,7 @@ typedef struct { [string,charset(UTF16)] uint16 *path; [string,charset(UTF16)] uint16 *comment; - uint32 state; + dfs_VolumeState state; uint32 timeout; GUID guid; dfs_PropertyFlags flags; @@ -136,7 +146,7 @@ typedef struct { [string,charset(UTF16)] uint16 *entry_path; [string,charset(UTF16)] uint16 *comment; - uint32 state; + dfs_VolumeState state; uint32 timeout; GUID guid; dfs_PropertyFlags flags; @@ -171,7 +181,7 @@ typedef struct { [string,charset(UTF16)] uint16 *comment; - uint32 state; + dfs_VolumeState state; uint32 timeout; uint32 property_flag_mask; uint32 property_flags; -- cgit