]>
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 | * | |
ed34e3c3 | 8 | * @APPLE_APACHE_LICENSE_HEADER_START@ |
e91b9f68 | 9 | * |
ed34e3c3 A |
10 | * Licensed under the Apache License, Version 2.0 (the "License"); |
11 | * you may not use this file except in compliance with the License. | |
12 | * You may obtain a copy of the License at | |
e91b9f68 | 13 | * |
ed34e3c3 | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
e91b9f68 | 15 | * |
ed34e3c3 A |
16 | * Unless required by applicable law or agreed to in writing, software |
17 | * distributed under the License is distributed on an "AS IS" BASIS, | |
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
19 | * See the License for the specific language governing permissions and | |
20 | * limitations under the License. | |
21 | * | |
22 | * @APPLE_APACHE_LICENSE_HEADER_END@ | |
e91b9f68 A |
23 | **/ |
24 | ||
25 | #ifndef _SYSTEM_STARTER_H_ | |
26 | #define _SYSTEM_STARTER_H_ | |
27 | ||
28 | /* Structure to pass common objects from system_starter to the IPC handlers */ | |
29 | typedef struct StartupContextStorage { | |
30 | CFMutableArrayRef aWaitingList; | |
31 | CFMutableArrayRef aFailedList; | |
32 | CFMutableDictionaryRef aStatusDict; | |
33 | int aServicesCount; | |
34 | int aRunningCount; | |
35 | } *StartupContext; | |
36 | ||
37 | #define kFixerDir "/var/db/fixer" | |
38 | #define kFixerPath "/var/db/fixer/StartupItems" | |
39 | ||
40 | /* Action types */ | |
41 | typedef enum { | |
42 | kActionNone = 0, | |
43 | kActionStart, | |
44 | kActionStop, | |
45 | kActionRestart | |
46 | } Action; | |
47 | ||
48 | void CF_syslog(int level, CFStringRef message, ...); | |
49 | extern bool gVerboseFlag; | |
50 | ||
51 | #endif /* _SYSTEM_STARTER_H_ */ |