1#ifndef _clock_reply_server_
2#define _clock_reply_server_
3
4/* Module clock_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
39#ifdef AUTOTEST
40#ifndef FUNCTION_PTR_T
41#define FUNCTION_PTR_T
42typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);
43typedef struct {
44 char *name;
45 function_ptr_t function;
46} function_table_entry;
47typedef function_table_entry *function_table_t;
48#endif /* FUNCTION_PTR_T */
49#endif /* AUTOTEST */
50
51#ifndef clock_reply_MSG_COUNT
52#define clock_reply_MSG_COUNT 1
53#endif /* clock_reply_MSG_COUNT */
54
55#include <mach/std_types.h>
56#include <mach/mig.h>
57#include <mach/mach_types.h>
58
59#ifdef __BeforeMigServerHeader
60__BeforeMigServerHeader
61#endif /* __BeforeMigServerHeader */
62
63
64/* SimpleRoutine clock_alarm_reply */
65#ifdef mig_external
66mig_external
67#else
68extern
69#endif /* mig_external */
70kern_return_t clock_alarm_reply
71(
72 clock_reply_t alarm_port,
73 kern_return_t alarm_code,
74 alarm_type_t alarm_type,
75 mach_timespec_t alarm_time
76);
77
78#ifdef mig_external
79mig_external
80#else
81extern
82#endif /* mig_external */
83boolean_t clock_reply_server(
84 mach_msg_header_t *InHeadP,
85 mach_msg_header_t *OutHeadP);
86
87#ifdef mig_external
88mig_external
89#else
90extern
91#endif /* mig_external */
92mig_routine_t clock_reply_server_routine(
93 mach_msg_header_t *InHeadP);
94
95
96/* Description of this subsystem, for use in direct RPC */
97extern const struct clock_reply_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} clock_reply_subsystem;
106
107/* typedefs for all requests */
108
109#ifndef __Request__clock_reply_subsystem__defined
110#define __Request__clock_reply_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 kern_return_t alarm_code;
119 alarm_type_t alarm_type;
120 mach_timespec_t alarm_time;
121 } __Request__clock_alarm_reply_t __attribute__((unused));
122#ifdef __MigPackStructs
123#pragma pack()
124#endif
125#endif /* !__Request__clock_reply_subsystem__defined */
126
127
128/* union of all requests */
129
130#ifndef __RequestUnion__clock_reply_subsystem__defined
131#define __RequestUnion__clock_reply_subsystem__defined
132union __RequestUnion__clock_reply_subsystem {
133 __Request__clock_alarm_reply_t Request_clock_alarm_reply;
134};
135#endif /* __RequestUnion__clock_reply_subsystem__defined */
136/* typedefs for all replies */
137
138#ifndef __Reply__clock_reply_subsystem__defined
139#define __Reply__clock_reply_subsystem__defined
140
141#ifdef __MigPackStructs
142#pragma pack(4)
143#endif
144 typedef struct {
145 mach_msg_header_t Head;
146 NDR_record_t NDR;
147 kern_return_t RetCode;
148 } __Reply__clock_alarm_reply_t __attribute__((unused));
149#ifdef __MigPackStructs
150#pragma pack()
151#endif
152#endif /* !__Reply__clock_reply_subsystem__defined */
153
154
155/* union of all replies */
156
157#ifndef __ReplyUnion__clock_reply_subsystem__defined
158#define __ReplyUnion__clock_reply_subsystem__defined
159union __ReplyUnion__clock_reply_subsystem {
160 __Reply__clock_alarm_reply_t Reply_clock_alarm_reply;
161};
162#endif /* __RequestUnion__clock_reply_subsystem__defined */
163
164#ifndef subsystem_to_name_map_clock_reply
165#define subsystem_to_name_map_clock_reply \
166 { "clock_alarm_reply", 3125107 }
167#endif
168
169#ifdef __AfterMigServerHeader
170__AfterMigServerHeader
171#endif /* __AfterMigServerHeader */
172
173#endif /* _clock_reply_server_ */
174