s4/idl: drsuapi.idl fix drsuapi_DsReplicaSync definition
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>
Sat, 13 Feb 2010 02:53:20 +0000 (04:53 +0200)
committerAnatoliy Atanasov <anatoliy.atanasov@postpath.com>
Wed, 24 Feb 2010 12:14:06 +0000 (14:14 +0200)
- 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

index b54b7a82a31cd6277d2d378b75d49bfb7b46f860..b74034634b54833d23058add137ac27aa4030071 100644 (file)
@@ -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
                );
 
        /*****************/