From e9438b4c12f135ca01d6e0c65e88176459570907 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Sat, 13 Feb 2010 04:53:20 +0200 Subject: [PATCH] s4/idl: drsuapi.idl fix drsuapi_DsReplicaSync definition - Function should accept pointer to drsuapi_DsReplicaSyncRequest. While this doesn't generate essentially different code for NDR parser, using pointer will make drsuapi_DsReplicaSync descritpin with the rest of the functions in DRSUAPI interface. Another benefit is that this way we could create Wireshark dissector directly from Samba's verions for drsuapi.idl - 'level' and thus the switch_type() should be uint32 --- librpc/idl/drsuapi.idl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/librpc/idl/drsuapi.idl b/librpc/idl/drsuapi.idl index b54b7a82a31..b74034634b5 100644 --- a/librpc/idl/drsuapi.idl +++ b/librpc/idl/drsuapi.idl @@ -228,14 +228,14 @@ interface drsuapi drsuapi_DrsOptions options; } drsuapi_DsReplicaSyncRequest1; - typedef [switch_type(int32)] union { + typedef [switch_type(uint32)] union { [case(1)] drsuapi_DsReplicaSyncRequest1 req1; } drsuapi_DsReplicaSyncRequest; WERROR drsuapi_DsReplicaSync( [in] policy_handle *bind_handle, - [in] int32 level, - [in,switch_is(level)] drsuapi_DsReplicaSyncRequest req + [in] uint32 level, + [in,switch_is(level)] drsuapi_DsReplicaSyncRequest *req ); /*****************/ -- 2.11.4.GIT