1 | #ifndef _coalition_notification_server_ |
2 | #define _coalition_notification_server_ |
3 | |
4 | /* Module coalition_notification */ |
5 | |
6 | #include <string.h> |
7 | #include <mach/ndr.h> |
8 | #include <mach/boolean.h> |
9 | #include <mach/kern_return.h> |
10 | #include <mach/notify.h> |
11 | #include <mach/mach_types.h> |
12 | #include <mach/message.h> |
13 | #include <mach/mig_errors.h> |
14 | #include <mach/port.h> |
15 | |
16 | /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ |
17 | |
18 | #if defined(__has_include) |
19 | #if __has_include(<mach/mig_strncpy_zerofill_support.h>) |
20 | #ifndef USING_MIG_STRNCPY_ZEROFILL |
21 | #define USING_MIG_STRNCPY_ZEROFILL |
22 | #endif |
23 | #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ |
24 | #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ |
25 | #ifdef __cplusplus |
26 | extern "C" { |
27 | #endif |
28 | extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); |
29 | #ifdef __cplusplus |
30 | } |
31 | #endif |
32 | #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ |
33 | #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ |
34 | #endif /* __has_include */ |
35 | |
36 | /* END MIG_STRNCPY_ZEROFILL CODE */ |
37 | |
38 | |
39 | #ifdef AUTOTEST |
40 | #ifndef FUNCTION_PTR_T |
41 | #define FUNCTION_PTR_T |
42 | typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); |
43 | typedef struct { |
44 | char *name; |
45 | function_ptr_t function; |
46 | } function_table_entry; |
47 | typedef function_table_entry *function_table_t; |
48 | #endif /* FUNCTION_PTR_T */ |
49 | #endif /* AUTOTEST */ |
50 | |
51 | #ifndef coalition_notification_MSG_COUNT |
52 | #define coalition_notification_MSG_COUNT 1 |
53 | #endif /* coalition_notification_MSG_COUNT */ |
54 | |
55 | #include <mach/std_types.h> |
56 | #include <mach/mig.h> |
57 | #include <mach/mig.h> |
58 | #include <mach/mach_types.h> |
59 | |
60 | #ifdef __BeforeMigServerHeader |
61 | __BeforeMigServerHeader |
62 | #endif /* __BeforeMigServerHeader */ |
63 | |
64 | |
65 | /* SimpleRoutine coalition_notification */ |
66 | #ifdef mig_external |
67 | mig_external |
68 | #else |
69 | extern |
70 | #endif /* mig_external */ |
71 | kern_return_t coalition_notification |
72 | ( |
73 | mach_port_t coalition_port, |
74 | uint64_t id, |
75 | uint32_t flags |
76 | ); |
77 | |
78 | #ifdef mig_external |
79 | mig_external |
80 | #else |
81 | extern |
82 | #endif /* mig_external */ |
83 | boolean_t coalition_notification_server( |
84 | mach_msg_header_t *InHeadP, |
85 | mach_msg_header_t *OutHeadP); |
86 | |
87 | #ifdef mig_external |
88 | mig_external |
89 | #else |
90 | extern |
91 | #endif /* mig_external */ |
92 | mig_routine_t coalition_notification_server_routine( |
93 | mach_msg_header_t *InHeadP); |
94 | |
95 | |
96 | /* Description of this subsystem, for use in direct RPC */ |
97 | extern const struct coalition_notification_subsystem { |
98 | mig_server_routine_t server; /* Server routine */ |
99 | mach_msg_id_t start; /* Min routine number */ |
100 | mach_msg_id_t end; /* Max routine number + 1 */ |
101 | unsigned int maxsize; /* Max msg size */ |
102 | vm_address_t reserved; /* Reserved */ |
103 | struct routine_descriptor /*Array of routine descriptors */ |
104 | routine[1]; |
105 | } coalition_notification_subsystem; |
106 | |
107 | /* typedefs for all requests */ |
108 | |
109 | #ifndef __Request__coalition_notification_subsystem__defined |
110 | #define __Request__coalition_notification_subsystem__defined |
111 | |
112 | #ifdef __MigPackStructs |
113 | #pragma pack(4) |
114 | #endif |
115 | typedef struct { |
116 | mach_msg_header_t Head; |
117 | NDR_record_t NDR; |
118 | uint64_t id; |
119 | uint32_t flags; |
120 | } __Request__coalition_notification_t __attribute__((unused)); |
121 | #ifdef __MigPackStructs |
122 | #pragma pack() |
123 | #endif |
124 | #endif /* !__Request__coalition_notification_subsystem__defined */ |
125 | |
126 | |
127 | /* union of all requests */ |
128 | |
129 | #ifndef __RequestUnion__coalition_notification_subsystem__defined |
130 | #define __RequestUnion__coalition_notification_subsystem__defined |
131 | union __RequestUnion__coalition_notification_subsystem { |
132 | __Request__coalition_notification_t Request_coalition_notification; |
133 | }; |
134 | #endif /* __RequestUnion__coalition_notification_subsystem__defined */ |
135 | /* typedefs for all replies */ |
136 | |
137 | #ifndef __Reply__coalition_notification_subsystem__defined |
138 | #define __Reply__coalition_notification_subsystem__defined |
139 | |
140 | #ifdef __MigPackStructs |
141 | #pragma pack(4) |
142 | #endif |
143 | typedef struct { |
144 | mach_msg_header_t Head; |
145 | NDR_record_t NDR; |
146 | kern_return_t RetCode; |
147 | } __Reply__coalition_notification_t __attribute__((unused)); |
148 | #ifdef __MigPackStructs |
149 | #pragma pack() |
150 | #endif |
151 | #endif /* !__Reply__coalition_notification_subsystem__defined */ |
152 | |
153 | |
154 | /* union of all replies */ |
155 | |
156 | #ifndef __ReplyUnion__coalition_notification_subsystem__defined |
157 | #define __ReplyUnion__coalition_notification_subsystem__defined |
158 | union __ReplyUnion__coalition_notification_subsystem { |
159 | __Reply__coalition_notification_t Reply_coalition_notification; |
160 | }; |
161 | #endif /* __RequestUnion__coalition_notification_subsystem__defined */ |
162 | |
163 | #ifndef subsystem_to_name_map_coalition_notification |
164 | #define subsystem_to_name_map_coalition_notification \ |
165 | { "coalition_notification", 5300 } |
166 | #endif |
167 | |
168 | #ifdef __AfterMigServerHeader |
169 | __AfterMigServerHeader |
170 | #endif /* __AfterMigServerHeader */ |
171 | |
172 | #endif /* _coalition_notification_server_ */ |
173 | |