Re-run make idl.
authorGünther Deschner <gd@samba.org>
Sun, 17 Feb 2008 22:44:50 +0000 (23:44 +0100)
committerGünther Deschner <gd@samba.org>
Sun, 17 Feb 2008 22:45:02 +0000 (23:45 +0100)
Guenther

source/librpc/gen_ndr/cli_ntsvcs.c
source/librpc/gen_ndr/cli_ntsvcs.h
source/librpc/gen_ndr/ndr_ntsvcs.c
source/librpc/gen_ndr/ntsvcs.h

index da43d451e626b02829cedd87421b3a80bcbfd6a6..c21910c95bcb41d73f6f71721de5042b7aae3c4c 100644 (file)
@@ -262,12 +262,16 @@ NTSTATUS rpccli_PNP_ReportLogOn(struct rpc_pipe_client *cli,
 
 NTSTATUS rpccli_PNP_ValidateDeviceInstance(struct rpc_pipe_client *cli,
                                           TALLOC_CTX *mem_ctx,
+                                          const char *devicepath,
+                                          uint32_t flags,
                                           WERROR *werror)
 {
        struct PNP_ValidateDeviceInstance r;
        NTSTATUS status;
 
        /* In parameters */
+       r.in.devicepath = devicepath;
+       r.in.flags = flags;
 
        if (DEBUGLEVEL >= 10) {
                NDR_PRINT_IN_DEBUG(PNP_ValidateDeviceInstance, &r);
index 852cc812e9b6f969b7b3fb2dd1c1e4c22de34b63..666ea9bac8b25d88fd147d9cd90faaa55f79fed8 100644 (file)
@@ -22,6 +22,8 @@ NTSTATUS rpccli_PNP_ReportLogOn(struct rpc_pipe_client *cli,
                                WERROR *werror);
 NTSTATUS rpccli_PNP_ValidateDeviceInstance(struct rpc_pipe_client *cli,
                                           TALLOC_CTX *mem_ctx,
+                                          const char *devicepath,
+                                          uint32_t flags,
                                           WERROR *werror);
 NTSTATUS rpccli_PNP_GetRootDeviceInstance(struct rpc_pipe_client *cli,
                                          TALLOC_CTX *mem_ctx,
index 73dd4d346c588096651e4607c879a18409483d95..be553199473d5a45d467d570c301515b47332f75 100644 (file)
@@ -272,6 +272,14 @@ _PUBLIC_ void ndr_print_PNP_ReportLogOn(struct ndr_print *ndr, const char *name,
 static enum ndr_err_code ndr_push_PNP_ValidateDeviceInstance(struct ndr_push *ndr, int flags, const struct PNP_ValidateDeviceInstance *r)
 {
        if (flags & NDR_IN) {
+               if (r->in.devicepath == NULL) {
+                       return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
+               }
+               NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_charset_length(r->in.devicepath, CH_UTF16)));
+               NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
+               NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_charset_length(r->in.devicepath, CH_UTF16)));
+               NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.devicepath, ndr_charset_length(r->in.devicepath, CH_UTF16), sizeof(uint16_t), CH_UTF16));
+               NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.flags));
        }
        if (flags & NDR_OUT) {
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
@@ -282,6 +290,14 @@ static enum ndr_err_code ndr_push_PNP_ValidateDeviceInstance(struct ndr_push *nd
 static enum ndr_err_code ndr_pull_PNP_ValidateDeviceInstance(struct ndr_pull *ndr, int flags, struct PNP_ValidateDeviceInstance *r)
 {
        if (flags & NDR_IN) {
+               NDR_CHECK(ndr_pull_array_size(ndr, &r->in.devicepath));
+               NDR_CHECK(ndr_pull_array_length(ndr, &r->in.devicepath));
+               if (ndr_get_array_length(ndr, &r->in.devicepath) > ndr_get_array_size(ndr, &r->in.devicepath)) {
+                       return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->in.devicepath), ndr_get_array_length(ndr, &r->in.devicepath));
+               }
+               NDR_CHECK(ndr_check_string_terminator(ndr, ndr_get_array_length(ndr, &r->in.devicepath), sizeof(uint16_t)));
+               NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.devicepath, ndr_get_array_length(ndr, &r->in.devicepath), sizeof(uint16_t), CH_UTF16));
+               NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.flags));
        }
        if (flags & NDR_OUT) {
                NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
@@ -299,6 +315,11 @@ _PUBLIC_ void ndr_print_PNP_ValidateDeviceInstance(struct ndr_print *ndr, const
        if (flags & NDR_IN) {
                ndr_print_struct(ndr, "in", "PNP_ValidateDeviceInstance");
                ndr->depth++;
+               ndr_print_ptr(ndr, "devicepath", r->in.devicepath);
+               ndr->depth++;
+               ndr_print_string(ndr, "devicepath", r->in.devicepath);
+               ndr->depth--;
+               ndr_print_uint32(ndr, "flags", r->in.flags);
                ndr->depth--;
        }
        if (flags & NDR_OUT) {
index 571b7466c2aa9c624f48e06b1d8a2fb0ea97730d..477d6adf7f94e053f4cb79e3d12e72393f5f923b 100644 (file)
@@ -56,6 +56,11 @@ struct PNP_ReportLogOn {
 
 
 struct PNP_ValidateDeviceInstance {
+       struct {
+               const char *devicepath;/* [ref,charset(UTF16)] */
+               uint32_t flags;
+       } in;
+
        struct {
                WERROR result;
        } out;