]>
Commit | Line | Data |
---|---|---|
e9ce8d39 | 1 | /* |
5b2abdfb | 2 | * Copyright (c) 1999-2002 Apple Computer, Inc. All rights reserved. |
e9ce8d39 A |
3 | * |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
734aad71 A |
6 | * This file contains Original Code and/or Modifications of Original Code |
7 | * as defined in and that are subject to the Apple Public Source License | |
8 | * Version 2.0 (the 'License'). You may not use this file except in | |
9 | * compliance with the License. Please obtain a copy of the License at | |
10 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
11 | * file. | |
12 | * | |
13 | * The Original Code and all software distributed under the License are | |
14 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
e9ce8d39 A |
15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
734aad71 A |
17 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. |
18 | * Please see the License for the specific language governing rights and | |
19 | * limitations under the License. | |
e9ce8d39 A |
20 | * |
21 | * @APPLE_LICENSE_HEADER_END@ | |
22 | */ | |
23 | /* | |
24 | * bootstrap -- fundamental service initiator and port server | |
25 | * Mike DeMoney, NeXT, Inc. | |
26 | * Copyright, 1990. All rights reserved. | |
27 | * | |
28 | * bootstrap_defs.h -- bootstrap service data types and constants | |
29 | * See bootstrap.defs for description of bootstrap services. | |
30 | */ | |
31 | ||
32 | #ifndef _BOOTSTRAP_DEFS_ | |
33 | #define _BOOTSTRAP_DEFS_ | |
34 | #import <mach/boolean.h> | |
35 | ||
36 | #define BOOTSTRAP_MAX_NAME_LEN 128 | |
37 | #define BOOTSTRAP_MAX_CMD_LEN 512 | |
38 | ||
39 | typedef char name_t[BOOTSTRAP_MAX_NAME_LEN]; | |
40 | typedef char cmd_t[BOOTSTRAP_MAX_CMD_LEN]; | |
41 | typedef name_t *name_array_t; | |
5b2abdfb A |
42 | typedef int bootstrap_status_t; |
43 | typedef bootstrap_status_t *bootstrap_status_array_t; | |
44 | ||
e9ce8d39 A |
45 | typedef boolean_t *bool_array_t; |
46 | ||
47 | #define BOOTSTRAP_MAX_LOOKUP_COUNT 20 | |
48 | ||
49 | #define BOOTSTRAP_SUCCESS 0 | |
5b2abdfb A |
50 | #define BOOTSTRAP_NOT_PRIVILEGED 1100 |
51 | #define BOOTSTRAP_NAME_IN_USE 1101 | |
52 | #define BOOTSTRAP_UNKNOWN_SERVICE 1102 | |
53 | #define BOOTSTRAP_SERVICE_ACTIVE 1103 | |
e9ce8d39 A |
54 | #define BOOTSTRAP_BAD_COUNT 1104 |
55 | #define BOOTSTRAP_NO_MEMORY 1105 | |
56 | ||
5b2abdfb A |
57 | #define BOOTSTRAP_STATUS_INACTIVE 0 |
58 | #define BOOTSTRAP_STATUS_ACTIVE 1 | |
59 | #define BOOTSTRAP_STATUS_ON_DEMAND 2 | |
60 | ||
e9ce8d39 | 61 | #endif /* _BOOTSTRAP_DEFS_ */ |