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_APACHE_LICENSE_HEADER_START@
9 *
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
13 *
14 *     http://www.apache.org/licenses/LICENSE-2.0
15 *
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@
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 */
29typedef 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 */
41typedef enum {
42  kActionNone = 0,
43  kActionStart,
44  kActionStop,
45  kActionRestart
46} Action;
47
48void CF_syslog(int level, CFStringRef message, ...);
49extern bool gVerboseFlag;
50
51#endif /* _SYSTEM_STARTER_H_ */
52