clusapi: add clusapi_CreateResourceFlags to IDL and torture test.
authorGünther Deschner <gd@samba.org>
Thu, 5 Mar 2015 11:04:02 +0000 (12:04 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 13 Mar 2015 22:58:08 +0000 (23:58 +0100)
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
librpc/idl/clusapi.idl
source4/torture/rpc/clusapi.c

index 325baad7c9f160c5679cbf07fe049c9ddc85bbe3..707762642cca9f2d001553fd88362873f6e09723 100644 (file)
@@ -229,13 +229,18 @@ import "security.idl";
        /*****************/
        /* Function 0x09 */
 
+       typedef [v1_enum] enum {
+               CLUSTER_RESOURCE_DEFAULT_MONITOR        = 0x00000000,
+               CLUSTER_RESOURCE_SEPARATE_MONITOR       = 0x00000001
+       } clusapi_CreateResourceFlags;
+
 #if 0
        HRES_RPC
        clusapi_CreateResource(
                [ in ] HGROUP_RPC hGroup,
                [ in, string ] [charset(UTF16)] uint16 *lpszResourceName,
                [ in, string ] [charset(UTF16)] uint16 *lpszResourceType,
-               [ in ] uint32 dwFlags,
+               [ in ] clusapi_CreateResourceFlags dwFlags,
                [ out ] WERROR *Status,
                [ out ] WERROR *rpc_status
        );
@@ -245,7 +250,7 @@ import "security.idl";
                [ in ] HGROUP_RPC hGroup,
                [ in, string ] [charset(UTF16)] uint16 *lpszResourceName,
                [ in, string ] [charset(UTF16)] uint16 *lpszResourceType,
-               [ in ] uint32 dwFlags,
+               [ in ] clusapi_CreateResourceFlags dwFlags,
                [ out ] WERROR *Status,
                [ out ] WERROR *rpc_status,
                [ out ] HRES_RPC *hResource
index 9875f97ce0cdf1c9dc208a92b8e6de7ddfa52ec2..4f469d1885e1477bf3091e51721590404d92ec15 100644 (file)
@@ -389,7 +389,7 @@ static bool test_CreateResource_int(struct torture_context *tctx,
        r.in.hGroup = hGroup;
        r.in.lpszResourceName = lpszResourceName;
        r.in.lpszResourceType = lpszResourceType;
-       r.in.dwFlags = 0; /* FIXME */
+       r.in.dwFlags = CLUSTER_RESOURCE_DEFAULT_MONITOR;
        r.out.rpc_status = &rpc_status;
        r.out.Status = &Status;
        r.out.hResource = hResource;