2006-09-16 02:49:27 +04:00
/*
* Unix SMB / CIFS implementation .
* client auto - generated by pidl . DO NOT MODIFY !
*/
# include "includes.h"
2008-12-16 18:32:18 +03:00
# include "../librpc/gen_ndr/cli_echo.h"
2006-09-16 02:49:27 +04:00
2008-01-09 13:59:11 +03:00
NTSTATUS rpccli_echo_AddOne ( struct rpc_pipe_client * cli ,
TALLOC_CTX * mem_ctx ,
2008-03-25 19:52:33 +03:00
uint32_t in_data /* [in] */ ,
uint32_t * out_data /* [out] [ref] */ )
2006-09-16 02:49:27 +04:00
{
struct echo_AddOne r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* In parameters */
r . in . in_data = in_data ;
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_IN_DEBUG ( echo_AddOne , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
status = cli_do_rpc_ndr ( cli ,
mem_ctx ,
& ndr_table_rpcecho ,
NDR_ECHO_ADDONE ,
& r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_OUT_DEBUG ( echo_AddOne , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return variables */
* out_data = * r . out . out_data ;
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return result */
return NT_STATUS_OK ;
}
2008-01-09 13:59:11 +03:00
NTSTATUS rpccli_echo_EchoData ( struct rpc_pipe_client * cli ,
TALLOC_CTX * mem_ctx ,
2008-03-25 19:52:33 +03:00
uint32_t len /* [in] */ ,
uint8_t * in_data /* [in] [size_is(len)] */ ,
uint8_t * out_data /* [out] [size_is(len)] */ )
2006-09-16 02:49:27 +04:00
{
struct echo_EchoData r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* In parameters */
r . in . len = len ;
r . in . in_data = in_data ;
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_IN_DEBUG ( echo_EchoData , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
status = cli_do_rpc_ndr ( cli ,
mem_ctx ,
& ndr_table_rpcecho ,
NDR_ECHO_ECHODATA ,
& r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_OUT_DEBUG ( echo_EchoData , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return variables */
2008-04-15 18:11:10 +04:00
memcpy ( out_data , r . out . out_data , r . in . len * sizeof ( * out_data ) ) ;
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return result */
return NT_STATUS_OK ;
}
2008-01-09 13:59:11 +03:00
NTSTATUS rpccli_echo_SinkData ( struct rpc_pipe_client * cli ,
TALLOC_CTX * mem_ctx ,
2008-03-25 19:52:33 +03:00
uint32_t len /* [in] */ ,
uint8_t * data /* [in] [size_is(len)] */ )
2006-09-16 02:49:27 +04:00
{
struct echo_SinkData r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* In parameters */
r . in . len = len ;
r . in . data = data ;
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_IN_DEBUG ( echo_SinkData , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
status = cli_do_rpc_ndr ( cli ,
mem_ctx ,
& ndr_table_rpcecho ,
NDR_ECHO_SINKDATA ,
& r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_OUT_DEBUG ( echo_SinkData , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return result */
return NT_STATUS_OK ;
}
2008-01-09 13:59:11 +03:00
NTSTATUS rpccli_echo_SourceData ( struct rpc_pipe_client * cli ,
TALLOC_CTX * mem_ctx ,
2008-03-25 19:52:33 +03:00
uint32_t len /* [in] */ ,
uint8_t * data /* [out] [size_is(len)] */ )
2006-09-16 02:49:27 +04:00
{
struct echo_SourceData r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* In parameters */
r . in . len = len ;
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_IN_DEBUG ( echo_SourceData , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
status = cli_do_rpc_ndr ( cli ,
mem_ctx ,
& ndr_table_rpcecho ,
NDR_ECHO_SOURCEDATA ,
& r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_OUT_DEBUG ( echo_SourceData , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return variables */
2008-04-15 18:11:10 +04:00
memcpy ( data , r . out . data , r . in . len * sizeof ( * data ) ) ;
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return result */
return NT_STATUS_OK ;
}
2008-01-09 13:59:11 +03:00
NTSTATUS rpccli_echo_TestCall ( struct rpc_pipe_client * cli ,
TALLOC_CTX * mem_ctx ,
2008-03-25 19:52:33 +03:00
const char * s1 /* [in] [ref,charset(UTF16)] */ ,
const char * * s2 /* [out] [ref,charset(UTF16)] */ )
2006-09-16 02:49:27 +04:00
{
struct echo_TestCall r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* In parameters */
r . in . s1 = s1 ;
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_IN_DEBUG ( echo_TestCall , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
status = cli_do_rpc_ndr ( cli ,
mem_ctx ,
& ndr_table_rpcecho ,
NDR_ECHO_TESTCALL ,
& r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_OUT_DEBUG ( echo_TestCall , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return variables */
* s2 = * r . out . s2 ;
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return result */
return NT_STATUS_OK ;
}
2008-01-09 13:59:11 +03:00
NTSTATUS rpccli_echo_TestCall2 ( struct rpc_pipe_client * cli ,
TALLOC_CTX * mem_ctx ,
2008-03-25 19:52:33 +03:00
uint16_t level /* [in] */ ,
union echo_Info * info /* [out] [ref,switch_is(level)] */ )
2006-09-16 02:49:27 +04:00
{
struct echo_TestCall2 r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* In parameters */
r . in . level = level ;
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_IN_DEBUG ( echo_TestCall2 , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
status = cli_do_rpc_ndr ( cli ,
mem_ctx ,
& ndr_table_rpcecho ,
NDR_ECHO_TESTCALL2 ,
& r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_OUT_DEBUG ( echo_TestCall2 , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return variables */
* info = * r . out . info ;
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return result */
return r . out . result ;
}
2008-01-09 13:59:11 +03:00
NTSTATUS rpccli_echo_TestSleep ( struct rpc_pipe_client * cli ,
TALLOC_CTX * mem_ctx ,
2008-03-25 19:52:33 +03:00
uint32_t seconds /* [in] */ )
2006-09-16 02:49:27 +04:00
{
struct echo_TestSleep r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* In parameters */
r . in . seconds = seconds ;
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_IN_DEBUG ( echo_TestSleep , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
status = cli_do_rpc_ndr ( cli ,
mem_ctx ,
& ndr_table_rpcecho ,
NDR_ECHO_TESTSLEEP ,
& r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_OUT_DEBUG ( echo_TestSleep , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return result */
return NT_STATUS_OK ;
}
2008-01-09 13:59:11 +03:00
NTSTATUS rpccli_echo_TestEnum ( struct rpc_pipe_client * cli ,
TALLOC_CTX * mem_ctx ,
2008-03-25 19:52:33 +03:00
enum echo_Enum1 * foo1 /* [in,out] [ref] */ ,
struct echo_Enum2 * foo2 /* [in,out] [ref] */ ,
union echo_Enum3 * foo3 /* [in,out] [ref,switch_is(*foo1)] */ )
2006-09-16 02:49:27 +04:00
{
struct echo_TestEnum r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* In parameters */
r . in . foo1 = foo1 ;
r . in . foo2 = foo2 ;
r . in . foo3 = foo3 ;
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_IN_DEBUG ( echo_TestEnum , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
status = cli_do_rpc_ndr ( cli ,
mem_ctx ,
& ndr_table_rpcecho ,
NDR_ECHO_TESTENUM ,
& r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_OUT_DEBUG ( echo_TestEnum , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return variables */
* foo1 = * r . out . foo1 ;
* foo2 = * r . out . foo2 ;
* foo3 = * r . out . foo3 ;
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return result */
return NT_STATUS_OK ;
}
2008-01-09 13:59:11 +03:00
NTSTATUS rpccli_echo_TestSurrounding ( struct rpc_pipe_client * cli ,
TALLOC_CTX * mem_ctx ,
2008-03-25 19:52:33 +03:00
struct echo_Surrounding * data /* [in,out] [ref] */ )
2006-09-16 02:49:27 +04:00
{
struct echo_TestSurrounding r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* In parameters */
r . in . data = data ;
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_IN_DEBUG ( echo_TestSurrounding , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
status = cli_do_rpc_ndr ( cli ,
mem_ctx ,
& ndr_table_rpcecho ,
NDR_ECHO_TESTSURROUNDING ,
& r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_OUT_DEBUG ( echo_TestSurrounding , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return variables */
* data = * r . out . data ;
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return result */
return NT_STATUS_OK ;
}
2008-01-09 13:59:11 +03:00
NTSTATUS rpccli_echo_TestDoublePointer ( struct rpc_pipe_client * cli ,
TALLOC_CTX * mem_ctx ,
2008-03-25 19:52:33 +03:00
uint16_t * * * data /* [in] [ref] */ )
2006-09-16 02:49:27 +04:00
{
struct echo_TestDoublePointer r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* In parameters */
r . in . data = data ;
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_IN_DEBUG ( echo_TestDoublePointer , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
status = cli_do_rpc_ndr ( cli ,
mem_ctx ,
& ndr_table_rpcecho ,
NDR_ECHO_TESTDOUBLEPOINTER ,
& r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2008-01-09 13:59:11 +03:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-20 02:39:15 +04:00
NDR_PRINT_OUT_DEBUG ( echo_TestDoublePointer , & r ) ;
2008-01-09 13:59:11 +03:00
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-16 02:49:27 +04:00
/* Return result */
return NT_STATUS_OK ;
}