From e62c5c9a8dd1258b776d40918026a1be4b71fb72 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 17 Nov 2003 09:34:19 +0000 Subject: use [subcontext] to make GetPrinter a bit easier in smbtorture (This used to be commit a5140985d8f57695b4165c72af217092da6fae5f) --- source4/librpc/idl/echo.idl | 22 +--------------------- source4/librpc/idl/spoolss.idl | 8 ++------ 2 files changed, 3 insertions(+), 27 deletions(-) (limited to 'source4/librpc/idl') diff --git a/source4/librpc/idl/echo.idl b/source4/librpc/idl/echo.idl index f7c65485f8..f68bcf38c3 100644 --- a/source4/librpc/idl/echo.idl +++ b/source4/librpc/idl/echo.idl @@ -25,27 +25,7 @@ interface rpcecho [out,ref,size_is(len)] uint8 *data ); -#define int uint32 - - typedef struct { - int *count; - } echo_Enum1; - - typedef struct { - int *count; - } echo_Enum3; - - typedef union { - [case(1)] echo_Enum1 enum1; - [case(3)] echo_Enum3 enum3; - } echo_EnumInfo; - - typedef struct { - int level; - [switch_is(level)] echo_EnumInfo e; - } Struct1; - void TestCall ( - [out] Struct1 *s1 + [in] unistr *s ); } diff --git a/source4/librpc/idl/spoolss.idl b/source4/librpc/idl/spoolss.idl index 4800d8ff2a..f39c17c395 100644 --- a/source4/librpc/idl/spoolss.idl +++ b/source4/librpc/idl/spoolss.idl @@ -98,10 +98,6 @@ uint32 transmission_retry_timeout; } spoolss_PrinterInfo5; - typedef struct { - uint32 foo; - } spoolss_PrinterInfo6; - typedef struct { [relative] nstring guid; /* text form of printer guid */ uint32 action; @@ -113,7 +109,6 @@ case(3) spoolss_PrinterInfo3 info3; case(4) spoolss_PrinterInfo4 info4; case(5) spoolss_PrinterInfo5 info5; - case(6) spoolss_PrinterInfo6 info6; case(7) spoolss_PrinterInfo7 info7; } spoolss_PrinterInfo; @@ -178,7 +173,8 @@ WERROR spoolss_GetPrinter( [in,ref] policy_handle *handle, [in] uint32 level, - [in,out] DATA_BLOB *buffer, + [in] DATA_BLOB *buffer, + [out,subcontext,switch_is(level)] spoolss_PrinterInfo *info, [in,out,ref] uint32 *buf_size ); -- cgit