packaging(RHEL-CTDB): package the manpage of "ldbrename"
[Samba.git] / source3 / include / services.h
blobf746f0c8dfe0c894d854da10c8ffc6a3bd6d5515
1 /*
2 Unix SMB/CIFS implementation.
3 SMB parameters and setup
4 Copyright (C) Andrew Tridgell 1992-1997,
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 3 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, see <http://www.gnu.org/licenses/>.
21 #ifndef _SERVICES_H /* _SERVICES_H */
22 #define _SERVICES_H
24 /* where we assume the location of the service control scripts */
25 #define SVCCTL_SCRIPT_DIR "svcctl"
28 * dispatch table of functions to handle the =ServiceControl API
31 typedef struct {
32 /* functions for enumerating subkeys and values */
33 WERROR (*stop_service)( const char *service, struct SERVICE_STATUS *status );
34 WERROR (*start_service) ( const char *service );
35 WERROR (*service_status)( const char *service, struct SERVICE_STATUS *status );
36 } SERVICE_CONTROL_OPS;
38 /* structure to store the service handle information */
40 typedef struct _ServiceInfo {
41 uint8 type;
42 char *name;
43 uint32 access_granted;
44 SERVICE_CONTROL_OPS *ops;
45 } SERVICE_INFO;
47 #define SVC_HANDLE_IS_SCM 0x0000001
48 #define SVC_HANDLE_IS_SERVICE 0x0000002
49 #define SVC_HANDLE_IS_DBLOCK 0x0000003
51 #endif /* _SERICES_H */