r5672: Use switch_type() and the token storage mechanism for unions:
[samba.git] / source4 / librpc / idl / lsa.idl
index 8b20b6db903071f1d4b56d93fcbb670b0f9b91e3..68adcf1d9dc7e5f74e7f66ca929d2b0f2d841030 100644 (file)
                LSA_POLICY_INFO_DNS=12
        } lsaPolicyInfo;
 
-       typedef union {
+       typedef [switch_type(uint16)] union {
                [case(LSA_POLICY_INFO_AUDIT_LOG)]        lsa_AuditLogInfo       audit_log;
                [case(LSA_POLICY_INFO_AUDIT_EVENTS)]     lsa_AuditEventsInfo    audit_events;
                [case(LSA_POLICY_INFO_DOMAIN)]           lsa_DomainInfo         domain;
                lsa_TrustDomainInfoAuthInfo    auth_info;
        } lsa_TrustDomainInfoInfoAll;
 
-       typedef union {
+       typedef [switch_type(lsa_TrustDomInfoEnum)] union {
                [case(LSA_TRUSTED_DOMAIN_INFO_NAME)]         lsa_TrustDomainInfoName        name;
                [case(LSA_TRUSTED_DOMAIN_INFO_POSIX_OFFSET)] lsa_TrustDomainInfoPosixOffset posix_offset;
                [case(LSA_TRUSTED_DOMAIN_INFO_PASSWORD)]     lsa_TrustDomainInfoPassword    password;