summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/cli_initshutdown.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-16 15:59:06 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-12-16 15:59:06 +0100
commitca7e4ce97a39f1536047478388302c708d34d372 (patch)
treece1b9b68ce74394e4ead049f34caea86f2651433 /source3/librpc/gen_ndr/cli_initshutdown.c
parentb2a01ef5dd66618a130e2a1d4cc1d755ba3624a8 (diff)
downloadsamba-ca7e4ce97a39f1536047478388302c708d34d372.tar.gz
samba-ca7e4ce97a39f1536047478388302c708d34d372.tar.bz2
samba-ca7e4ce97a39f1536047478388302c708d34d372.zip
Move shared gen_ndr files to librpc/gen_ndr in the root.
At the moment these files are used just by Samba 3, but the next step will be using them from Samba 4 as well.
Diffstat (limited to 'source3/librpc/gen_ndr/cli_initshutdown.c')
-rw-r--r--source3/librpc/gen_ndr/cli_initshutdown.c155
1 files changed, 0 insertions, 155 deletions
diff --git a/source3/librpc/gen_ndr/cli_initshutdown.c b/source3/librpc/gen_ndr/cli_initshutdown.c
deleted file mode 100644
index bc8ca5b5f1..0000000000
--- a/source3/librpc/gen_ndr/cli_initshutdown.c
+++ /dev/null
@@ -1,155 +0,0 @@
-/*
- * Unix SMB/CIFS implementation.
- * client auto-generated by pidl. DO NOT MODIFY!
- */
-
-#include "includes.h"
-#include "librpc/gen_ndr/cli_initshutdown.h"
-
-NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli,
- TALLOC_CTX *mem_ctx,
- uint16_t *hostname /* [in] [unique] */,
- struct lsa_StringLarge *message /* [in] [unique] */,
- uint32_t timeout /* [in] */,
- uint8_t force_apps /* [in] */,
- uint8_t do_reboot /* [in] */,
- WERROR *werror)
-{
- struct initshutdown_Init r;
- NTSTATUS status;
-
- /* In parameters */
- r.in.hostname = hostname;
- r.in.message = message;
- r.in.timeout = timeout;
- r.in.force_apps = force_apps;
- r.in.do_reboot = do_reboot;
-
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(initshutdown_Init, &r);
- }
-
- status = cli_do_rpc_ndr(cli,
- mem_ctx,
- &ndr_table_initshutdown,
- NDR_INITSHUTDOWN_INIT,
- &r);
-
- if (!NT_STATUS_IS_OK(status)) {
- return status;
- }
-
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(initshutdown_Init, &r);
- }
-
- if (NT_STATUS_IS_ERR(status)) {
- return status;
- }
-
- /* Return variables */
-
- /* Return result */
- if (werror) {
- *werror = r.out.result;
- }
-
- return werror_to_ntstatus(r.out.result);
-}
-
-NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli,
- TALLOC_CTX *mem_ctx,
- uint16_t *server /* [in] [unique] */,
- WERROR *werror)
-{
- struct initshutdown_Abort r;
- NTSTATUS status;
-
- /* In parameters */
- r.in.server = server;
-
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(initshutdown_Abort, &r);
- }
-
- status = cli_do_rpc_ndr(cli,
- mem_ctx,
- &ndr_table_initshutdown,
- NDR_INITSHUTDOWN_ABORT,
- &r);
-
- if (!NT_STATUS_IS_OK(status)) {
- return status;
- }
-
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(initshutdown_Abort, &r);
- }
-
- if (NT_STATUS_IS_ERR(status)) {
- return status;
- }
-
- /* Return variables */
-
- /* Return result */
- if (werror) {
- *werror = r.out.result;
- }
-
- return werror_to_ntstatus(r.out.result);
-}
-
-NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli,
- TALLOC_CTX *mem_ctx,
- uint16_t *hostname /* [in] [unique] */,
- struct lsa_StringLarge *message /* [in] [unique] */,
- uint32_t timeout /* [in] */,
- uint8_t force_apps /* [in] */,
- uint8_t do_reboot /* [in] */,
- uint32_t reason /* [in] */,
- WERROR *werror)
-{
- struct initshutdown_InitEx r;
- NTSTATUS status;
-
- /* In parameters */
- r.in.hostname = hostname;
- r.in.message = message;
- r.in.timeout = timeout;
- r.in.force_apps = force_apps;
- r.in.do_reboot = do_reboot;
- r.in.reason = reason;
-
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(initshutdown_InitEx, &r);
- }
-
- status = cli_do_rpc_ndr(cli,
- mem_ctx,
- &ndr_table_initshutdown,
- NDR_INITSHUTDOWN_INITEX,
- &r);
-
- if (!NT_STATUS_IS_OK(status)) {
- return status;
- }
-
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(initshutdown_InitEx, &r);
- }
-
- if (NT_STATUS_IS_ERR(status)) {
- return status;
- }
-
- /* Return variables */
-
- /* Return result */
- if (werror) {
- *werror = r.out.result;
- }
-
- return werror_to_ntstatus(r.out.result);
-}
-