r18962: * Add IDL for SaveKey() and RestoreKey() and regenerated
[Samba.git] / source3 / include / rpc_shutdown.h
bloba9d86aec26c1bb33fcfd38fc7f8beaf8981dd2d3
1 /*
2 Unix SMB/CIFS implementation.
4 Copyright (C) Jim McDonough (jmcd@us.ibm.com) 2003.
5 Copyright (C) Gerald (Jerry) Carter 2005.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef _RPC_SHUTDOWN_H /* _RPC_SHUTDOWN_H */
23 #define _RPC_SHUTDOWN_H
26 /* opnums */
28 #define SHUTDOWN_INIT 0x00
29 #define SHUTDOWN_ABORT 0x01
30 #define SHUTDOWN_INIT_EX 0x02
33 /***********************************************/
35 typedef struct {
36 uint16 *server;
37 UNISTR4 *message;
38 uint32 timeout; /* in seconds */
39 uint8 force; /* boolean: force shutdown */
40 uint8 reboot; /* boolean: reboot on shutdown */
41 } SHUTDOWN_Q_INIT;
43 typedef struct {
44 WERROR status; /* return status */
45 } SHUTDOWN_R_INIT;
47 /***********************************************/
49 typedef struct {
50 uint16 *server;
51 UNISTR4 *message;
52 uint32 timeout; /* in seconds */
53 uint8 force; /* boolean: force shutdown */
54 uint8 reboot; /* boolean: reboot on shutdown */
55 uint32 reason; /* reason - must be defined code */
56 } SHUTDOWN_Q_INIT_EX;
58 typedef struct {
59 WERROR status;
60 } SHUTDOWN_R_INIT_EX;
62 /***********************************************/
64 typedef struct {
65 uint16 *server;
66 } SHUTDOWN_Q_ABORT;
68 typedef struct {
69 WERROR status;
70 } SHUTDOWN_R_ABORT;
74 #endif /* _RPC_SHUTDOWN_H */