2 * Unix SMB/CIFS implementation.
3 * client auto-generated by pidl. DO NOT MODIFY!
7 #include "../librpc/gen_ndr/cli_echo.h"
9 NTSTATUS
rpccli_echo_AddOne(struct rpc_pipe_client
*cli
,
11 uint32_t in_data
/* [in] */,
12 uint32_t *out_data
/* [out] [ref] */)
18 r
.in
.in_data
= in_data
;
20 if (DEBUGLEVEL
>= 10) {
21 NDR_PRINT_IN_DEBUG(echo_AddOne
, &r
);
24 status
= cli
->dispatch(cli
,
30 if (!NT_STATUS_IS_OK(status
)) {
34 if (DEBUGLEVEL
>= 10) {
35 NDR_PRINT_OUT_DEBUG(echo_AddOne
, &r
);
38 if (NT_STATUS_IS_ERR(status
)) {
42 /* Return variables */
43 *out_data
= *r
.out
.out_data
;
49 NTSTATUS
rpccli_echo_EchoData(struct rpc_pipe_client
*cli
,
51 uint32_t len
/* [in] */,
52 uint8_t *in_data
/* [in] [size_is(len)] */,
53 uint8_t *out_data
/* [out] [size_is(len)] */)
55 struct echo_EchoData r
;
60 r
.in
.in_data
= in_data
;
62 if (DEBUGLEVEL
>= 10) {
63 NDR_PRINT_IN_DEBUG(echo_EchoData
, &r
);
66 status
= cli
->dispatch(cli
,
72 if (!NT_STATUS_IS_OK(status
)) {
76 if (DEBUGLEVEL
>= 10) {
77 NDR_PRINT_OUT_DEBUG(echo_EchoData
, &r
);
80 if (NT_STATUS_IS_ERR(status
)) {
84 /* Return variables */
85 memcpy(out_data
, r
.out
.out_data
, r
.in
.len
* sizeof(*out_data
));
91 NTSTATUS
rpccli_echo_SinkData(struct rpc_pipe_client
*cli
,
93 uint32_t len
/* [in] */,
94 uint8_t *data
/* [in] [size_is(len)] */)
96 struct echo_SinkData r
;
103 if (DEBUGLEVEL
>= 10) {
104 NDR_PRINT_IN_DEBUG(echo_SinkData
, &r
);
107 status
= cli
->dispatch(cli
,
113 if (!NT_STATUS_IS_OK(status
)) {
117 if (DEBUGLEVEL
>= 10) {
118 NDR_PRINT_OUT_DEBUG(echo_SinkData
, &r
);
121 if (NT_STATUS_IS_ERR(status
)) {
125 /* Return variables */
131 NTSTATUS
rpccli_echo_SourceData(struct rpc_pipe_client
*cli
,
133 uint32_t len
/* [in] */,
134 uint8_t *data
/* [out] [size_is(len)] */)
136 struct echo_SourceData r
;
142 if (DEBUGLEVEL
>= 10) {
143 NDR_PRINT_IN_DEBUG(echo_SourceData
, &r
);
146 status
= cli
->dispatch(cli
,
152 if (!NT_STATUS_IS_OK(status
)) {
156 if (DEBUGLEVEL
>= 10) {
157 NDR_PRINT_OUT_DEBUG(echo_SourceData
, &r
);
160 if (NT_STATUS_IS_ERR(status
)) {
164 /* Return variables */
165 memcpy(data
, r
.out
.data
, r
.in
.len
* sizeof(*data
));
171 NTSTATUS
rpccli_echo_TestCall(struct rpc_pipe_client
*cli
,
173 const char *s1
/* [in] [ref,charset(UTF16)] */,
174 const char **s2
/* [out] [ref,charset(UTF16)] */)
176 struct echo_TestCall r
;
182 if (DEBUGLEVEL
>= 10) {
183 NDR_PRINT_IN_DEBUG(echo_TestCall
, &r
);
186 status
= cli
->dispatch(cli
,
192 if (!NT_STATUS_IS_OK(status
)) {
196 if (DEBUGLEVEL
>= 10) {
197 NDR_PRINT_OUT_DEBUG(echo_TestCall
, &r
);
200 if (NT_STATUS_IS_ERR(status
)) {
204 /* Return variables */
211 NTSTATUS
rpccli_echo_TestCall2(struct rpc_pipe_client
*cli
,
213 uint16_t level
/* [in] */,
214 union echo_Info
*info
/* [out] [ref,switch_is(level)] */)
216 struct echo_TestCall2 r
;
222 if (DEBUGLEVEL
>= 10) {
223 NDR_PRINT_IN_DEBUG(echo_TestCall2
, &r
);
226 status
= cli
->dispatch(cli
,
232 if (!NT_STATUS_IS_OK(status
)) {
236 if (DEBUGLEVEL
>= 10) {
237 NDR_PRINT_OUT_DEBUG(echo_TestCall2
, &r
);
240 if (NT_STATUS_IS_ERR(status
)) {
244 /* Return variables */
251 NTSTATUS
rpccli_echo_TestSleep(struct rpc_pipe_client
*cli
,
253 uint32_t seconds
/* [in] */)
255 struct echo_TestSleep r
;
259 r
.in
.seconds
= seconds
;
261 if (DEBUGLEVEL
>= 10) {
262 NDR_PRINT_IN_DEBUG(echo_TestSleep
, &r
);
265 status
= cli
->dispatch(cli
,
271 if (!NT_STATUS_IS_OK(status
)) {
275 if (DEBUGLEVEL
>= 10) {
276 NDR_PRINT_OUT_DEBUG(echo_TestSleep
, &r
);
279 if (NT_STATUS_IS_ERR(status
)) {
283 /* Return variables */
289 NTSTATUS
rpccli_echo_TestEnum(struct rpc_pipe_client
*cli
,
291 enum echo_Enum1
*foo1
/* [in,out] [ref] */,
292 struct echo_Enum2
*foo2
/* [in,out] [ref] */,
293 union echo_Enum3
*foo3
/* [in,out] [ref,switch_is(*foo1)] */)
295 struct echo_TestEnum r
;
303 if (DEBUGLEVEL
>= 10) {
304 NDR_PRINT_IN_DEBUG(echo_TestEnum
, &r
);
307 status
= cli
->dispatch(cli
,
313 if (!NT_STATUS_IS_OK(status
)) {
317 if (DEBUGLEVEL
>= 10) {
318 NDR_PRINT_OUT_DEBUG(echo_TestEnum
, &r
);
321 if (NT_STATUS_IS_ERR(status
)) {
325 /* Return variables */
334 NTSTATUS
rpccli_echo_TestSurrounding(struct rpc_pipe_client
*cli
,
336 struct echo_Surrounding
*data
/* [in,out] [ref] */)
338 struct echo_TestSurrounding r
;
344 if (DEBUGLEVEL
>= 10) {
345 NDR_PRINT_IN_DEBUG(echo_TestSurrounding
, &r
);
348 status
= cli
->dispatch(cli
,
351 NDR_ECHO_TESTSURROUNDING
,
354 if (!NT_STATUS_IS_OK(status
)) {
358 if (DEBUGLEVEL
>= 10) {
359 NDR_PRINT_OUT_DEBUG(echo_TestSurrounding
, &r
);
362 if (NT_STATUS_IS_ERR(status
)) {
366 /* Return variables */
373 NTSTATUS
rpccli_echo_TestDoublePointer(struct rpc_pipe_client
*cli
,
375 uint16_t ***data
/* [in] [ref] */)
377 struct echo_TestDoublePointer r
;
383 if (DEBUGLEVEL
>= 10) {
384 NDR_PRINT_IN_DEBUG(echo_TestDoublePointer
, &r
);
387 status
= cli
->dispatch(cli
,
390 NDR_ECHO_TESTDOUBLEPOINTER
,
393 if (!NT_STATUS_IS_OK(status
)) {
397 if (DEBUGLEVEL
>= 10) {
398 NDR_PRINT_OUT_DEBUG(echo_TestDoublePointer
, &r
);
401 if (NT_STATUS_IS_ERR(status
)) {
405 /* Return variables */