]>
Commit | Line | Data |
---|---|---|
1c79356b | 1 | /* |
91447636 | 2 | * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved. |
1c79356b A |
3 | * |
4 | * @APPLE_LICENSE_HEADER_START@ | |
ff6e181a A |
5 | * |
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 | |
1c79356b A |
15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
ff6e181a 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. | |
20 | * | |
1c79356b A |
21 | * @APPLE_LICENSE_HEADER_END@ |
22 | */ | |
23 | ||
24 | #ifndef __USERNOTIFICATION_UNDTYPES_H | |
25 | #define __USERNOTIFICATION_UNDTYPES_H | |
26 | ||
9bccf70c A |
27 | #include <sys/appleapiopts.h> |
28 | ||
29 | #ifdef __APPLE_API_PRIVATE | |
30 | ||
1c79356b A |
31 | #include <mach/mach_types.h> |
32 | ||
33 | typedef char *UNDMessage; | |
34 | typedef char *UNDLabel; | |
35 | typedef char *UNDKey; | |
36 | typedef char *UNDPath; | |
37 | ||
38 | /* | |
39 | * serialized key's, list delimiters, ... | |
40 | * (sent as out-of-line data in a message) | |
41 | */ | |
42 | typedef const char * xmlData_t; | |
43 | ||
44 | #ifdef KERNEL_PRIVATE | |
45 | #ifdef MACH_KERNEL_PRIVATE | |
46 | ||
47 | /* | |
48 | * UNDReply definition - used to dispatch UserNotification | |
49 | * replies back to the in-kernel client. | |
50 | */ | |
51 | typedef struct UNDReply *UNDReplyRef; | |
52 | ||
91447636 A |
53 | #include <sys/cdefs.h> |
54 | __BEGIN_DECLS | |
1c79356b | 55 | extern UNDReplyRef convert_port_to_UNDReply(mach_port_t); |
91447636 | 56 | __END_DECLS |
1c79356b A |
57 | |
58 | #else /* !MACH_KERNEL_PRIVATE */ | |
59 | ||
60 | typedef struct __UNDReply__ *UNDReplyRef; | |
61 | ||
62 | #endif /* !MACH_KERNEL_PRIVATE */ | |
63 | ||
64 | #else /* ! KERNEL_PRIVATE */ | |
65 | ||
66 | typedef mach_port_t UNDReplyRef; | |
67 | ||
68 | #endif /* ! KERNEL_PRIVATE */ | |
69 | ||
70 | #define UND_REPLY_NULL ((UNDReplyRef)0) | |
71 | #define XML_DATA_NULL ((xmlData_t)0) | |
72 | ||
9bccf70c A |
73 | #endif /* __APPLE_API_PRIVATE */ |
74 | ||
1c79356b A |
75 | #endif /* __USERNOTIFICATION_UNDTPES_H */ |
76 |