]> git.saurik.com Git - apple/xnu.git/blob - osfmk/UserNotification/UNDTypes.defs
981f59e39b77973de12707b7397ddcedea47f587
[apple/xnu.git] / osfmk / UserNotification / UNDTypes.defs
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
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
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
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 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24 #ifndef _USERNOTIFICATION_UNDTYPES_DEFS_
25 #define _USERNOTIFICATION_UNDTYPES_DEFS_
26
27 #include <mach/std_types.defs>
28
29 /*
30 * UserNotification message types
31 */
32
33 type UNDMessage = c_string[*:1024];
34 type UNDLabel = c_string[*:128];
35
36 type UNDKey = c_string[*:128];
37 type UNDPath = c_string[*:1024];
38
39 type UNDXMLDict = c_string[*:2048];
40
41 /*
42 * serialized XML data
43 */
44 type xmlData = ^ array [] of MACH_MSG_TYPE_BYTE
45 ctype : xmlData_t;
46
47
48 type UNDServerRef = mach_port_t;
49
50 type UNDReplyRef = mach_port_t
51 #if KERNEL_SERVER
52 intran: UNDReplyRef convert_port_to_UNDReply(mach_port_t)
53 #endif /* KERNEL_SERVER */
54 #if KERNEL_USER
55 ctype: mach_port_t
56 #endif /* KERNEL_USER */
57 ;
58
59 import <UserNotification/UNDTypes.h>;
60
61 #endif /* _USERNOTIFICATION_UNDTYPES_DEFS_ */