summaryrefslogtreecommitdiff
path: root/source4/librpc/idl
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-22 22:53:08 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-22 22:53:08 +0000
commit868555bca5fdc87d4e46df6e853c19e5d5f5f796 (patch)
treea2a0627062c1e77af1c5dee11ac305f0d2dbf41f /source4/librpc/idl
parente79e6bc4726dc96d553e245e34e94e39de7c2da3 (diff)
downloadsamba-868555bca5fdc87d4e46df6e853c19e5d5f5f796.tar.gz
samba-868555bca5fdc87d4e46df6e853c19e5d5f5f796.tar.bz2
samba-868555bca5fdc87d4e46df6e853c19e5d5f5f796.zip
added support for enumerated types in IDL files. This makes unions
easier to work with. (This used to be commit 60be15d306e7b65efdd27df02250c0264996ccf3)
Diffstat (limited to 'source4/librpc/idl')
-rw-r--r--source4/librpc/idl/samr.idl15
1 files changed, 11 insertions, 4 deletions
diff --git a/source4/librpc/idl/samr.idl b/source4/librpc/idl/samr.idl
index 8b349123fb..eb1d126227 100644
--- a/source4/librpc/idl/samr.idl
+++ b/source4/librpc/idl/samr.idl
@@ -341,11 +341,18 @@
samr_Name description;
} samr_GroupInfoDesciption;
+ typedef enum {
+ GroupInfoAll = 1,
+ GroupInfoName,
+ GroupInfoX,
+ GroupInfoDescription
+ } GroupInfo;
+
typedef union {
- [case(1)] samr_GroupInfoAll all;
- [case(2)] samr_GroupInfoName name;
- [case(3)] samr_GroupInfoX unknown;
- [case(4)] samr_GroupInfoDesciption description;
+ [case(GroupInfoAll)] samr_GroupInfoAll all;
+ [case(GroupInfoName)] samr_GroupInfoName name;
+ [case(GroupInfoX)] samr_GroupInfoX unknown;
+ [case(GroupInfoDescription)] samr_GroupInfoDesciption description;
} samr_GroupInfo;
NTSTATUS samr_QueryGroupInfo(