r5672: Use switch_type() and the token storage mechanism for unions:
[samba.git] / source4 / librpc / idl / dssetup.idl
index 9a4fcafcccb8a813b5dac45f441b57d4b11d7031..098a14890497dfe685e6857f939840da9a8cca2a 100644 (file)
@@ -72,7 +72,7 @@
                DS_ROLE_OP_STATUS               = 3
        } dssetup_DsRoleInfoLevel;
 
-       typedef union {
+       typedef [switch_type(dssetup_DsRoleInfoLevel)] union {
                [case(DS_ROLE_BASIC_INFORMATION)] dssetup_DsRolePrimaryDomInfoBasic     basic;
                [case(DS_ROLE_UPGRADE_STATUS)]    dssetup_DsRoleUpgradeStatus           upgrade;
                [case(DS_ROLE_OP_STATUS)]         dssetup_DsRoleOpStatus                opstatus;