• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/samba-3.5.8/source3/include/
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
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 3 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, see <http://www.gnu.org/licenses/>.
19*/
20
21#ifndef _SERVICES_H /* _SERVICES_H */
22#define _SERVICES_H
23
24/* where we assume the location of the service control scripts */
25#define SVCCTL_SCRIPT_DIR  "svcctl"
26
27/*
28 * dispatch table of functions to handle the =ServiceControl API
29 */
30
31typedef 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;
37
38/* structure to store the service handle information  */
39
40typedef struct _ServiceInfo {
41	uint8			type;
42	char			*name;
43	uint32			access_granted;
44	SERVICE_CONTROL_OPS	*ops;
45} SERVICE_INFO;
46
47#define SVC_HANDLE_IS_SCM			0x0000001
48#define SVC_HANDLE_IS_SERVICE			0x0000002
49#define SVC_HANDLE_IS_DBLOCK			0x0000003
50
51#endif /* _SERICES_H */
52
53