diff options
author | Günther Deschner <gd@samba.org> | 2007-12-03 18:19:20 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2007-12-03 18:43:19 +0100 |
commit | 298b0ce951f02705c5660a4171f7cc208de7a1db (patch) | |
tree | 8fc5fd8ec3be1eec21fed4b676dc2f1463e7d69c /source/librpc/gen_ndr/cli_initshutdown.c | |
parent | a3fbb5323222334c86c0dc360df8c6a39039bbe6 (diff) | |
download | samba-298b0ce951f02705c5660a4171f7cc208de7a1db.tar.gz samba-298b0ce951f02705c5660a4171f7cc208de7a1db.tar.xz samba-298b0ce951f02705c5660a4171f7cc208de7a1db.zip |
Regenerate pidl rpc client calls that are WERROR based.
Guenther
Diffstat (limited to 'source/librpc/gen_ndr/cli_initshutdown.c')
-rw-r--r-- | source/librpc/gen_ndr/cli_initshutdown.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/source/librpc/gen_ndr/cli_initshutdown.c b/source/librpc/gen_ndr/cli_initshutdown.c index 4e6647dac50..57c5e60226b 100644 --- a/source/librpc/gen_ndr/cli_initshutdown.c +++ b/source/librpc/gen_ndr/cli_initshutdown.c @@ -6,7 +6,7 @@ #include "includes.h" #include "librpc/gen_ndr/cli_initshutdown.h" -NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot) +NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, WERROR *werror) { struct initshutdown_Init r; NTSTATUS status; @@ -37,10 +37,14 @@ NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *server) +NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *server, WERROR *werror) { struct initshutdown_Abort r; NTSTATUS status; @@ -67,10 +71,14 @@ NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, uint32_t reason) +NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, uint32_t reason, WERROR *werror) { struct initshutdown_InitEx r; NTSTATUS status; @@ -102,6 +110,10 @@ NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } |