source: branches/samba-3.0/source/include/rpc_shutdown.h

Last change on this file was 1, checked in by Paul Smedley, 18 years ago

Initial code import

File size: 1.9 KB
Line 
1/*
2 Unix SMB/CIFS implementation.
3
4 Copyright (C) Jim McDonough (jmcd@us.ibm.com) 2003.
5 Copyright (C) Gerald (Jerry) Carter 2005.
6
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.
11
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.
16
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.
20*/
21
22#ifndef _RPC_SHUTDOWN_H /* _RPC_SHUTDOWN_H */
23#define _RPC_SHUTDOWN_H
24
25
26/* opnums */
27
28#define SHUTDOWN_INIT 0x00
29#define SHUTDOWN_ABORT 0x01
30#define SHUTDOWN_INIT_EX 0x02
31
32
33/***********************************************/
34
35typedef 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;
42
43typedef struct {
44 WERROR status; /* return status */
45} SHUTDOWN_R_INIT;
46
47/***********************************************/
48
49typedef 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;
57
58typedef struct {
59 WERROR status;
60} SHUTDOWN_R_INIT_EX;
61
62/***********************************************/
63
64typedef struct {
65 uint16 *server;
66} SHUTDOWN_Q_ABORT;
67
68typedef struct {
69 WERROR status;
70} SHUTDOWN_R_ABORT;
71
72
73
74#endif /* _RPC_SHUTDOWN_H */
75
Note: See TracBrowser for help on using the repository browser.