r5672: Use switch_type() and the token storage mechanism for unions:
[samba.git] / source4 / librpc / idl / xattr.idl
index 84d055ea886bf0464101d4a5b5a5c5fa9e731bbd..4aa92ca5b2d00d40e1f8a5b945ccd6dae0e2577a 100644 (file)
@@ -44,7 +44,7 @@ interface xattr
                utf8string name;       /* will be used for case-insensitive speedup */
        } xattr_DosInfo2;
 
-       typedef union {
+       typedef [switch_type(uint16)] union {
                [case(1)] xattr_DosInfo1 info1;
                [case(2)] xattr_DosInfo2 info2;
        } xattr_DosInfo;
@@ -102,7 +102,7 @@ interface xattr
        */
        const string XATTR_NTACL_NAME = "security.NTACL";
 
-       typedef union {
+       typedef [switch_type(uint16)] union {
                [case(1)] security_descriptor *sd;
        } xattr_NTACL_Info;