]>
Commit | Line | Data |
---|---|---|
e91b9f68 A |
1 | /** |
2 | * SystemStarter.h - System Starter driver | |
3 | * Wilfredo Sanchez | wsanchez@opensource.apple.com | |
4 | * $Apple$ | |
5 | ** | |
6 | * Copyright (c) 1999-2002 Apple Computer, Inc. All rights reserved. | |
7 | * | |
8 | * @APPLE_LICENSE_HEADER_START@ | |
9 | * | |
10 | * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights | |
11 | * Reserved. This file contains Original Code and/or Modifications of | |
12 | * Original Code as defined in and that are subject to the Apple Public | |
13 | * Source License Version 1.1 (the "License"). You may not use this file | |
14 | * except in compliance with the License. Please obtain a copy of the | |
15 | * License at http://www.apple.com/publicsource and read it before using | |
16 | * this file. | |
17 | * | |
18 | * The Original Code and all software distributed under the License are | |
19 | * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
22 | * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the | |
23 | * License for the specific language governing rights and limitations | |
24 | * under the License. | |
25 | * | |
26 | * @APPLE_LICENSE_HEADER_END@ | |
27 | **/ | |
28 | ||
29 | #ifndef _SYSTEM_STARTER_H_ | |
30 | #define _SYSTEM_STARTER_H_ | |
31 | ||
32 | /* Structure to pass common objects from system_starter to the IPC handlers */ | |
33 | typedef struct StartupContextStorage { | |
34 | CFMutableArrayRef aWaitingList; | |
35 | CFMutableArrayRef aFailedList; | |
36 | CFMutableDictionaryRef aStatusDict; | |
37 | int aServicesCount; | |
38 | int aRunningCount; | |
39 | } *StartupContext; | |
40 | ||
41 | #define kFixerDir "/var/db/fixer" | |
42 | #define kFixerPath "/var/db/fixer/StartupItems" | |
43 | ||
44 | /* Action types */ | |
45 | typedef enum { | |
46 | kActionNone = 0, | |
47 | kActionStart, | |
48 | kActionStop, | |
49 | kActionRestart | |
50 | } Action; | |
51 | ||
52 | void CF_syslog(int level, CFStringRef message, ...); | |
53 | extern bool gVerboseFlag; | |
54 | ||
55 | #endif /* _SYSTEM_STARTER_H_ */ |