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
, TALLOC_CTX
*mem_ctx
, uint32_t in_data
, uint32_t *out_data
)
15 r
.in
.in_data
= in_data
;
18 NDR_PRINT_IN_DEBUG(echo_AddOne
, &r
);
20 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_RPCECHO
, DCERPC_ECHO_ADDONE
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_echo_AddOne
, (ndr_push_flags_fn_t
)ndr_push_echo_AddOne
);
22 if (!NT_STATUS_IS_OK(status
)) {
27 NDR_PRINT_OUT_DEBUG(echo_AddOne
, &r
);
29 if (NT_STATUS_IS_ERR(status
)) {
33 /* Return variables */
34 *out_data
= *r
.out
.out_data
;
40 NTSTATUS
rpccli_echo_EchoData(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, uint32_t len
, uint8_t *in_data
, uint8_t *out_data
)
42 struct echo_EchoData r
;
47 r
.in
.in_data
= in_data
;
50 NDR_PRINT_IN_DEBUG(echo_EchoData
, &r
);
52 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_RPCECHO
, DCERPC_ECHO_ECHODATA
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_echo_EchoData
, (ndr_push_flags_fn_t
)ndr_push_echo_EchoData
);
54 if (!NT_STATUS_IS_OK(status
)) {
59 NDR_PRINT_OUT_DEBUG(echo_EchoData
, &r
);
61 if (NT_STATUS_IS_ERR(status
)) {
65 /* Return variables */
66 memcpy(out_data
, r
.out
.out_data
, r
.in
.len
);
72 NTSTATUS
rpccli_echo_SinkData(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, uint32_t len
, uint8_t *data
)
74 struct echo_SinkData r
;
82 NDR_PRINT_IN_DEBUG(echo_SinkData
, &r
);
84 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_RPCECHO
, DCERPC_ECHO_SINKDATA
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_echo_SinkData
, (ndr_push_flags_fn_t
)ndr_push_echo_SinkData
);
86 if (!NT_STATUS_IS_OK(status
)) {
91 NDR_PRINT_OUT_DEBUG(echo_SinkData
, &r
);
93 if (NT_STATUS_IS_ERR(status
)) {
97 /* Return variables */
103 NTSTATUS
rpccli_echo_SourceData(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, uint32_t len
, uint8_t *data
)
105 struct echo_SourceData r
;
111 if (DEBUGLEVEL
>= 10)
112 NDR_PRINT_IN_DEBUG(echo_SourceData
, &r
);
114 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_RPCECHO
, DCERPC_ECHO_SOURCEDATA
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_echo_SourceData
, (ndr_push_flags_fn_t
)ndr_push_echo_SourceData
);
116 if (!NT_STATUS_IS_OK(status
)) {
120 if (DEBUGLEVEL
>= 10)
121 NDR_PRINT_OUT_DEBUG(echo_SourceData
, &r
);
123 if (NT_STATUS_IS_ERR(status
)) {
127 /* Return variables */
128 memcpy(data
, r
.out
.data
, r
.in
.len
);
134 NTSTATUS
rpccli_echo_TestCall(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, const char *s1
, const char **s2
)
136 struct echo_TestCall r
;
142 if (DEBUGLEVEL
>= 10)
143 NDR_PRINT_IN_DEBUG(echo_TestCall
, &r
);
145 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_RPCECHO
, DCERPC_ECHO_TESTCALL
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_echo_TestCall
, (ndr_push_flags_fn_t
)ndr_push_echo_TestCall
);
147 if (!NT_STATUS_IS_OK(status
)) {
151 if (DEBUGLEVEL
>= 10)
152 NDR_PRINT_OUT_DEBUG(echo_TestCall
, &r
);
154 if (NT_STATUS_IS_ERR(status
)) {
158 /* Return variables */
165 NTSTATUS
rpccli_echo_TestCall2(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, uint16_t level
, union echo_Info
*info
)
167 struct echo_TestCall2 r
;
173 if (DEBUGLEVEL
>= 10)
174 NDR_PRINT_IN_DEBUG(echo_TestCall2
, &r
);
176 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_RPCECHO
, DCERPC_ECHO_TESTCALL2
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_echo_TestCall2
, (ndr_push_flags_fn_t
)ndr_push_echo_TestCall2
);
178 if (!NT_STATUS_IS_OK(status
)) {
182 if (DEBUGLEVEL
>= 10)
183 NDR_PRINT_OUT_DEBUG(echo_TestCall2
, &r
);
185 if (NT_STATUS_IS_ERR(status
)) {
189 /* Return variables */
196 NTSTATUS
rpccli_echo_TestSleep(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, uint32_t seconds
)
198 struct echo_TestSleep r
;
202 r
.in
.seconds
= seconds
;
204 if (DEBUGLEVEL
>= 10)
205 NDR_PRINT_IN_DEBUG(echo_TestSleep
, &r
);
207 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_RPCECHO
, DCERPC_ECHO_TESTSLEEP
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_echo_TestSleep
, (ndr_push_flags_fn_t
)ndr_push_echo_TestSleep
);
209 if (!NT_STATUS_IS_OK(status
)) {
213 if (DEBUGLEVEL
>= 10)
214 NDR_PRINT_OUT_DEBUG(echo_TestSleep
, &r
);
216 if (NT_STATUS_IS_ERR(status
)) {
220 /* Return variables */
226 NTSTATUS
rpccli_echo_TestEnum(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, enum echo_Enum1
*foo1
, struct echo_Enum2
*foo2
, union echo_Enum3
*foo3
)
228 struct echo_TestEnum r
;
236 if (DEBUGLEVEL
>= 10)
237 NDR_PRINT_IN_DEBUG(echo_TestEnum
, &r
);
239 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_RPCECHO
, DCERPC_ECHO_TESTENUM
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_echo_TestEnum
, (ndr_push_flags_fn_t
)ndr_push_echo_TestEnum
);
241 if (!NT_STATUS_IS_OK(status
)) {
245 if (DEBUGLEVEL
>= 10)
246 NDR_PRINT_OUT_DEBUG(echo_TestEnum
, &r
);
248 if (NT_STATUS_IS_ERR(status
)) {
252 /* Return variables */
261 NTSTATUS
rpccli_echo_TestSurrounding(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, struct echo_Surrounding
*data
)
263 struct echo_TestSurrounding r
;
269 if (DEBUGLEVEL
>= 10)
270 NDR_PRINT_IN_DEBUG(echo_TestSurrounding
, &r
);
272 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_RPCECHO
, DCERPC_ECHO_TESTSURROUNDING
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_echo_TestSurrounding
, (ndr_push_flags_fn_t
)ndr_push_echo_TestSurrounding
);
274 if (!NT_STATUS_IS_OK(status
)) {
278 if (DEBUGLEVEL
>= 10)
279 NDR_PRINT_OUT_DEBUG(echo_TestSurrounding
, &r
);
281 if (NT_STATUS_IS_ERR(status
)) {
285 /* Return variables */
292 NTSTATUS
rpccli_echo_TestDoublePointer(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, uint16_t ***data
)
294 struct echo_TestDoublePointer r
;
300 if (DEBUGLEVEL
>= 10)
301 NDR_PRINT_IN_DEBUG(echo_TestDoublePointer
, &r
);
303 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_RPCECHO
, DCERPC_ECHO_TESTDOUBLEPOINTER
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_echo_TestDoublePointer
, (ndr_push_flags_fn_t
)ndr_push_echo_TestDoublePointer
);
305 if (!NT_STATUS_IS_OK(status
)) {
309 if (DEBUGLEVEL
>= 10)
310 NDR_PRINT_OUT_DEBUG(echo_TestDoublePointer
, &r
);
312 if (NT_STATUS_IS_ERR(status
)) {
316 /* Return variables */