spoolss.idl: use spoolss_NotifyTable as switch_type for spoolss_NotifyData
authorStefan Metzmacher <metze@samba.org>
Mon, 4 Nov 2013 10:12:07 +0000 (11:12 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 4 Nov 2013 11:19:24 +0000 (12:19 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
librpc/idl/spoolss.idl

index e7fecfe2fb12e108984fbd9aa9fce922ee06191f..9bc80fdecadbba76e0ee11a2cd5e55c1217c8513 100644 (file)
@@ -2716,12 +2716,12 @@ cpp_quote("#define spoolss_security_descriptor security_descriptor")
                NOTIFY_TABLE_SECURITYDESCRIPTOR = 0x0005
        } spoolss_NotifyTable;
 
-       typedef [ms_union, switch_type(uint32)] union {
-               [case(1)] uint32 integer[2];
-               [case(2)] spoolss_NotifyString string;
-               [case(3)] spoolss_DevmodeContainer devmode;
-               [case(4)] spoolss_TimeCtr time;
-               [case(5)] sec_desc_buf sd;
+       typedef [ms_union, switch_type(spoolss_NotifyTable)] union {
+               [case(NOTIFY_TABLE_DWORD)] uint32 integer[2];
+               [case(NOTIFY_TABLE_STRING)] spoolss_NotifyString string;
+               [case(NOTIFY_TABLE_DEVMODE)] spoolss_DevmodeContainer devmode;
+               [case(NOTIFY_TABLE_TIME)] spoolss_TimeCtr time;
+               [case(NOTIFY_TABLE_SECURITYDESCRIPTOR)] sec_desc_buf sd;
        } spoolss_NotifyData;
 
        typedef struct {