1#ifndef _host_notify_reply_user_
2#define _host_notify_reply_user_
3
4/* Module host_notify_reply */
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
26extern "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#if (__MigKernelSpecificCode) || (_MIG_KERNEL_SPECIFIC_CODE_)
39#include <kern/ipc_mig.h>
40#endif /* __MigKernelSpecificCode */
41
42#ifdef AUTOTEST
43#ifndef FUNCTION_PTR_T
44#define FUNCTION_PTR_T
45typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);
46typedef struct {
47 char *name;
48 function_ptr_t function;
49} function_table_entry;
50typedef function_table_entry *function_table_t;
51#endif /* FUNCTION_PTR_T */
52#endif /* AUTOTEST */
53
54#ifndef host_notify_reply_MSG_COUNT
55#define host_notify_reply_MSG_COUNT 2
56#endif /* host_notify_reply_MSG_COUNT */
57
58#include <mach/std_types.h>
59#include <mach/mig.h>
60
61#ifdef __BeforeMigUserHeader
62__BeforeMigUserHeader
63#endif /* __BeforeMigUserHeader */
64
65#include <sys/cdefs.h>
66__BEGIN_DECLS
67
68
69/* SimpleRoutine host_calendar_changed */
70#ifdef mig_external
71mig_external
72#else
73extern
74#endif /* mig_external */
75kern_return_t host_calendar_changed
76(
77 mach_port_t notify_port
78);
79
80/* SimpleRoutine host_calendar_set */
81#ifdef mig_external
82mig_external
83#else
84extern
85#endif /* mig_external */
86kern_return_t host_calendar_set
87(
88 mach_port_t notify_port
89);
90
91__END_DECLS
92
93/********************** Caution **************************/
94/* The following data types should be used to calculate */
95/* maximum message sizes only. The actual message may be */
96/* smaller, and the position of the arguments within the */
97/* message layout may vary from what is presented here. */
98/* For example, if any of the arguments are variable- */
99/* sized, and less than the maximum is sent, the data */
100/* will be packed tight in the actual message to reduce */
101/* the presence of holes. */
102/********************** Caution **************************/
103
104/* typedefs for all requests */
105
106#ifndef __Request__host_notify_reply_subsystem__defined
107#define __Request__host_notify_reply_subsystem__defined
108
109#ifdef __MigPackStructs
110#pragma pack(4)
111#endif
112 typedef struct {
113 mach_msg_header_t Head;
114 } __Request__host_calendar_changed_t __attribute__((unused));
115#ifdef __MigPackStructs
116#pragma pack()
117#endif
118
119#ifdef __MigPackStructs
120#pragma pack(4)
121#endif
122 typedef struct {
123 mach_msg_header_t Head;
124 } __Request__host_calendar_set_t __attribute__((unused));
125#ifdef __MigPackStructs
126#pragma pack()
127#endif
128#endif /* !__Request__host_notify_reply_subsystem__defined */
129
130/* union of all requests */
131
132#ifndef __RequestUnion__host_notify_reply_subsystem__defined
133#define __RequestUnion__host_notify_reply_subsystem__defined
134union __RequestUnion__host_notify_reply_subsystem {
135 __Request__host_calendar_changed_t Request_host_calendar_changed;
136 __Request__host_calendar_set_t Request_host_calendar_set;
137};
138#endif /* !__RequestUnion__host_notify_reply_subsystem__defined */
139/* typedefs for all replies */
140
141#ifndef __Reply__host_notify_reply_subsystem__defined
142#define __Reply__host_notify_reply_subsystem__defined
143
144#ifdef __MigPackStructs
145#pragma pack(4)
146#endif
147 typedef struct {
148 mach_msg_header_t Head;
149 NDR_record_t NDR;
150 kern_return_t RetCode;
151 } __Reply__host_calendar_changed_t __attribute__((unused));
152#ifdef __MigPackStructs
153#pragma pack()
154#endif
155
156#ifdef __MigPackStructs
157#pragma pack(4)
158#endif
159 typedef struct {
160 mach_msg_header_t Head;
161 NDR_record_t NDR;
162 kern_return_t RetCode;
163 } __Reply__host_calendar_set_t __attribute__((unused));
164#ifdef __MigPackStructs
165#pragma pack()
166#endif
167#endif /* !__Reply__host_notify_reply_subsystem__defined */
168
169/* union of all replies */
170
171#ifndef __ReplyUnion__host_notify_reply_subsystem__defined
172#define __ReplyUnion__host_notify_reply_subsystem__defined
173union __ReplyUnion__host_notify_reply_subsystem {
174 __Reply__host_calendar_changed_t Reply_host_calendar_changed;
175 __Reply__host_calendar_set_t Reply_host_calendar_set;
176};
177#endif /* !__RequestUnion__host_notify_reply_subsystem__defined */
178
179#ifndef subsystem_to_name_map_host_notify_reply
180#define subsystem_to_name_map_host_notify_reply \
181 { "host_calendar_changed", 950 },\
182 { "host_calendar_set", 951 }
183#endif
184
185#ifdef __AfterMigUserHeader
186__AfterMigUserHeader
187#endif /* __AfterMigUserHeader */
188
189#endif /* _host_notify_reply_user_ */
190