s3/libsmb: Fix typo in error message.
[Samba/gbeck.git] / librpc / gen_ndr / cli_initshutdown.c
blob3861e0c3e4637a63f537e3a08d856454ebe91208
1 /*
2 * Unix SMB/CIFS implementation.
3 * client auto-generated by pidl. DO NOT MODIFY!
4 */
6 #include "includes.h"
7 #include "../librpc/gen_ndr/cli_initshutdown.h"
9 NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli,
10 TALLOC_CTX *mem_ctx,
11 uint16_t *hostname /* [in] [unique] */,
12 struct lsa_StringLarge *message /* [in] [unique] */,
13 uint32_t timeout /* [in] */,
14 uint8_t force_apps /* [in] */,
15 uint8_t do_reboot /* [in] */,
16 WERROR *werror)
18 struct initshutdown_Init r;
19 NTSTATUS status;
21 /* In parameters */
22 r.in.hostname = hostname;
23 r.in.message = message;
24 r.in.timeout = timeout;
25 r.in.force_apps = force_apps;
26 r.in.do_reboot = do_reboot;
28 if (DEBUGLEVEL >= 10) {
29 NDR_PRINT_IN_DEBUG(initshutdown_Init, &r);
32 status = cli->dispatch(cli,
33 mem_ctx,
34 &ndr_table_initshutdown,
35 NDR_INITSHUTDOWN_INIT,
36 &r);
38 if (!NT_STATUS_IS_OK(status)) {
39 return status;
42 if (DEBUGLEVEL >= 10) {
43 NDR_PRINT_OUT_DEBUG(initshutdown_Init, &r);
46 if (NT_STATUS_IS_ERR(status)) {
47 return status;
50 /* Return variables */
52 /* Return result */
53 if (werror) {
54 *werror = r.out.result;
57 return werror_to_ntstatus(r.out.result);
60 NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli,
61 TALLOC_CTX *mem_ctx,
62 uint16_t *server /* [in] [unique] */,
63 WERROR *werror)
65 struct initshutdown_Abort r;
66 NTSTATUS status;
68 /* In parameters */
69 r.in.server = server;
71 if (DEBUGLEVEL >= 10) {
72 NDR_PRINT_IN_DEBUG(initshutdown_Abort, &r);
75 status = cli->dispatch(cli,
76 mem_ctx,
77 &ndr_table_initshutdown,
78 NDR_INITSHUTDOWN_ABORT,
79 &r);
81 if (!NT_STATUS_IS_OK(status)) {
82 return status;
85 if (DEBUGLEVEL >= 10) {
86 NDR_PRINT_OUT_DEBUG(initshutdown_Abort, &r);
89 if (NT_STATUS_IS_ERR(status)) {
90 return status;
93 /* Return variables */
95 /* Return result */
96 if (werror) {
97 *werror = r.out.result;
100 return werror_to_ntstatus(r.out.result);
103 NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli,
104 TALLOC_CTX *mem_ctx,
105 uint16_t *hostname /* [in] [unique] */,
106 struct lsa_StringLarge *message /* [in] [unique] */,
107 uint32_t timeout /* [in] */,
108 uint8_t force_apps /* [in] */,
109 uint8_t do_reboot /* [in] */,
110 uint32_t reason /* [in] */,
111 WERROR *werror)
113 struct initshutdown_InitEx r;
114 NTSTATUS status;
116 /* In parameters */
117 r.in.hostname = hostname;
118 r.in.message = message;
119 r.in.timeout = timeout;
120 r.in.force_apps = force_apps;
121 r.in.do_reboot = do_reboot;
122 r.in.reason = reason;
124 if (DEBUGLEVEL >= 10) {
125 NDR_PRINT_IN_DEBUG(initshutdown_InitEx, &r);
128 status = cli->dispatch(cli,
129 mem_ctx,
130 &ndr_table_initshutdown,
131 NDR_INITSHUTDOWN_INITEX,
132 &r);
134 if (!NT_STATUS_IS_OK(status)) {
135 return status;
138 if (DEBUGLEVEL >= 10) {
139 NDR_PRINT_OUT_DEBUG(initshutdown_InitEx, &r);
142 if (NT_STATUS_IS_ERR(status)) {
143 return status;
146 /* Return variables */
148 /* Return result */
149 if (werror) {
150 *werror = r.out.result;
153 return werror_to_ntstatus(r.out.result);