From 868555bca5fdc87d4e46df6e853c19e5d5f5f796 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 22 Nov 2003 22:53:08 +0000 Subject: added support for enumerated types in IDL files. This makes unions easier to work with. (This used to be commit 60be15d306e7b65efdd27df02250c0264996ccf3) --- source4/librpc/idl/samr.idl | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'source4/librpc/idl') 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( -- cgit