jack2 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1374 lines
79KB

  1. /*
  2. * IDENTIFICATION:
  3. * stub generated Fri Oct 23 10:35:08 2009
  4. * with a MiG generated Mon May 18 09:59:33 PDT 2009 by root@sulitlana.apple.com
  5. * OPTIONS:
  6. */
  7. /* Module JackRPCClient */
  8. #define __MIG_check__Request__JackRPCClient_subsystem__ 1
  9. #define __NDR_convert__Request__JackRPCClient_subsystem__ 1
  10. #include <string.h>
  11. #include <mach/ndr.h>
  12. #include <mach/boolean.h>
  13. #include <mach/kern_return.h>
  14. #include <mach/notify.h>
  15. #include <mach/mach_types.h>
  16. #include <mach/message.h>
  17. #include <mach/mig_errors.h>
  18. #include <mach/port.h>
  19. #include <mach/std_types.h>
  20. #include <mach/mig.h>
  21. #include <mach/mig.h>
  22. #include <mach/mach_types.h>
  23. #include "Jackdefs.h"
  24. #ifndef mig_internal
  25. #define mig_internal static __inline__
  26. #endif /* mig_internal */
  27. #ifndef mig_external
  28. #define mig_external
  29. #endif /* mig_external */
  30. #if !defined(__MigTypeCheck) && defined(TypeCheck)
  31. #define __MigTypeCheck TypeCheck /* Legacy setting */
  32. #endif /* !defined(__MigTypeCheck) */
  33. #if !defined(__MigKernelSpecificCode) && defined(_MIG_KERNEL_SPECIFIC_CODE_)
  34. #define __MigKernelSpecificCode _MIG_KERNEL_SPECIFIC_CODE_ /* Legacy setting */
  35. #endif /* !defined(__MigKernelSpecificCode) */
  36. #ifndef LimitCheck
  37. #define LimitCheck 0
  38. #endif /* LimitCheck */
  39. #ifndef min
  40. #define min(a,b) ( ((a) < (b))? (a): (b) )
  41. #endif /* min */
  42. #if !defined(_WALIGN_)
  43. #define _WALIGN_(x) (((x) + 3) & ~3)
  44. #endif /* !defined(_WALIGN_) */
  45. #if !defined(_WALIGNSZ_)
  46. #define _WALIGNSZ_(x) _WALIGN_(sizeof(x))
  47. #endif /* !defined(_WALIGNSZ_) */
  48. #ifndef UseStaticTemplates
  49. #define UseStaticTemplates 0
  50. #endif /* UseStaticTemplates */
  51. #ifndef __DeclareRcvRpc
  52. #define __DeclareRcvRpc(_NUM_, _NAME_)
  53. #endif /* __DeclareRcvRpc */
  54. #ifndef __BeforeRcvRpc
  55. #define __BeforeRcvRpc(_NUM_, _NAME_)
  56. #endif /* __BeforeRcvRpc */
  57. #ifndef __AfterRcvRpc
  58. #define __AfterRcvRpc(_NUM_, _NAME_)
  59. #endif /* __AfterRcvRpc */
  60. #ifndef __DeclareRcvSimple
  61. #define __DeclareRcvSimple(_NUM_, _NAME_)
  62. #endif /* __DeclareRcvSimple */
  63. #ifndef __BeforeRcvSimple
  64. #define __BeforeRcvSimple(_NUM_, _NAME_)
  65. #endif /* __BeforeRcvSimple */
  66. #ifndef __AfterRcvSimple
  67. #define __AfterRcvSimple(_NUM_, _NAME_)
  68. #endif /* __AfterRcvSimple */
  69. #define novalue void
  70. #define msgh_request_port msgh_local_port
  71. #define MACH_MSGH_BITS_REQUEST(bits) MACH_MSGH_BITS_LOCAL(bits)
  72. #define msgh_reply_port msgh_remote_port
  73. #define MACH_MSGH_BITS_REPLY(bits) MACH_MSGH_BITS_REMOTE(bits)
  74. #define MIG_RETURN_ERROR(X, code) {\
  75. ((mig_reply_error_t *)X)->RetCode = code;\
  76. ((mig_reply_error_t *)X)->NDR = NDR_record;\
  77. return;\
  78. }
  79. /* typedefs for all requests */
  80. #ifndef __Request__JackRPCClient_subsystem__defined
  81. #define __Request__JackRPCClient_subsystem__defined
  82. #ifdef __MigPackStructs
  83. #pragma pack(4)
  84. #endif
  85. typedef struct {
  86. mach_msg_header_t Head;
  87. NDR_record_t NDR;
  88. int refnum;
  89. client_name_t client_name;
  90. int notify;
  91. message_t message;
  92. int value1;
  93. int value2;
  94. } __Request__rpc_jack_client_sync_notify_t;
  95. #ifdef __MigPackStructs
  96. #pragma pack()
  97. #endif
  98. #ifdef __MigPackStructs
  99. #pragma pack(4)
  100. #endif
  101. typedef struct {
  102. mach_msg_header_t Head;
  103. NDR_record_t NDR;
  104. int refnum;
  105. client_name_t client_name;
  106. int notify;
  107. message_t message;
  108. int value1;
  109. int value2;
  110. } __Request__rpc_jack_client_async_notify_t;
  111. #ifdef __MigPackStructs
  112. #pragma pack()
  113. #endif
  114. #endif /* !__Request__JackRPCClient_subsystem__defined */
  115. /* typedefs for all replies */
  116. #ifndef __Reply__JackRPCClient_subsystem__defined
  117. #define __Reply__JackRPCClient_subsystem__defined
  118. #ifdef __MigPackStructs
  119. #pragma pack(4)
  120. #endif
  121. typedef struct {
  122. mach_msg_header_t Head;
  123. NDR_record_t NDR;
  124. kern_return_t RetCode;
  125. int result;
  126. } __Reply__rpc_jack_client_sync_notify_t;
  127. #ifdef __MigPackStructs
  128. #pragma pack()
  129. #endif
  130. #ifdef __MigPackStructs
  131. #pragma pack(4)
  132. #endif
  133. typedef struct {
  134. mach_msg_header_t Head;
  135. NDR_record_t NDR;
  136. kern_return_t RetCode;
  137. } __Reply__rpc_jack_client_async_notify_t;
  138. #ifdef __MigPackStructs
  139. #pragma pack()
  140. #endif
  141. #endif /* !__Reply__JackRPCClient_subsystem__defined */
  142. /* union of all replies */
  143. #ifndef __ReplyUnion__JackRPCClient_subsystem__defined
  144. #define __ReplyUnion__JackRPCClient_subsystem__defined
  145. union __ReplyUnion__JackRPCClient_subsystem {
  146. __Reply__rpc_jack_client_sync_notify_t Reply_rpc_jack_client_sync_notify;
  147. __Reply__rpc_jack_client_async_notify_t Reply_rpc_jack_client_async_notify;
  148. };
  149. #endif /* __RequestUnion__JackRPCClient_subsystem__defined */
  150. /* Forward Declarations */
  151. mig_internal novalue _Xrpc_jack_client_sync_notify
  152. (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
  153. mig_internal novalue _Xrpc_jack_client_async_notify
  154. (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
  155. #if ( __MigTypeCheck || __NDR_convert__ )
  156. #if __MIG_check__Request__JackRPCClient_subsystem__
  157. #if !defined(__MIG_check__Request__rpc_jack_client_sync_notify_t__defined)
  158. #define __MIG_check__Request__rpc_jack_client_sync_notify_t__defined
  159. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  160. #if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
  161. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  162. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  163. __NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
  164. #elif defined(__NDR_convert__int_rep__int__defined)
  165. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  166. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  167. __NDR_convert__int_rep__int((int *)(a), f)
  168. #elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__defined)
  169. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  170. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  171. __NDR_convert__int_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  172. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  173. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  174. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  175. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  176. #endif /* defined(__NDR_convert__*__defined) */
  177. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined */
  178. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  179. #if defined(__NDR_convert__int_rep__JackRPCClient__client_name_t__defined)
  180. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  181. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  182. __NDR_convert__int_rep__JackRPCClient__client_name_t((client_name_t *)(a), f)
  183. #elif defined(__NDR_convert__int_rep__client_name_t__defined)
  184. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  185. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  186. __NDR_convert__int_rep__client_name_t((client_name_t *)(a), f)
  187. #elif defined(__NDR_convert__int_rep__JackRPCClient__string__defined)
  188. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  189. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  190. __NDR_convert__int_rep__JackRPCClient__string(a, f, 64)
  191. #elif defined(__NDR_convert__int_rep__string__defined)
  192. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  193. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  194. __NDR_convert__int_rep__string(a, f, 64)
  195. #endif /* defined(__NDR_convert__*__defined) */
  196. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined */
  197. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  198. #if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
  199. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  200. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  201. __NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
  202. #elif defined(__NDR_convert__int_rep__int__defined)
  203. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  204. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  205. __NDR_convert__int_rep__int((int *)(a), f)
  206. #elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__defined)
  207. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  208. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  209. __NDR_convert__int_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  210. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  211. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  212. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  213. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  214. #endif /* defined(__NDR_convert__*__defined) */
  215. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */
  216. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__message__defined
  217. #if defined(__NDR_convert__int_rep__JackRPCClient__message_t__defined)
  218. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__message__defined
  219. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__message(a, f) \
  220. __NDR_convert__int_rep__JackRPCClient__message_t((message_t *)(a), f)
  221. #elif defined(__NDR_convert__int_rep__message_t__defined)
  222. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__message__defined
  223. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__message(a, f) \
  224. __NDR_convert__int_rep__message_t((message_t *)(a), f)
  225. #elif defined(__NDR_convert__int_rep__JackRPCClient__string__defined)
  226. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__message__defined
  227. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__message(a, f) \
  228. __NDR_convert__int_rep__JackRPCClient__string(a, f, 256)
  229. #elif defined(__NDR_convert__int_rep__string__defined)
  230. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__message__defined
  231. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__message(a, f) \
  232. __NDR_convert__int_rep__string(a, f, 256)
  233. #endif /* defined(__NDR_convert__*__defined) */
  234. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__message__defined */
  235. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
  236. #if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
  237. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
  238. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
  239. __NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
  240. #elif defined(__NDR_convert__int_rep__int__defined)
  241. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
  242. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
  243. __NDR_convert__int_rep__int((int *)(a), f)
  244. #elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__defined)
  245. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
  246. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
  247. __NDR_convert__int_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  248. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  249. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
  250. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
  251. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  252. #endif /* defined(__NDR_convert__*__defined) */
  253. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined */
  254. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
  255. #if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
  256. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
  257. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
  258. __NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
  259. #elif defined(__NDR_convert__int_rep__int__defined)
  260. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
  261. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
  262. __NDR_convert__int_rep__int((int *)(a), f)
  263. #elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__defined)
  264. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
  265. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
  266. __NDR_convert__int_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  267. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  268. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
  269. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
  270. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  271. #endif /* defined(__NDR_convert__*__defined) */
  272. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined */
  273. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  274. #if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
  275. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  276. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  277. __NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
  278. #elif defined(__NDR_convert__char_rep__int__defined)
  279. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  280. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  281. __NDR_convert__char_rep__int((int *)(a), f)
  282. #elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
  283. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  284. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  285. __NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  286. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  287. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  288. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  289. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  290. #endif /* defined(__NDR_convert__*__defined) */
  291. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined */
  292. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  293. #if defined(__NDR_convert__char_rep__JackRPCClient__client_name_t__defined)
  294. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  295. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  296. __NDR_convert__char_rep__JackRPCClient__client_name_t((client_name_t *)(a), f)
  297. #elif defined(__NDR_convert__char_rep__client_name_t__defined)
  298. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  299. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  300. __NDR_convert__char_rep__client_name_t((client_name_t *)(a), f)
  301. #elif defined(__NDR_convert__char_rep__JackRPCClient__string__defined)
  302. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  303. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  304. __NDR_convert__char_rep__JackRPCClient__string(a, f, 64)
  305. #elif defined(__NDR_convert__char_rep__string__defined)
  306. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  307. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  308. __NDR_convert__char_rep__string(a, f, 64)
  309. #endif /* defined(__NDR_convert__*__defined) */
  310. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined */
  311. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  312. #if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
  313. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  314. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  315. __NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
  316. #elif defined(__NDR_convert__char_rep__int__defined)
  317. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  318. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  319. __NDR_convert__char_rep__int((int *)(a), f)
  320. #elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
  321. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  322. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  323. __NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  324. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  325. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  326. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  327. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  328. #endif /* defined(__NDR_convert__*__defined) */
  329. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */
  330. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__message__defined
  331. #if defined(__NDR_convert__char_rep__JackRPCClient__message_t__defined)
  332. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__message__defined
  333. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__message(a, f) \
  334. __NDR_convert__char_rep__JackRPCClient__message_t((message_t *)(a), f)
  335. #elif defined(__NDR_convert__char_rep__message_t__defined)
  336. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__message__defined
  337. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__message(a, f) \
  338. __NDR_convert__char_rep__message_t((message_t *)(a), f)
  339. #elif defined(__NDR_convert__char_rep__JackRPCClient__string__defined)
  340. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__message__defined
  341. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__message(a, f) \
  342. __NDR_convert__char_rep__JackRPCClient__string(a, f, 256)
  343. #elif defined(__NDR_convert__char_rep__string__defined)
  344. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__message__defined
  345. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__message(a, f) \
  346. __NDR_convert__char_rep__string(a, f, 256)
  347. #endif /* defined(__NDR_convert__*__defined) */
  348. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__message__defined */
  349. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
  350. #if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
  351. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
  352. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
  353. __NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
  354. #elif defined(__NDR_convert__char_rep__int__defined)
  355. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
  356. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
  357. __NDR_convert__char_rep__int((int *)(a), f)
  358. #elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
  359. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
  360. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
  361. __NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  362. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  363. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
  364. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
  365. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  366. #endif /* defined(__NDR_convert__*__defined) */
  367. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined */
  368. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
  369. #if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
  370. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
  371. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
  372. __NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
  373. #elif defined(__NDR_convert__char_rep__int__defined)
  374. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
  375. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
  376. __NDR_convert__char_rep__int((int *)(a), f)
  377. #elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
  378. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
  379. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
  380. __NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  381. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  382. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
  383. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
  384. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  385. #endif /* defined(__NDR_convert__*__defined) */
  386. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined */
  387. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  388. #if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
  389. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  390. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  391. __NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
  392. #elif defined(__NDR_convert__float_rep__int__defined)
  393. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  394. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  395. __NDR_convert__float_rep__int((int *)(a), f)
  396. #elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
  397. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  398. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  399. __NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  400. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  401. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  402. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  403. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  404. #endif /* defined(__NDR_convert__*__defined) */
  405. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined */
  406. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  407. #if defined(__NDR_convert__float_rep__JackRPCClient__client_name_t__defined)
  408. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  409. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  410. __NDR_convert__float_rep__JackRPCClient__client_name_t((client_name_t *)(a), f)
  411. #elif defined(__NDR_convert__float_rep__client_name_t__defined)
  412. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  413. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  414. __NDR_convert__float_rep__client_name_t((client_name_t *)(a), f)
  415. #elif defined(__NDR_convert__float_rep__JackRPCClient__string__defined)
  416. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  417. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  418. __NDR_convert__float_rep__JackRPCClient__string(a, f, 64)
  419. #elif defined(__NDR_convert__float_rep__string__defined)
  420. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  421. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  422. __NDR_convert__float_rep__string(a, f, 64)
  423. #endif /* defined(__NDR_convert__*__defined) */
  424. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined */
  425. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  426. #if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
  427. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  428. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  429. __NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
  430. #elif defined(__NDR_convert__float_rep__int__defined)
  431. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  432. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  433. __NDR_convert__float_rep__int((int *)(a), f)
  434. #elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
  435. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  436. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  437. __NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  438. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  439. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  440. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  441. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  442. #endif /* defined(__NDR_convert__*__defined) */
  443. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */
  444. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__message__defined
  445. #if defined(__NDR_convert__float_rep__JackRPCClient__message_t__defined)
  446. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__message__defined
  447. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__message(a, f) \
  448. __NDR_convert__float_rep__JackRPCClient__message_t((message_t *)(a), f)
  449. #elif defined(__NDR_convert__float_rep__message_t__defined)
  450. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__message__defined
  451. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__message(a, f) \
  452. __NDR_convert__float_rep__message_t((message_t *)(a), f)
  453. #elif defined(__NDR_convert__float_rep__JackRPCClient__string__defined)
  454. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__message__defined
  455. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__message(a, f) \
  456. __NDR_convert__float_rep__JackRPCClient__string(a, f, 256)
  457. #elif defined(__NDR_convert__float_rep__string__defined)
  458. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__message__defined
  459. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__message(a, f) \
  460. __NDR_convert__float_rep__string(a, f, 256)
  461. #endif /* defined(__NDR_convert__*__defined) */
  462. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__message__defined */
  463. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
  464. #if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
  465. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
  466. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
  467. __NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
  468. #elif defined(__NDR_convert__float_rep__int__defined)
  469. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
  470. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
  471. __NDR_convert__float_rep__int((int *)(a), f)
  472. #elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
  473. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
  474. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
  475. __NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  476. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  477. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
  478. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
  479. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  480. #endif /* defined(__NDR_convert__*__defined) */
  481. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined */
  482. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
  483. #if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
  484. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
  485. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
  486. __NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
  487. #elif defined(__NDR_convert__float_rep__int__defined)
  488. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
  489. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
  490. __NDR_convert__float_rep__int((int *)(a), f)
  491. #elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
  492. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
  493. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
  494. __NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  495. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  496. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
  497. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
  498. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  499. #endif /* defined(__NDR_convert__*__defined) */
  500. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined */
  501. mig_internal kern_return_t __MIG_check__Request__rpc_jack_client_sync_notify_t(__attribute__((__unused__)) __Request__rpc_jack_client_sync_notify_t *In0P)
  502. {
  503. typedef __Request__rpc_jack_client_sync_notify_t __Request;
  504. #if __MigTypeCheck
  505. if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
  506. (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request)))
  507. return MIG_BAD_ARGUMENTS;
  508. #endif /* __MigTypeCheck */
  509. #if __MigTypeCheck
  510. {
  511. char * msg_limit = ((char *) In0P) + In0P->Head.msgh_size;
  512. size_t memchr_limit;
  513. memchr_limit = min((msg_limit - In0P->client_name), 64);
  514. if (( memchr(In0P->client_name, '\0', memchr_limit) == NULL ))
  515. return MIG_BAD_ARGUMENTS; // string length exceeds buffer length!
  516. memchr_limit = min((msg_limit - In0P->message), 256);
  517. if (( memchr(In0P->message, '\0', memchr_limit) == NULL ))
  518. return MIG_BAD_ARGUMENTS; // string length exceeds buffer length!
  519. }
  520. #endif /* __MigTypeCheck */
  521. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined) || \
  522. defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined) || \
  523. defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined) || \
  524. defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__message__defined) || \
  525. defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined) || \
  526. defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined)
  527. if (In0P->NDR.int_rep != NDR_record.int_rep) {
  528. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined)
  529. __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum(&In0P->refnum, In0P->NDR.int_rep);
  530. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined */
  531. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined)
  532. __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name(&In0P->client_name, In0P->NDR.int_rep);
  533. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined */
  534. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined)
  535. __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify(&In0P->notify, In0P->NDR.int_rep);
  536. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */
  537. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__message__defined)
  538. __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__message(&In0P->message, In0P->NDR.int_rep);
  539. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__message__defined */
  540. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined)
  541. __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1(&In0P->value1, In0P->NDR.int_rep);
  542. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined */
  543. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined)
  544. __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2(&In0P->value2, In0P->NDR.int_rep);
  545. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined */
  546. }
  547. #endif /* defined(__NDR_convert__int_rep...) */
  548. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined) || \
  549. defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined) || \
  550. defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined) || \
  551. defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__message__defined) || \
  552. defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined) || \
  553. defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined)
  554. if (In0P->NDR.char_rep != NDR_record.char_rep) {
  555. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined)
  556. __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum(&In0P->refnum, In0P->NDR.char_rep);
  557. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined */
  558. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined)
  559. __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name(&In0P->client_name, In0P->NDR.char_rep);
  560. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined */
  561. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined)
  562. __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify(&In0P->notify, In0P->NDR.char_rep);
  563. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */
  564. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__message__defined)
  565. __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__message(&In0P->message, In0P->NDR.char_rep);
  566. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__message__defined */
  567. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined)
  568. __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1(&In0P->value1, In0P->NDR.char_rep);
  569. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined */
  570. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined)
  571. __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2(&In0P->value2, In0P->NDR.char_rep);
  572. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined */
  573. }
  574. #endif /* defined(__NDR_convert__char_rep...) */
  575. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined) || \
  576. defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined) || \
  577. defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined) || \
  578. defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__message__defined) || \
  579. defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined) || \
  580. defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined)
  581. if (In0P->NDR.float_rep != NDR_record.float_rep) {
  582. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined)
  583. __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum(&In0P->refnum, In0P->NDR.float_rep);
  584. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined */
  585. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined)
  586. __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name(&In0P->client_name, In0P->NDR.float_rep);
  587. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined */
  588. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined)
  589. __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify(&In0P->notify, In0P->NDR.float_rep);
  590. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */
  591. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__message__defined)
  592. __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__message(&In0P->message, In0P->NDR.float_rep);
  593. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__message__defined */
  594. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined)
  595. __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1(&In0P->value1, In0P->NDR.float_rep);
  596. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined */
  597. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined)
  598. __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2(&In0P->value2, In0P->NDR.float_rep);
  599. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined */
  600. }
  601. #endif /* defined(__NDR_convert__float_rep...) */
  602. return MACH_MSG_SUCCESS;
  603. }
  604. #endif /* !defined(__MIG_check__Request__rpc_jack_client_sync_notify_t__defined) */
  605. #endif /* __MIG_check__Request__JackRPCClient_subsystem__ */
  606. #endif /* ( __MigTypeCheck || __NDR_convert__ ) */
  607. /* Routine rpc_jack_client_sync_notify */
  608. #ifdef mig_external
  609. mig_external
  610. #else
  611. extern
  612. #endif /* mig_external */
  613. kern_return_t rpc_jack_client_sync_notify
  614. (
  615. mach_port_t client_port,
  616. int refnum,
  617. client_name_t client_name,
  618. int notify,
  619. message_t message,
  620. int value1,
  621. int value2,
  622. int *result
  623. );
  624. /* Routine rpc_jack_client_sync_notify */
  625. mig_internal novalue _Xrpc_jack_client_sync_notify
  626. (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
  627. {
  628. #ifdef __MigPackStructs
  629. #pragma pack(4)
  630. #endif
  631. typedef struct {
  632. mach_msg_header_t Head;
  633. NDR_record_t NDR;
  634. int refnum;
  635. client_name_t client_name;
  636. int notify;
  637. message_t message;
  638. int value1;
  639. int value2;
  640. mach_msg_trailer_t trailer;
  641. } Request;
  642. #ifdef __MigPackStructs
  643. #pragma pack()
  644. #endif
  645. typedef __Request__rpc_jack_client_sync_notify_t __Request;
  646. typedef __Reply__rpc_jack_client_sync_notify_t Reply;
  647. /*
  648. * typedef struct {
  649. * mach_msg_header_t Head;
  650. * NDR_record_t NDR;
  651. * kern_return_t RetCode;
  652. * } mig_reply_error_t;
  653. */
  654. Request *In0P = (Request *) InHeadP;
  655. Reply *OutP = (Reply *) OutHeadP;
  656. #ifdef __MIG_check__Request__rpc_jack_client_sync_notify_t__defined
  657. kern_return_t check_result;
  658. #endif /* __MIG_check__Request__rpc_jack_client_sync_notify_t__defined */
  659. __DeclareRcvRpc(1000, "rpc_jack_client_sync_notify")
  660. __BeforeRcvRpc(1000, "rpc_jack_client_sync_notify")
  661. #if defined(__MIG_check__Request__rpc_jack_client_sync_notify_t__defined)
  662. check_result = __MIG_check__Request__rpc_jack_client_sync_notify_t((__Request *)In0P);
  663. if (check_result != MACH_MSG_SUCCESS)
  664. { MIG_RETURN_ERROR(OutP, check_result); }
  665. #endif /* defined(__MIG_check__Request__rpc_jack_client_sync_notify_t__defined) */
  666. OutP->RetCode = rpc_jack_client_sync_notify(In0P->Head.msgh_request_port, In0P->refnum, In0P->client_name, In0P->notify, In0P->message, In0P->value1, In0P->value2, &OutP->result);
  667. if (OutP->RetCode != KERN_SUCCESS) {
  668. MIG_RETURN_ERROR(OutP, OutP->RetCode);
  669. }
  670. OutP->NDR = NDR_record;
  671. OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply));
  672. __AfterRcvRpc(1000, "rpc_jack_client_sync_notify")
  673. }
  674. #if ( __MigTypeCheck || __NDR_convert__ )
  675. #if __MIG_check__Request__JackRPCClient_subsystem__
  676. #if !defined(__MIG_check__Request__rpc_jack_client_async_notify_t__defined)
  677. #define __MIG_check__Request__rpc_jack_client_async_notify_t__defined
  678. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  679. #if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
  680. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  681. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  682. __NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
  683. #elif defined(__NDR_convert__int_rep__int__defined)
  684. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  685. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  686. __NDR_convert__int_rep__int((int *)(a), f)
  687. #elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__defined)
  688. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  689. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  690. __NDR_convert__int_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  691. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  692. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  693. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  694. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  695. #endif /* defined(__NDR_convert__*__defined) */
  696. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined */
  697. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  698. #if defined(__NDR_convert__int_rep__JackRPCClient__client_name_t__defined)
  699. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  700. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  701. __NDR_convert__int_rep__JackRPCClient__client_name_t((client_name_t *)(a), f)
  702. #elif defined(__NDR_convert__int_rep__client_name_t__defined)
  703. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  704. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  705. __NDR_convert__int_rep__client_name_t((client_name_t *)(a), f)
  706. #elif defined(__NDR_convert__int_rep__JackRPCClient__string__defined)
  707. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  708. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  709. __NDR_convert__int_rep__JackRPCClient__string(a, f, 64)
  710. #elif defined(__NDR_convert__int_rep__string__defined)
  711. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  712. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  713. __NDR_convert__int_rep__string(a, f, 64)
  714. #endif /* defined(__NDR_convert__*__defined) */
  715. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined */
  716. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  717. #if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
  718. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  719. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  720. __NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
  721. #elif defined(__NDR_convert__int_rep__int__defined)
  722. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  723. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  724. __NDR_convert__int_rep__int((int *)(a), f)
  725. #elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__defined)
  726. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  727. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  728. __NDR_convert__int_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  729. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  730. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  731. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  732. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  733. #endif /* defined(__NDR_convert__*__defined) */
  734. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined */
  735. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__message__defined
  736. #if defined(__NDR_convert__int_rep__JackRPCClient__message_t__defined)
  737. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__message__defined
  738. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__message(a, f) \
  739. __NDR_convert__int_rep__JackRPCClient__message_t((message_t *)(a), f)
  740. #elif defined(__NDR_convert__int_rep__message_t__defined)
  741. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__message__defined
  742. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__message(a, f) \
  743. __NDR_convert__int_rep__message_t((message_t *)(a), f)
  744. #elif defined(__NDR_convert__int_rep__JackRPCClient__string__defined)
  745. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__message__defined
  746. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__message(a, f) \
  747. __NDR_convert__int_rep__JackRPCClient__string(a, f, 256)
  748. #elif defined(__NDR_convert__int_rep__string__defined)
  749. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__message__defined
  750. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__message(a, f) \
  751. __NDR_convert__int_rep__string(a, f, 256)
  752. #endif /* defined(__NDR_convert__*__defined) */
  753. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__message__defined */
  754. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined
  755. #if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
  756. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined
  757. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
  758. __NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
  759. #elif defined(__NDR_convert__int_rep__int__defined)
  760. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined
  761. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
  762. __NDR_convert__int_rep__int((int *)(a), f)
  763. #elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__defined)
  764. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined
  765. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
  766. __NDR_convert__int_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  767. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  768. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined
  769. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
  770. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  771. #endif /* defined(__NDR_convert__*__defined) */
  772. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined */
  773. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined
  774. #if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
  775. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined
  776. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
  777. __NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
  778. #elif defined(__NDR_convert__int_rep__int__defined)
  779. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined
  780. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
  781. __NDR_convert__int_rep__int((int *)(a), f)
  782. #elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__defined)
  783. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined
  784. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
  785. __NDR_convert__int_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  786. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  787. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined
  788. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
  789. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  790. #endif /* defined(__NDR_convert__*__defined) */
  791. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined */
  792. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  793. #if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
  794. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  795. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  796. __NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
  797. #elif defined(__NDR_convert__char_rep__int__defined)
  798. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  799. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  800. __NDR_convert__char_rep__int((int *)(a), f)
  801. #elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
  802. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  803. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  804. __NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  805. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  806. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  807. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  808. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  809. #endif /* defined(__NDR_convert__*__defined) */
  810. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined */
  811. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  812. #if defined(__NDR_convert__char_rep__JackRPCClient__client_name_t__defined)
  813. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  814. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  815. __NDR_convert__char_rep__JackRPCClient__client_name_t((client_name_t *)(a), f)
  816. #elif defined(__NDR_convert__char_rep__client_name_t__defined)
  817. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  818. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  819. __NDR_convert__char_rep__client_name_t((client_name_t *)(a), f)
  820. #elif defined(__NDR_convert__char_rep__JackRPCClient__string__defined)
  821. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  822. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  823. __NDR_convert__char_rep__JackRPCClient__string(a, f, 64)
  824. #elif defined(__NDR_convert__char_rep__string__defined)
  825. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  826. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  827. __NDR_convert__char_rep__string(a, f, 64)
  828. #endif /* defined(__NDR_convert__*__defined) */
  829. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined */
  830. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  831. #if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
  832. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  833. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  834. __NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
  835. #elif defined(__NDR_convert__char_rep__int__defined)
  836. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  837. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  838. __NDR_convert__char_rep__int((int *)(a), f)
  839. #elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
  840. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  841. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  842. __NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  843. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  844. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  845. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  846. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  847. #endif /* defined(__NDR_convert__*__defined) */
  848. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined */
  849. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__message__defined
  850. #if defined(__NDR_convert__char_rep__JackRPCClient__message_t__defined)
  851. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__message__defined
  852. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__message(a, f) \
  853. __NDR_convert__char_rep__JackRPCClient__message_t((message_t *)(a), f)
  854. #elif defined(__NDR_convert__char_rep__message_t__defined)
  855. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__message__defined
  856. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__message(a, f) \
  857. __NDR_convert__char_rep__message_t((message_t *)(a), f)
  858. #elif defined(__NDR_convert__char_rep__JackRPCClient__string__defined)
  859. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__message__defined
  860. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__message(a, f) \
  861. __NDR_convert__char_rep__JackRPCClient__string(a, f, 256)
  862. #elif defined(__NDR_convert__char_rep__string__defined)
  863. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__message__defined
  864. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__message(a, f) \
  865. __NDR_convert__char_rep__string(a, f, 256)
  866. #endif /* defined(__NDR_convert__*__defined) */
  867. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__message__defined */
  868. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined
  869. #if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
  870. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined
  871. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
  872. __NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
  873. #elif defined(__NDR_convert__char_rep__int__defined)
  874. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined
  875. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
  876. __NDR_convert__char_rep__int((int *)(a), f)
  877. #elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
  878. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined
  879. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
  880. __NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  881. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  882. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined
  883. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
  884. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  885. #endif /* defined(__NDR_convert__*__defined) */
  886. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined */
  887. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined
  888. #if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
  889. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined
  890. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
  891. __NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
  892. #elif defined(__NDR_convert__char_rep__int__defined)
  893. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined
  894. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
  895. __NDR_convert__char_rep__int((int *)(a), f)
  896. #elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
  897. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined
  898. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
  899. __NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  900. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  901. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined
  902. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
  903. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  904. #endif /* defined(__NDR_convert__*__defined) */
  905. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined */
  906. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  907. #if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
  908. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  909. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  910. __NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
  911. #elif defined(__NDR_convert__float_rep__int__defined)
  912. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  913. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  914. __NDR_convert__float_rep__int((int *)(a), f)
  915. #elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
  916. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  917. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  918. __NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  919. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  920. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  921. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  922. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  923. #endif /* defined(__NDR_convert__*__defined) */
  924. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined */
  925. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  926. #if defined(__NDR_convert__float_rep__JackRPCClient__client_name_t__defined)
  927. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  928. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  929. __NDR_convert__float_rep__JackRPCClient__client_name_t((client_name_t *)(a), f)
  930. #elif defined(__NDR_convert__float_rep__client_name_t__defined)
  931. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  932. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  933. __NDR_convert__float_rep__client_name_t((client_name_t *)(a), f)
  934. #elif defined(__NDR_convert__float_rep__JackRPCClient__string__defined)
  935. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  936. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  937. __NDR_convert__float_rep__JackRPCClient__string(a, f, 64)
  938. #elif defined(__NDR_convert__float_rep__string__defined)
  939. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  940. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  941. __NDR_convert__float_rep__string(a, f, 64)
  942. #endif /* defined(__NDR_convert__*__defined) */
  943. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined */
  944. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  945. #if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
  946. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  947. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  948. __NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
  949. #elif defined(__NDR_convert__float_rep__int__defined)
  950. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  951. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  952. __NDR_convert__float_rep__int((int *)(a), f)
  953. #elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
  954. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  955. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  956. __NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  957. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  958. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  959. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  960. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  961. #endif /* defined(__NDR_convert__*__defined) */
  962. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined */
  963. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__message__defined
  964. #if defined(__NDR_convert__float_rep__JackRPCClient__message_t__defined)
  965. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__message__defined
  966. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__message(a, f) \
  967. __NDR_convert__float_rep__JackRPCClient__message_t((message_t *)(a), f)
  968. #elif defined(__NDR_convert__float_rep__message_t__defined)
  969. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__message__defined
  970. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__message(a, f) \
  971. __NDR_convert__float_rep__message_t((message_t *)(a), f)
  972. #elif defined(__NDR_convert__float_rep__JackRPCClient__string__defined)
  973. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__message__defined
  974. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__message(a, f) \
  975. __NDR_convert__float_rep__JackRPCClient__string(a, f, 256)
  976. #elif defined(__NDR_convert__float_rep__string__defined)
  977. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__message__defined
  978. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__message(a, f) \
  979. __NDR_convert__float_rep__string(a, f, 256)
  980. #endif /* defined(__NDR_convert__*__defined) */
  981. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__message__defined */
  982. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined
  983. #if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
  984. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined
  985. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
  986. __NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
  987. #elif defined(__NDR_convert__float_rep__int__defined)
  988. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined
  989. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
  990. __NDR_convert__float_rep__int((int *)(a), f)
  991. #elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
  992. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined
  993. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
  994. __NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  995. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  996. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined
  997. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
  998. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  999. #endif /* defined(__NDR_convert__*__defined) */
  1000. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined */
  1001. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined
  1002. #if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
  1003. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined
  1004. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
  1005. __NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
  1006. #elif defined(__NDR_convert__float_rep__int__defined)
  1007. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined
  1008. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
  1009. __NDR_convert__float_rep__int((int *)(a), f)
  1010. #elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
  1011. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined
  1012. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
  1013. __NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  1014. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  1015. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined
  1016. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
  1017. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  1018. #endif /* defined(__NDR_convert__*__defined) */
  1019. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined */
  1020. mig_internal kern_return_t __MIG_check__Request__rpc_jack_client_async_notify_t(__attribute__((__unused__)) __Request__rpc_jack_client_async_notify_t *In0P)
  1021. {
  1022. typedef __Request__rpc_jack_client_async_notify_t __Request;
  1023. #if __MigTypeCheck
  1024. if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
  1025. (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request)))
  1026. return MIG_BAD_ARGUMENTS;
  1027. #endif /* __MigTypeCheck */
  1028. #if __MigTypeCheck
  1029. {
  1030. char * msg_limit = ((char *) In0P) + In0P->Head.msgh_size;
  1031. size_t memchr_limit;
  1032. memchr_limit = min((msg_limit - In0P->client_name), 64);
  1033. if (( memchr(In0P->client_name, '\0', memchr_limit) == NULL ))
  1034. return MIG_BAD_ARGUMENTS; // string length exceeds buffer length!
  1035. memchr_limit = min((msg_limit - In0P->message), 256);
  1036. if (( memchr(In0P->message, '\0', memchr_limit) == NULL ))
  1037. return MIG_BAD_ARGUMENTS; // string length exceeds buffer length!
  1038. }
  1039. #endif /* __MigTypeCheck */
  1040. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined) || \
  1041. defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined) || \
  1042. defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined) || \
  1043. defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__message__defined) || \
  1044. defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined) || \
  1045. defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined)
  1046. if (In0P->NDR.int_rep != NDR_record.int_rep) {
  1047. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined)
  1048. __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum(&In0P->refnum, In0P->NDR.int_rep);
  1049. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined */
  1050. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined)
  1051. __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name(&In0P->client_name, In0P->NDR.int_rep);
  1052. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined */
  1053. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined)
  1054. __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify(&In0P->notify, In0P->NDR.int_rep);
  1055. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined */
  1056. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__message__defined)
  1057. __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__message(&In0P->message, In0P->NDR.int_rep);
  1058. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__message__defined */
  1059. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined)
  1060. __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1(&In0P->value1, In0P->NDR.int_rep);
  1061. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined */
  1062. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined)
  1063. __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2(&In0P->value2, In0P->NDR.int_rep);
  1064. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined */
  1065. }
  1066. #endif /* defined(__NDR_convert__int_rep...) */
  1067. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined) || \
  1068. defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined) || \
  1069. defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined) || \
  1070. defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__message__defined) || \
  1071. defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined) || \
  1072. defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined)
  1073. if (In0P->NDR.char_rep != NDR_record.char_rep) {
  1074. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined)
  1075. __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum(&In0P->refnum, In0P->NDR.char_rep);
  1076. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined */
  1077. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined)
  1078. __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name(&In0P->client_name, In0P->NDR.char_rep);
  1079. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined */
  1080. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined)
  1081. __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify(&In0P->notify, In0P->NDR.char_rep);
  1082. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined */
  1083. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__message__defined)
  1084. __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__message(&In0P->message, In0P->NDR.char_rep);
  1085. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__message__defined */
  1086. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined)
  1087. __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1(&In0P->value1, In0P->NDR.char_rep);
  1088. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined */
  1089. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined)
  1090. __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2(&In0P->value2, In0P->NDR.char_rep);
  1091. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined */
  1092. }
  1093. #endif /* defined(__NDR_convert__char_rep...) */
  1094. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined) || \
  1095. defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined) || \
  1096. defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined) || \
  1097. defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__message__defined) || \
  1098. defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined) || \
  1099. defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined)
  1100. if (In0P->NDR.float_rep != NDR_record.float_rep) {
  1101. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined)
  1102. __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum(&In0P->refnum, In0P->NDR.float_rep);
  1103. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined */
  1104. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined)
  1105. __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name(&In0P->client_name, In0P->NDR.float_rep);
  1106. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined */
  1107. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined)
  1108. __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify(&In0P->notify, In0P->NDR.float_rep);
  1109. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined */
  1110. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__message__defined)
  1111. __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__message(&In0P->message, In0P->NDR.float_rep);
  1112. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__message__defined */
  1113. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined)
  1114. __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1(&In0P->value1, In0P->NDR.float_rep);
  1115. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined */
  1116. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined)
  1117. __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2(&In0P->value2, In0P->NDR.float_rep);
  1118. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined */
  1119. }
  1120. #endif /* defined(__NDR_convert__float_rep...) */
  1121. return MACH_MSG_SUCCESS;
  1122. }
  1123. #endif /* !defined(__MIG_check__Request__rpc_jack_client_async_notify_t__defined) */
  1124. #endif /* __MIG_check__Request__JackRPCClient_subsystem__ */
  1125. #endif /* ( __MigTypeCheck || __NDR_convert__ ) */
  1126. /* SimpleRoutine rpc_jack_client_async_notify */
  1127. #ifdef mig_external
  1128. mig_external
  1129. #else
  1130. extern
  1131. #endif /* mig_external */
  1132. kern_return_t rpc_jack_client_async_notify
  1133. (
  1134. mach_port_t client_port,
  1135. int refnum,
  1136. client_name_t client_name,
  1137. int notify,
  1138. message_t message,
  1139. int value1,
  1140. int value2
  1141. );
  1142. /* SimpleRoutine rpc_jack_client_async_notify */
  1143. mig_internal novalue _Xrpc_jack_client_async_notify
  1144. (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
  1145. {
  1146. #ifdef __MigPackStructs
  1147. #pragma pack(4)
  1148. #endif
  1149. typedef struct {
  1150. mach_msg_header_t Head;
  1151. NDR_record_t NDR;
  1152. int refnum;
  1153. client_name_t client_name;
  1154. int notify;
  1155. message_t message;
  1156. int value1;
  1157. int value2;
  1158. mach_msg_trailer_t trailer;
  1159. } Request;
  1160. #ifdef __MigPackStructs
  1161. #pragma pack()
  1162. #endif
  1163. typedef __Request__rpc_jack_client_async_notify_t __Request;
  1164. typedef __Reply__rpc_jack_client_async_notify_t Reply;
  1165. /*
  1166. * typedef struct {
  1167. * mach_msg_header_t Head;
  1168. * NDR_record_t NDR;
  1169. * kern_return_t RetCode;
  1170. * } mig_reply_error_t;
  1171. */
  1172. Request *In0P = (Request *) InHeadP;
  1173. Reply *OutP = (Reply *) OutHeadP;
  1174. #ifdef __MIG_check__Request__rpc_jack_client_async_notify_t__defined
  1175. kern_return_t check_result;
  1176. #endif /* __MIG_check__Request__rpc_jack_client_async_notify_t__defined */
  1177. __DeclareRcvSimple(1001, "rpc_jack_client_async_notify")
  1178. __BeforeRcvSimple(1001, "rpc_jack_client_async_notify")
  1179. #if defined(__MIG_check__Request__rpc_jack_client_async_notify_t__defined)
  1180. check_result = __MIG_check__Request__rpc_jack_client_async_notify_t((__Request *)In0P);
  1181. if (check_result != MACH_MSG_SUCCESS)
  1182. { MIG_RETURN_ERROR(OutP, check_result); }
  1183. #endif /* defined(__MIG_check__Request__rpc_jack_client_async_notify_t__defined) */
  1184. OutP->RetCode = rpc_jack_client_async_notify(In0P->Head.msgh_request_port, In0P->refnum, In0P->client_name, In0P->notify, In0P->message, In0P->value1, In0P->value2);
  1185. __AfterRcvSimple(1001, "rpc_jack_client_async_notify")
  1186. }
  1187. extern boolean_t JackRPCClient_server(
  1188. mach_msg_header_t *InHeadP,
  1189. mach_msg_header_t *OutHeadP);
  1190. extern mig_routine_t JackRPCClient_server_routine(
  1191. mach_msg_header_t *InHeadP);
  1192. /* Description of this subsystem, for use in direct RPC */
  1193. const struct JackRPCClient_subsystem {
  1194. mig_server_routine_t server; /* Server routine */
  1195. mach_msg_id_t start; /* Min routine number */
  1196. mach_msg_id_t end; /* Max routine number + 1 */
  1197. unsigned int maxsize; /* Max msg size */
  1198. vm_address_t reserved; /* Reserved */
  1199. struct routine_descriptor /*Array of routine descriptors */
  1200. routine[2];
  1201. } JackRPCClient_subsystem = {
  1202. JackRPCClient_server_routine,
  1203. 1000,
  1204. 1002,
  1205. (mach_msg_size_t)sizeof(union __ReplyUnion__JackRPCClient_subsystem),
  1206. (vm_address_t)0,
  1207. {
  1208. { (mig_impl_routine_t) 0,
  1209. (mig_stub_routine_t) _Xrpc_jack_client_sync_notify, 8, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__rpc_jack_client_sync_notify_t)},
  1210. { (mig_impl_routine_t) 0,
  1211. (mig_stub_routine_t) _Xrpc_jack_client_async_notify, 7, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__rpc_jack_client_async_notify_t)},
  1212. }
  1213. };
  1214. mig_external boolean_t JackRPCClient_server
  1215. (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
  1216. {
  1217. /*
  1218. * typedef struct {
  1219. * mach_msg_header_t Head;
  1220. * NDR_record_t NDR;
  1221. * kern_return_t RetCode;
  1222. * } mig_reply_error_t;
  1223. */
  1224. register mig_routine_t routine;
  1225. OutHeadP->msgh_bits = MACH_MSGH_BITS(MACH_MSGH_BITS_REPLY(InHeadP->msgh_bits), 0);
  1226. OutHeadP->msgh_remote_port = InHeadP->msgh_reply_port;
  1227. /* Minimal size: routine() will update it if different */
  1228. OutHeadP->msgh_size = (mach_msg_size_t)sizeof(mig_reply_error_t);
  1229. OutHeadP->msgh_local_port = MACH_PORT_NULL;
  1230. OutHeadP->msgh_id = InHeadP->msgh_id + 100;
  1231. if ((InHeadP->msgh_id > 1001) || (InHeadP->msgh_id < 1000) ||
  1232. ((routine = JackRPCClient_subsystem.routine[InHeadP->msgh_id - 1000].stub_routine) == 0)) {
  1233. ((mig_reply_error_t *)OutHeadP)->NDR = NDR_record;
  1234. ((mig_reply_error_t *)OutHeadP)->RetCode = MIG_BAD_ID;
  1235. return FALSE;
  1236. }
  1237. (*routine) (InHeadP, OutHeadP);
  1238. return TRUE;
  1239. }
  1240. mig_external mig_routine_t JackRPCClient_server_routine
  1241. (mach_msg_header_t *InHeadP)
  1242. {
  1243. register int msgh_id;
  1244. msgh_id = InHeadP->msgh_id - 1000;
  1245. if ((msgh_id > 1) || (msgh_id < 0))
  1246. return 0;
  1247. return JackRPCClient_subsystem.routine[msgh_id].stub_routine;
  1248. }