]> git.saurik.com Git - apple/xnu.git/blame - osfmk/UserNotification/UNDTypes.h
xnu-792.6.56.tar.gz
[apple/xnu.git] / osfmk / UserNotification / UNDTypes.h
CommitLineData
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
33typedef char *UNDMessage;
34typedef char *UNDLabel;
35typedef char *UNDKey;
36typedef char *UNDPath;
37
38/*
39 * serialized key's, list delimiters, ...
40 * (sent as out-of-line data in a message)
41 */
42typedef 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 */
51typedef struct UNDReply *UNDReplyRef;
52
91447636
A
53#include <sys/cdefs.h>
54__BEGIN_DECLS
1c79356b 55extern UNDReplyRef convert_port_to_UNDReply(mach_port_t);
91447636 56__END_DECLS
1c79356b
A
57
58#else /* !MACH_KERNEL_PRIVATE */
59
60typedef struct __UNDReply__ *UNDReplyRef;
61
62#endif /* !MACH_KERNEL_PRIVATE */
63
64#else /* ! KERNEL_PRIVATE */
65
66typedef 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