r5672: Use switch_type() and the token storage mechanism for unions:
[samba.git] / source4 / librpc / idl / echo.idl
index e7a2571235e85bcd9d08890d9e56075680eb1f49..86e16763c2bea7d2e97b657426a50db314026d7e 100644 (file)
@@ -75,7 +75,7 @@ interface rpcecho
                echo_info4 info4;
        } echo_info7;
 
-       typedef union {
+       typedef [switch_type(uint16)] union {
                [case(1)]  echo_info1 info1;
                [case(2)]  echo_info2 info2;
                [case(3)]  echo_info3 info3;
@@ -109,7 +109,7 @@ interface rpcecho
                echo_Enum1_32 e2;
        } echo_Enum2;
 
-       typedef union {
+       typedef [switch_type(echo_Enum1)] union {
                [case(ECHO_ENUM1)] echo_Enum1 e1;
                [case(ECHO_ENUM2)] echo_Enum2 e2;
        } echo_Enum3;