2006-09-15 18:32:43 +00:00
/*
* Unix SMB / CIFS implementation .
* client auto - generated by pidl . DO NOT MODIFY !
*/
# include "includes.h"
# include "librpc/gen_ndr/cli_initshutdown.h"
2008-01-09 11:59:11 +01:00
NTSTATUS rpccli_initshutdown_Init ( struct rpc_pipe_client * cli ,
TALLOC_CTX * mem_ctx ,
2008-03-25 17:52:33 +01:00
uint16_t * hostname /* [in] [unique] */ ,
2008-10-15 16:13:02 +02:00
struct lsa_StringLarge * message /* [in] [unique] */ ,
2008-03-25 17:52:33 +01:00
uint32_t timeout /* [in] */ ,
uint8_t force_apps /* [in] */ ,
2008-10-15 16:25:06 +02:00
uint8_t do_reboot /* [in] */ ,
2008-01-09 11:59:11 +01:00
WERROR * werror )
2006-09-15 18:32:43 +00:00
{
struct initshutdown_Init r ;
NTSTATUS status ;
2008-01-08 18:07:55 +01:00
2006-09-15 18:32:43 +00:00
/* In parameters */
r . in . hostname = hostname ;
r . in . message = message ;
r . in . timeout = timeout ;
r . in . force_apps = force_apps ;
2008-10-15 16:25:06 +02:00
r . in . do_reboot = do_reboot ;
2008-01-08 18:07:55 +01:00
2008-01-09 11:59:11 +01:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-19 22:39:15 +00:00
NDR_PRINT_IN_DEBUG ( initshutdown_Init , & r ) ;
2008-01-09 11:59:11 +01:00
}
2008-01-08 18:07:55 +01:00
2008-01-09 11:59:11 +01:00
status = cli_do_rpc_ndr ( cli ,
mem_ctx ,
& ndr_table_initshutdown ,
NDR_INITSHUTDOWN_INIT ,
& r ) ;
2008-01-08 18:07:55 +01:00
2007-02-16 14:50:57 +00:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-28 21:19:08 +00:00
return status ;
}
2008-01-08 18:07:55 +01:00
2008-01-09 11:59:11 +01:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-19 22:39:15 +00:00
NDR_PRINT_OUT_DEBUG ( initshutdown_Init , & r ) ;
2008-01-09 11:59:11 +01:00
}
2008-01-08 18:07:55 +01:00
2006-09-15 18:32:43 +00:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 18:07:55 +01:00
2006-09-15 18:32:43 +00:00
/* Return variables */
2008-01-08 18:07:55 +01:00
2006-09-15 18:32:43 +00:00
/* Return result */
2007-12-03 18:19:20 +01:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 18:07:55 +01:00
2006-09-15 18:32:43 +00:00
return werror_to_ntstatus ( r . out . result ) ;
}
2008-01-09 11:59:11 +01:00
NTSTATUS rpccli_initshutdown_Abort ( struct rpc_pipe_client * cli ,
TALLOC_CTX * mem_ctx ,
2008-03-25 17:52:33 +01:00
uint16_t * server /* [in] [unique] */ ,
2008-01-09 11:59:11 +01:00
WERROR * werror )
2006-09-15 18:32:43 +00:00
{
struct initshutdown_Abort r ;
NTSTATUS status ;
2008-01-08 18:07:55 +01:00
2006-09-15 18:32:43 +00:00
/* In parameters */
r . in . server = server ;
2008-01-08 18:07:55 +01:00
2008-01-09 11:59:11 +01:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-19 22:39:15 +00:00
NDR_PRINT_IN_DEBUG ( initshutdown_Abort , & r ) ;
2008-01-09 11:59:11 +01:00
}
2008-01-08 18:07:55 +01:00
2008-01-09 11:59:11 +01:00
status = cli_do_rpc_ndr ( cli ,
mem_ctx ,
& ndr_table_initshutdown ,
NDR_INITSHUTDOWN_ABORT ,
& r ) ;
2008-01-08 18:07:55 +01:00
2007-02-16 14:50:57 +00:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-28 21:19:08 +00:00
return status ;
}
2008-01-08 18:07:55 +01:00
2008-01-09 11:59:11 +01:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-19 22:39:15 +00:00
NDR_PRINT_OUT_DEBUG ( initshutdown_Abort , & r ) ;
2008-01-09 11:59:11 +01:00
}
2008-01-08 18:07:55 +01:00
2006-09-15 18:32:43 +00:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 18:07:55 +01:00
2006-09-15 18:32:43 +00:00
/* Return variables */
2008-01-08 18:07:55 +01:00
2006-09-15 18:32:43 +00:00
/* Return result */
2007-12-03 18:19:20 +01:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 18:07:55 +01:00
2006-09-15 18:32:43 +00:00
return werror_to_ntstatus ( r . out . result ) ;
}
2008-01-09 11:59:11 +01:00
NTSTATUS rpccli_initshutdown_InitEx ( struct rpc_pipe_client * cli ,
TALLOC_CTX * mem_ctx ,
2008-03-25 17:52:33 +01:00
uint16_t * hostname /* [in] [unique] */ ,
2008-10-15 16:13:02 +02:00
struct lsa_StringLarge * message /* [in] [unique] */ ,
2008-03-25 17:52:33 +01:00
uint32_t timeout /* [in] */ ,
uint8_t force_apps /* [in] */ ,
2008-10-15 16:25:06 +02:00
uint8_t do_reboot /* [in] */ ,
2008-03-25 17:52:33 +01:00
uint32_t reason /* [in] */ ,
2008-01-09 11:59:11 +01:00
WERROR * werror )
2006-09-15 18:32:43 +00:00
{
struct initshutdown_InitEx r ;
NTSTATUS status ;
2008-01-08 18:07:55 +01:00
2006-09-15 18:32:43 +00:00
/* In parameters */
r . in . hostname = hostname ;
r . in . message = message ;
r . in . timeout = timeout ;
r . in . force_apps = force_apps ;
2008-10-15 16:25:06 +02:00
r . in . do_reboot = do_reboot ;
2006-09-15 18:32:43 +00:00
r . in . reason = reason ;
2008-01-08 18:07:55 +01:00
2008-01-09 11:59:11 +01:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-19 22:39:15 +00:00
NDR_PRINT_IN_DEBUG ( initshutdown_InitEx , & r ) ;
2008-01-09 11:59:11 +01:00
}
2008-01-08 18:07:55 +01:00
2008-01-09 11:59:11 +01:00
status = cli_do_rpc_ndr ( cli ,
mem_ctx ,
& ndr_table_initshutdown ,
NDR_INITSHUTDOWN_INITEX ,
& r ) ;
2008-01-08 18:07:55 +01:00
2007-02-16 14:50:57 +00:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-28 21:19:08 +00:00
return status ;
}
2008-01-08 18:07:55 +01:00
2008-01-09 11:59:11 +01:00
if ( DEBUGLEVEL > = 10 ) {
2006-09-19 22:39:15 +00:00
NDR_PRINT_OUT_DEBUG ( initshutdown_InitEx , & r ) ;
2008-01-09 11:59:11 +01:00
}
2008-01-08 18:07:55 +01:00
2006-09-15 18:32:43 +00:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 18:07:55 +01:00
2006-09-15 18:32:43 +00:00
/* Return variables */
2008-01-08 18:07:55 +01:00
2006-09-15 18:32:43 +00:00
/* Return result */
2007-12-03 18:19:20 +01:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 18:07:55 +01:00
2006-09-15 18:32:43 +00:00
return werror_to_ntstatus ( r . out . result ) ;
}