diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-01-04 23:27:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:08:17 -0500 |
commit | 7588a01cb6d387440d778e3bd77225b287cf48bc (patch) | |
tree | 9b69ed4a4847d6a28ceaa4568ae034f3eba434db /source4/librpc | |
parent | 8448dd6ea0c706e0d5ec5d8773939aa188b62904 (diff) | |
download | samba-7588a01cb6d387440d778e3bd77225b287cf48bc.tar.gz samba-7588a01cb6d387440d778e3bd77225b287cf48bc.tar.bz2 samba-7588a01cb6d387440d778e3bd77225b287cf48bc.zip |
r4520: added a enum test function to the echo pipe
(This used to be commit f9e0aa1ab1faac039893db241819907c9c4bb510)
Diffstat (limited to 'source4/librpc')
-rw-r--r-- | source4/librpc/idl/echo.idl | 26 |
1 files changed, 26 insertions, 0 deletions
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 + ); } |