1/*
2 * IDENTIFICATION:
3 * stub generated by bootstrap_cmds-133
4 * OPTIONS:
5 * KernelUser
6 */
7#define __MIG_check__Reply__fairplay_subsystem__ 1
8
9#include "fairplayd_notification.h"
10
11/* TODO: #include <mach/mach.h> */
12#ifdef __cplusplus
13extern "C" {
14#endif /* __cplusplus */
15extern void mach_msg_destroy(mach_msg_header_t *);
16#ifdef __cplusplus
17}
18#endif /* __cplusplus */
19
20#ifndef mig_internal
21#define mig_internal static __inline__
22#endif /* mig_internal */
23
24#ifndef mig_external
25#define mig_external
26#endif /* mig_external */
27
28#if !defined(__MigTypeCheck) && defined(TypeCheck)
29#define __MigTypeCheck TypeCheck /* Legacy setting */
30#endif /* !defined(__MigTypeCheck) */
31
32#if !defined(__MigKernelSpecificCode) && defined(_MIG_KERNEL_SPECIFIC_CODE_)
33#define __MigKernelSpecificCode _MIG_KERNEL_SPECIFIC_CODE_ /* Legacy setting */
34#endif /* !defined(__MigKernelSpecificCode) */
35
36#ifndef LimitCheck
37#define LimitCheck 0
38#endif /* LimitCheck */
39
40#ifndef min
41#define min(a,b) ( ((a) < (b))? (a): (b) )
42#endif /* min */
43
44#if !defined(_WALIGN_)
45#define _WALIGN_(x) (((x) + 3) & ~3)
46#endif /* !defined(_WALIGN_) */
47
48#if !defined(_WALIGNSZ_)
49#define _WALIGNSZ_(x) _WALIGN_(sizeof(x))
50#endif /* !defined(_WALIGNSZ_) */
51
52#ifndef UseStaticTemplates
53#define UseStaticTemplates 0
54#endif /* UseStaticTemplates */
55
56#ifndef MIG_SERVER_ROUTINE
57#define MIG_SERVER_ROUTINE
58#endif
59
60#ifndef __MachMsgErrorWithTimeout
61#define __MachMsgErrorWithTimeout(_R_) { \
62 switch (_R_) { \
63 case MACH_SEND_INVALID_DATA: \
64 case MACH_SEND_INVALID_DEST: \
65 case MACH_SEND_INVALID_HEADER: \
66 mig_put_reply_port(InP->Head.msgh_reply_port); \
67 break; \
68 case MACH_SEND_TIMED_OUT: \
69 case MACH_RCV_TIMED_OUT: \
70 default: \
71 mig_dealloc_reply_port(InP->Head.msgh_reply_port); \
72 } \
73}
74#endif /* __MachMsgErrorWithTimeout */
75
76#ifndef __MachMsgErrorWithoutTimeout
77#define __MachMsgErrorWithoutTimeout(_R_) { \
78 switch (_R_) { \
79 case MACH_SEND_INVALID_DATA: \
80 case MACH_SEND_INVALID_DEST: \
81 case MACH_SEND_INVALID_HEADER: \
82 mig_put_reply_port(InP->Head.msgh_reply_port); \
83 break; \
84 default: \
85 mig_dealloc_reply_port(InP->Head.msgh_reply_port); \
86 } \
87}
88#endif /* __MachMsgErrorWithoutTimeout */
89
90#ifndef __DeclareSendRpc
91#define __DeclareSendRpc(_NUM_, _NAME_)
92#endif /* __DeclareSendRpc */
93
94#ifndef __BeforeSendRpc
95#define __BeforeSendRpc(_NUM_, _NAME_)
96#endif /* __BeforeSendRpc */
97
98#ifndef __AfterSendRpc
99#define __AfterSendRpc(_NUM_, _NAME_)
100#endif /* __AfterSendRpc */
101
102#ifndef __DeclareSendSimple
103#define __DeclareSendSimple(_NUM_, _NAME_)
104#endif /* __DeclareSendSimple */
105
106#ifndef __BeforeSendSimple
107#define __BeforeSendSimple(_NUM_, _NAME_)
108#endif /* __BeforeSendSimple */
109
110#ifndef __AfterSendSimple
111#define __AfterSendSimple(_NUM_, _NAME_)
112#endif /* __AfterSendSimple */
113
114#define msgh_request_port msgh_remote_port
115#define msgh_reply_port msgh_local_port
116
117
118
119/* SimpleRoutine fairplayd_arcade_request */
120mig_external kern_return_t fairplayd_arcade_request
121(
122 mach_port_t fairplayd_port,
123 mach_port_t arcade_reg_port
124)
125{
126
127#ifdef __MigPackStructs
128#pragma pack(push, 4)
129#endif
130 typedef struct {
131 mach_msg_header_t Head;
132 /* start of the kernel processed data */
133 mach_msg_body_t msgh_body;
134 mach_msg_port_descriptor_t arcade_reg_port;
135 /* end of the kernel processed data */
136 } Request __attribute__((unused));
137#ifdef __MigPackStructs
138#pragma pack(pop)
139#endif
140 /*
141 * typedef struct {
142 * mach_msg_header_t Head;
143 * NDR_record_t NDR;
144 * kern_return_t RetCode;
145 * } mig_reply_error_t;
146 */
147
148 union {
149 Request In;
150 } Mess;
151
152 Request *InP = &Mess.In;
153
154 mach_msg_return_t msg_result;
155
156#ifdef __MIG_check__Reply__fairplayd_arcade_request_t__defined
157 kern_return_t check_result;
158#endif /* __MIG_check__Reply__fairplayd_arcade_request_t__defined */
159
160 __DeclareSendSimple(41471, "fairplayd_arcade_request")
161
162#if UseStaticTemplates
163 const static mach_msg_port_descriptor_t arcade_reg_portTemplate = {
164 /* name = */ MACH_PORT_NULL,
165 /* pad1 = */ 0,
166 /* pad2 = */ 0,
167 /* disp = */ 19,
168 /* type = */ MACH_MSG_PORT_DESCRIPTOR,
169 };
170#endif /* UseStaticTemplates */
171
172 InP->msgh_body.msgh_descriptor_count = 1;
173#if UseStaticTemplates
174 InP->arcade_reg_port = arcade_reg_portTemplate;
175 InP->arcade_reg_port.name = arcade_reg_port;
176#else /* UseStaticTemplates */
177 InP->arcade_reg_port.name = arcade_reg_port;
178 InP->arcade_reg_port.disposition = 19;
179 InP->arcade_reg_port.type = MACH_MSG_PORT_DESCRIPTOR;
180#endif /* UseStaticTemplates */
181
182 InP->Head.msgh_reply_port = MACH_PORT_NULL;
183 InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX|
184 MACH_MSGH_BITS(19, 0);
185 /* msgh_size passed as argument */
186 InP->Head.msgh_request_port = fairplayd_port;
187 InP->Head.msgh_id = 41471;
188 InP->Head.msgh_reserved = 0;
189
190 __BeforeSendSimple(41471, "fairplayd_arcade_request")
191#if __MigKernelSpecificCode
192 msg_result = mach_msg_send_from_kernel(msg: &InP->Head, send_size: (mach_msg_size_t)sizeof(Request));
193#else
194 msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
195#endif /* __MigKernelSpecificCode */
196 __AfterSendSimple(41471, "fairplayd_arcade_request")
197 return msg_result;
198}
199