From 7588a01cb6d387440d778e3bd77225b287cf48bc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 4 Jan 2005 23:27:12 +0000 Subject: r4520: added a enum test function to the echo pipe (This used to be commit f9e0aa1ab1faac039893db241819907c9c4bb510) --- source4/librpc/idl/echo.idl | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'source4/librpc') diff --git a/source4/librpc/idl/echo.idl b/source4/librpc/idl/echo.idl index 46a4d89478..f2d8960558 100644 --- a/source4/librpc/idl/echo.idl +++ b/source4/librpc/idl/echo.idl @@ -92,4 +92,30 @@ interface rpcecho uint32 echo_TestSleep( [in] uint32 seconds ); + + typedef enum { + ECHO_ENUM1 = 1, + ECHO_ENUM2 = 2 + } echo_Enum1; + + typedef [v1_enum] enum { + ECHO_ENUM1_32 = 1, + ECHO_ENUM2_32 = 2 + } echo_Enum1_32; + + typedef struct { + echo_Enum1 e1; + echo_Enum1_32 e2; + } echo_Enum2; + + typedef union { + [case(ECHO_ENUM1)] echo_Enum1 e1; + [case(ECHO_ENUM2)] echo_Enum2 e2; + } echo_Enum3; + + void echo_TestEnum( + [in,out,ref] echo_Enum1 *foo1, + [in,out,ref] echo_Enum2 *foo2, + [in,out,ref,switch_is(*foo1)] echo_Enum3 *foo3 + ); } -- cgit