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.

1046 lines
56KB

  1. /*
  2. * IDENTIFICATION:
  3. * stub generated Thu Oct 11 16:40:18 2007
  4. * with a MiG generated Mon Sep 11 19:11:05 PDT 2006 by root@b09.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. int value;
  92. } __Request__rpc_jack_client_sync_notify_t;
  93. #ifdef __MigPackStructs
  94. #pragma pack()
  95. #endif
  96. #ifdef __MigPackStructs
  97. #pragma pack(4)
  98. #endif
  99. typedef struct {
  100. mach_msg_header_t Head;
  101. NDR_record_t NDR;
  102. int refnum;
  103. client_name_t client_name;
  104. int notify;
  105. int value;
  106. } __Request__rpc_jack_client_async_notify_t;
  107. #ifdef __MigPackStructs
  108. #pragma pack()
  109. #endif
  110. #endif /* !__Request__JackRPCClient_subsystem__defined */
  111. /* typedefs for all replies */
  112. #ifndef __Reply__JackRPCClient_subsystem__defined
  113. #define __Reply__JackRPCClient_subsystem__defined
  114. #ifdef __MigPackStructs
  115. #pragma pack(4)
  116. #endif
  117. typedef struct {
  118. mach_msg_header_t Head;
  119. NDR_record_t NDR;
  120. kern_return_t RetCode;
  121. int result;
  122. } __Reply__rpc_jack_client_sync_notify_t;
  123. #ifdef __MigPackStructs
  124. #pragma pack()
  125. #endif
  126. #ifdef __MigPackStructs
  127. #pragma pack(4)
  128. #endif
  129. typedef struct {
  130. mach_msg_header_t Head;
  131. NDR_record_t NDR;
  132. kern_return_t RetCode;
  133. } __Reply__rpc_jack_client_async_notify_t;
  134. #ifdef __MigPackStructs
  135. #pragma pack()
  136. #endif
  137. #endif /* !__Reply__JackRPCClient_subsystem__defined */
  138. /* union of all replies */
  139. #ifndef __ReplyUnion__JackRPCClient_subsystem__defined
  140. #define __ReplyUnion__JackRPCClient_subsystem__defined
  141. union __ReplyUnion__JackRPCClient_subsystem {
  142. __Reply__rpc_jack_client_sync_notify_t Reply_rpc_jack_client_sync_notify;
  143. __Reply__rpc_jack_client_async_notify_t Reply_rpc_jack_client_async_notify;
  144. };
  145. #endif /* __RequestUnion__JackRPCClient_subsystem__defined */
  146. /* Forward Declarations */
  147. mig_internal novalue _Xrpc_jack_client_sync_notify
  148. (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
  149. mig_internal novalue _Xrpc_jack_client_async_notify
  150. (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
  151. #if (__MigTypeCheck || __NDR_convert__ )
  152. #if __MIG_check__Request__JackRPCClient_subsystem__
  153. #if !defined(__MIG_check__Request__rpc_jack_client_sync_notify_t__defined)
  154. #define __MIG_check__Request__rpc_jack_client_sync_notify_t__defined
  155. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  156. #if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
  157. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  158. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  159. __NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
  160. #elif defined(__NDR_convert__int_rep__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__int((int *)(a), f)
  164. #elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__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__JackRPCClient__int32_t((int32_t *)(a), f)
  168. #elif defined(__NDR_convert__int_rep__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__int32_t((int32_t *)(a), f)
  172. #endif /* defined(__NDR_convert__*__defined) */
  173. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined */
  174. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  175. #if defined(__NDR_convert__int_rep__JackRPCClient__client_name_t__defined)
  176. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  177. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  178. __NDR_convert__int_rep__JackRPCClient__client_name_t((client_name_t *)(a), f)
  179. #elif defined(__NDR_convert__int_rep__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__client_name_t((client_name_t *)(a), f)
  183. #elif defined(__NDR_convert__int_rep__JackRPCClient__string__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__JackRPCClient__string(a, f, 128)
  187. #elif defined(__NDR_convert__int_rep__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__string(a, f, 128)
  191. #endif /* defined(__NDR_convert__*__defined) */
  192. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined */
  193. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  194. #if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
  195. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  196. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  197. __NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
  198. #elif defined(__NDR_convert__int_rep__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__int((int *)(a), f)
  202. #elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__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__JackRPCClient__int32_t((int32_t *)(a), f)
  206. #elif defined(__NDR_convert__int_rep__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__int32_t((int32_t *)(a), f)
  210. #endif /* defined(__NDR_convert__*__defined) */
  211. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */
  212. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined
  213. #if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
  214. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined
  215. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
  216. __NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
  217. #elif defined(__NDR_convert__int_rep__int__defined)
  218. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined
  219. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
  220. __NDR_convert__int_rep__int((int *)(a), f)
  221. #elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__defined)
  222. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined
  223. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
  224. __NDR_convert__int_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  225. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  226. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined
  227. #define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
  228. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  229. #endif /* defined(__NDR_convert__*__defined) */
  230. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined */
  231. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  232. #if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
  233. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  234. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  235. __NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
  236. #elif defined(__NDR_convert__char_rep__int__defined)
  237. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  238. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  239. __NDR_convert__char_rep__int((int *)(a), f)
  240. #elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
  241. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  242. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  243. __NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  244. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  245. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  246. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  247. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  248. #endif /* defined(__NDR_convert__*__defined) */
  249. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined */
  250. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  251. #if defined(__NDR_convert__char_rep__JackRPCClient__client_name_t__defined)
  252. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  253. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  254. __NDR_convert__char_rep__JackRPCClient__client_name_t((client_name_t *)(a), f)
  255. #elif defined(__NDR_convert__char_rep__client_name_t__defined)
  256. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  257. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  258. __NDR_convert__char_rep__client_name_t((client_name_t *)(a), f)
  259. #elif defined(__NDR_convert__char_rep__JackRPCClient__string__defined)
  260. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  261. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  262. __NDR_convert__char_rep__JackRPCClient__string(a, f, 128)
  263. #elif defined(__NDR_convert__char_rep__string__defined)
  264. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  265. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  266. __NDR_convert__char_rep__string(a, f, 128)
  267. #endif /* defined(__NDR_convert__*__defined) */
  268. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined */
  269. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  270. #if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
  271. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  272. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  273. __NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
  274. #elif defined(__NDR_convert__char_rep__int__defined)
  275. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  276. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  277. __NDR_convert__char_rep__int((int *)(a), f)
  278. #elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
  279. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  280. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  281. __NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  282. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  283. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  284. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  285. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  286. #endif /* defined(__NDR_convert__*__defined) */
  287. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */
  288. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined
  289. #if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
  290. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined
  291. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
  292. __NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
  293. #elif defined(__NDR_convert__char_rep__int__defined)
  294. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined
  295. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
  296. __NDR_convert__char_rep__int((int *)(a), f)
  297. #elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
  298. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined
  299. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
  300. __NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  301. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  302. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined
  303. #define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
  304. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  305. #endif /* defined(__NDR_convert__*__defined) */
  306. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined */
  307. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  308. #if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
  309. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  310. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  311. __NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
  312. #elif defined(__NDR_convert__float_rep__int__defined)
  313. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  314. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  315. __NDR_convert__float_rep__int((int *)(a), f)
  316. #elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
  317. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  318. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  319. __NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  320. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  321. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
  322. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum(a, f) \
  323. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  324. #endif /* defined(__NDR_convert__*__defined) */
  325. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined */
  326. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  327. #if defined(__NDR_convert__float_rep__JackRPCClient__client_name_t__defined)
  328. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  329. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  330. __NDR_convert__float_rep__JackRPCClient__client_name_t((client_name_t *)(a), f)
  331. #elif defined(__NDR_convert__float_rep__client_name_t__defined)
  332. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  333. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  334. __NDR_convert__float_rep__client_name_t((client_name_t *)(a), f)
  335. #elif defined(__NDR_convert__float_rep__JackRPCClient__string__defined)
  336. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  337. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  338. __NDR_convert__float_rep__JackRPCClient__string(a, f, 128)
  339. #elif defined(__NDR_convert__float_rep__string__defined)
  340. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined
  341. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name(a, f) \
  342. __NDR_convert__float_rep__string(a, f, 128)
  343. #endif /* defined(__NDR_convert__*__defined) */
  344. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined */
  345. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  346. #if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
  347. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  348. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  349. __NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
  350. #elif defined(__NDR_convert__float_rep__int__defined)
  351. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  352. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  353. __NDR_convert__float_rep__int((int *)(a), f)
  354. #elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
  355. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  356. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  357. __NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  358. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  359. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined
  360. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify(a, f) \
  361. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  362. #endif /* defined(__NDR_convert__*__defined) */
  363. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */
  364. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined
  365. #if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
  366. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined
  367. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
  368. __NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
  369. #elif defined(__NDR_convert__float_rep__int__defined)
  370. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined
  371. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
  372. __NDR_convert__float_rep__int((int *)(a), f)
  373. #elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
  374. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined
  375. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
  376. __NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  377. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  378. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined
  379. #define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
  380. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  381. #endif /* defined(__NDR_convert__*__defined) */
  382. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined */
  383. mig_internal kern_return_t __MIG_check__Request__rpc_jack_client_sync_notify_t(__Request__rpc_jack_client_sync_notify_t *In0P)
  384. {
  385. typedef __Request__rpc_jack_client_sync_notify_t __Request;
  386. #if __MigTypeCheck
  387. if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
  388. (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request)))
  389. return MIG_BAD_ARGUMENTS;
  390. #endif /* __MigTypeCheck */
  391. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined) || \
  392. defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined) || \
  393. defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined) || \
  394. defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined)
  395. if (In0P->NDR.int_rep != NDR_record.int_rep) {
  396. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined)
  397. __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum(&In0P->refnum, In0P->NDR.int_rep);
  398. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined */
  399. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined)
  400. __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name(&In0P->client_name, In0P->NDR.int_rep);
  401. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined */
  402. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined)
  403. __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify(&In0P->notify, In0P->NDR.int_rep);
  404. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */
  405. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined)
  406. __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value(&In0P->value, In0P->NDR.int_rep);
  407. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined */
  408. }
  409. #endif /* defined(__NDR_convert__int_rep...) */
  410. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined) || \
  411. defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined) || \
  412. defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined) || \
  413. defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined)
  414. if (In0P->NDR.char_rep != NDR_record.char_rep) {
  415. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined)
  416. __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum(&In0P->refnum, In0P->NDR.char_rep);
  417. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined */
  418. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined)
  419. __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name(&In0P->client_name, In0P->NDR.char_rep);
  420. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined */
  421. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined)
  422. __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify(&In0P->notify, In0P->NDR.char_rep);
  423. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */
  424. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined)
  425. __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value(&In0P->value, In0P->NDR.char_rep);
  426. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined */
  427. }
  428. #endif /* defined(__NDR_convert__char_rep...) */
  429. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined) || \
  430. defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined) || \
  431. defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined) || \
  432. defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined)
  433. if (In0P->NDR.float_rep != NDR_record.float_rep) {
  434. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined)
  435. __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum(&In0P->refnum, In0P->NDR.float_rep);
  436. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined */
  437. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined)
  438. __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name(&In0P->client_name, In0P->NDR.float_rep);
  439. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined */
  440. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined)
  441. __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify(&In0P->notify, In0P->NDR.float_rep);
  442. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */
  443. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined)
  444. __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value(&In0P->value, In0P->NDR.float_rep);
  445. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined */
  446. }
  447. #endif /* defined(__NDR_convert__float_rep...) */
  448. return MACH_MSG_SUCCESS;
  449. }
  450. #endif /* !defined(__MIG_check__Request__rpc_jack_client_sync_notify_t__defined) */
  451. #endif /* __MIG_check__Request__JackRPCClient_subsystem__ */
  452. #endif /* ( __MigTypeCheck || __NDR_convert__ ) */
  453. /* Routine rpc_jack_client_sync_notify */
  454. #ifdef mig_external
  455. mig_external
  456. #else
  457. extern
  458. #endif /* mig_external */
  459. kern_return_t rpc_jack_client_sync_notify
  460. (
  461. mach_port_t client_port,
  462. int refnum,
  463. client_name_t client_name,
  464. int notify,
  465. int value,
  466. int *result
  467. );
  468. /* Routine rpc_jack_client_sync_notify */
  469. mig_internal novalue _Xrpc_jack_client_sync_notify
  470. (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
  471. {
  472. #ifdef __MigPackStructs
  473. #pragma pack(4)
  474. #endif
  475. typedef struct {
  476. mach_msg_header_t Head;
  477. NDR_record_t NDR;
  478. int refnum;
  479. client_name_t client_name;
  480. int notify;
  481. int value;
  482. mach_msg_trailer_t trailer;
  483. } Request;
  484. #ifdef __MigPackStructs
  485. #pragma pack()
  486. #endif
  487. typedef __Request__rpc_jack_client_sync_notify_t __Request;
  488. typedef __Reply__rpc_jack_client_sync_notify_t Reply;
  489. /*
  490. * typedef struct {
  491. * mach_msg_header_t Head;
  492. * NDR_record_t NDR;
  493. * kern_return_t RetCode;
  494. * } mig_reply_error_t;
  495. */
  496. Request *In0P = (Request *) InHeadP;
  497. Reply *OutP = (Reply *) OutHeadP;
  498. #ifdef __MIG_check__Request__rpc_jack_client_sync_notify_t__defined
  499. kern_return_t check_result;
  500. #endif /* __MIG_check__Request__rpc_jack_client_sync_notify_t__defined */
  501. __DeclareRcvRpc(1000, "rpc_jack_client_sync_notify")
  502. __BeforeRcvRpc(1000, "rpc_jack_client_sync_notify")
  503. #if defined(__MIG_check__Request__rpc_jack_client_sync_notify_t__defined)
  504. check_result = __MIG_check__Request__rpc_jack_client_sync_notify_t((__Request *)In0P);
  505. if (check_result != MACH_MSG_SUCCESS)
  506. { MIG_RETURN_ERROR(OutP, check_result); }
  507. #endif /* defined(__MIG_check__Request__rpc_jack_client_sync_notify_t__defined) */
  508. OutP->RetCode = rpc_jack_client_sync_notify(In0P->Head.msgh_request_port, In0P->refnum, In0P->client_name, In0P->notify, In0P->value, &OutP->result);
  509. if (OutP->RetCode != KERN_SUCCESS) {
  510. MIG_RETURN_ERROR(OutP, OutP->RetCode);
  511. }
  512. OutP->NDR = NDR_record;
  513. OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply));
  514. __AfterRcvRpc(1000, "rpc_jack_client_sync_notify")
  515. }
  516. #if (__MigTypeCheck || __NDR_convert__ )
  517. #if __MIG_check__Request__JackRPCClient_subsystem__
  518. #if !defined(__MIG_check__Request__rpc_jack_client_async_notify_t__defined)
  519. #define __MIG_check__Request__rpc_jack_client_async_notify_t__defined
  520. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  521. #if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
  522. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  523. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  524. __NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
  525. #elif defined(__NDR_convert__int_rep__int__defined)
  526. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  527. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  528. __NDR_convert__int_rep__int((int *)(a), f)
  529. #elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__defined)
  530. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  531. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  532. __NDR_convert__int_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  533. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  534. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  535. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  536. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  537. #endif /* defined(__NDR_convert__*__defined) */
  538. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined */
  539. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  540. #if defined(__NDR_convert__int_rep__JackRPCClient__client_name_t__defined)
  541. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  542. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  543. __NDR_convert__int_rep__JackRPCClient__client_name_t((client_name_t *)(a), f)
  544. #elif defined(__NDR_convert__int_rep__client_name_t__defined)
  545. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  546. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  547. __NDR_convert__int_rep__client_name_t((client_name_t *)(a), f)
  548. #elif defined(__NDR_convert__int_rep__JackRPCClient__string__defined)
  549. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  550. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  551. __NDR_convert__int_rep__JackRPCClient__string(a, f, 128)
  552. #elif defined(__NDR_convert__int_rep__string__defined)
  553. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  554. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  555. __NDR_convert__int_rep__string(a, f, 128)
  556. #endif /* defined(__NDR_convert__*__defined) */
  557. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined */
  558. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  559. #if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
  560. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  561. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  562. __NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
  563. #elif defined(__NDR_convert__int_rep__int__defined)
  564. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  565. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  566. __NDR_convert__int_rep__int((int *)(a), f)
  567. #elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__defined)
  568. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  569. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  570. __NDR_convert__int_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  571. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  572. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  573. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  574. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  575. #endif /* defined(__NDR_convert__*__defined) */
  576. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined */
  577. #ifndef __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined
  578. #if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
  579. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined
  580. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
  581. __NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
  582. #elif defined(__NDR_convert__int_rep__int__defined)
  583. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined
  584. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
  585. __NDR_convert__int_rep__int((int *)(a), f)
  586. #elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__defined)
  587. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined
  588. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
  589. __NDR_convert__int_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  590. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  591. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined
  592. #define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
  593. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  594. #endif /* defined(__NDR_convert__*__defined) */
  595. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined */
  596. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  597. #if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
  598. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  599. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  600. __NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
  601. #elif defined(__NDR_convert__char_rep__int__defined)
  602. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  603. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  604. __NDR_convert__char_rep__int((int *)(a), f)
  605. #elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
  606. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  607. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  608. __NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  609. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  610. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  611. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  612. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  613. #endif /* defined(__NDR_convert__*__defined) */
  614. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined */
  615. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  616. #if defined(__NDR_convert__char_rep__JackRPCClient__client_name_t__defined)
  617. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  618. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  619. __NDR_convert__char_rep__JackRPCClient__client_name_t((client_name_t *)(a), f)
  620. #elif defined(__NDR_convert__char_rep__client_name_t__defined)
  621. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  622. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  623. __NDR_convert__char_rep__client_name_t((client_name_t *)(a), f)
  624. #elif defined(__NDR_convert__char_rep__JackRPCClient__string__defined)
  625. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  626. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  627. __NDR_convert__char_rep__JackRPCClient__string(a, f, 128)
  628. #elif defined(__NDR_convert__char_rep__string__defined)
  629. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  630. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  631. __NDR_convert__char_rep__string(a, f, 128)
  632. #endif /* defined(__NDR_convert__*__defined) */
  633. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined */
  634. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  635. #if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
  636. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  637. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  638. __NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
  639. #elif defined(__NDR_convert__char_rep__int__defined)
  640. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  641. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  642. __NDR_convert__char_rep__int((int *)(a), f)
  643. #elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
  644. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  645. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  646. __NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  647. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  648. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  649. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  650. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  651. #endif /* defined(__NDR_convert__*__defined) */
  652. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined */
  653. #ifndef __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined
  654. #if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
  655. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined
  656. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
  657. __NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
  658. #elif defined(__NDR_convert__char_rep__int__defined)
  659. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined
  660. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
  661. __NDR_convert__char_rep__int((int *)(a), f)
  662. #elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
  663. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined
  664. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
  665. __NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  666. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  667. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined
  668. #define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
  669. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  670. #endif /* defined(__NDR_convert__*__defined) */
  671. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined */
  672. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  673. #if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
  674. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  675. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  676. __NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
  677. #elif defined(__NDR_convert__float_rep__int__defined)
  678. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  679. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  680. __NDR_convert__float_rep__int((int *)(a), f)
  681. #elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
  682. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  683. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  684. __NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  685. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  686. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
  687. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum(a, f) \
  688. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  689. #endif /* defined(__NDR_convert__*__defined) */
  690. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined */
  691. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  692. #if defined(__NDR_convert__float_rep__JackRPCClient__client_name_t__defined)
  693. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  694. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  695. __NDR_convert__float_rep__JackRPCClient__client_name_t((client_name_t *)(a), f)
  696. #elif defined(__NDR_convert__float_rep__client_name_t__defined)
  697. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  698. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  699. __NDR_convert__float_rep__client_name_t((client_name_t *)(a), f)
  700. #elif defined(__NDR_convert__float_rep__JackRPCClient__string__defined)
  701. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  702. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  703. __NDR_convert__float_rep__JackRPCClient__string(a, f, 128)
  704. #elif defined(__NDR_convert__float_rep__string__defined)
  705. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined
  706. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name(a, f) \
  707. __NDR_convert__float_rep__string(a, f, 128)
  708. #endif /* defined(__NDR_convert__*__defined) */
  709. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined */
  710. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  711. #if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
  712. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  713. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  714. __NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
  715. #elif defined(__NDR_convert__float_rep__int__defined)
  716. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  717. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  718. __NDR_convert__float_rep__int((int *)(a), f)
  719. #elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
  720. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  721. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  722. __NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  723. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  724. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined
  725. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify(a, f) \
  726. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  727. #endif /* defined(__NDR_convert__*__defined) */
  728. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined */
  729. #ifndef __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined
  730. #if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
  731. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined
  732. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
  733. __NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
  734. #elif defined(__NDR_convert__float_rep__int__defined)
  735. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined
  736. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
  737. __NDR_convert__float_rep__int((int *)(a), f)
  738. #elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
  739. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined
  740. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
  741. __NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
  742. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  743. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined
  744. #define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
  745. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  746. #endif /* defined(__NDR_convert__*__defined) */
  747. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined */
  748. mig_internal kern_return_t __MIG_check__Request__rpc_jack_client_async_notify_t(__Request__rpc_jack_client_async_notify_t *In0P)
  749. {
  750. typedef __Request__rpc_jack_client_async_notify_t __Request;
  751. #if __MigTypeCheck
  752. if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
  753. (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request)))
  754. return MIG_BAD_ARGUMENTS;
  755. #endif /* __MigTypeCheck */
  756. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined) || \
  757. defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined) || \
  758. defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined) || \
  759. defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined)
  760. if (In0P->NDR.int_rep != NDR_record.int_rep) {
  761. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined)
  762. __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum(&In0P->refnum, In0P->NDR.int_rep);
  763. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined */
  764. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined)
  765. __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name(&In0P->client_name, In0P->NDR.int_rep);
  766. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined */
  767. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined)
  768. __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify(&In0P->notify, In0P->NDR.int_rep);
  769. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined */
  770. #if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined)
  771. __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value(&In0P->value, In0P->NDR.int_rep);
  772. #endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined */
  773. }
  774. #endif /* defined(__NDR_convert__int_rep...) */
  775. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined) || \
  776. defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined) || \
  777. defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined) || \
  778. defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined)
  779. if (In0P->NDR.char_rep != NDR_record.char_rep) {
  780. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined)
  781. __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum(&In0P->refnum, In0P->NDR.char_rep);
  782. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined */
  783. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined)
  784. __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name(&In0P->client_name, In0P->NDR.char_rep);
  785. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined */
  786. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined)
  787. __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify(&In0P->notify, In0P->NDR.char_rep);
  788. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined */
  789. #if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined)
  790. __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value(&In0P->value, In0P->NDR.char_rep);
  791. #endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined */
  792. }
  793. #endif /* defined(__NDR_convert__char_rep...) */
  794. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined) || \
  795. defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined) || \
  796. defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined) || \
  797. defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined)
  798. if (In0P->NDR.float_rep != NDR_record.float_rep) {
  799. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined)
  800. __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum(&In0P->refnum, In0P->NDR.float_rep);
  801. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined */
  802. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined)
  803. __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name(&In0P->client_name, In0P->NDR.float_rep);
  804. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined */
  805. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined)
  806. __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify(&In0P->notify, In0P->NDR.float_rep);
  807. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined */
  808. #if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined)
  809. __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value(&In0P->value, In0P->NDR.float_rep);
  810. #endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined */
  811. }
  812. #endif /* defined(__NDR_convert__float_rep...) */
  813. return MACH_MSG_SUCCESS;
  814. }
  815. #endif /* !defined(__MIG_check__Request__rpc_jack_client_async_notify_t__defined) */
  816. #endif /* __MIG_check__Request__JackRPCClient_subsystem__ */
  817. #endif /* ( __MigTypeCheck || __NDR_convert__ ) */
  818. /* SimpleRoutine rpc_jack_client_async_notify */
  819. #ifdef mig_external
  820. mig_external
  821. #else
  822. extern
  823. #endif /* mig_external */
  824. kern_return_t rpc_jack_client_async_notify
  825. (
  826. mach_port_t client_port,
  827. int refnum,
  828. client_name_t client_name,
  829. int notify,
  830. int value
  831. );
  832. /* SimpleRoutine rpc_jack_client_async_notify */
  833. mig_internal novalue _Xrpc_jack_client_async_notify
  834. (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
  835. {
  836. #ifdef __MigPackStructs
  837. #pragma pack(4)
  838. #endif
  839. typedef struct {
  840. mach_msg_header_t Head;
  841. NDR_record_t NDR;
  842. int refnum;
  843. client_name_t client_name;
  844. int notify;
  845. int value;
  846. mach_msg_trailer_t trailer;
  847. } Request;
  848. #ifdef __MigPackStructs
  849. #pragma pack()
  850. #endif
  851. typedef __Request__rpc_jack_client_async_notify_t __Request;
  852. typedef __Reply__rpc_jack_client_async_notify_t Reply;
  853. /*
  854. * typedef struct {
  855. * mach_msg_header_t Head;
  856. * NDR_record_t NDR;
  857. * kern_return_t RetCode;
  858. * } mig_reply_error_t;
  859. */
  860. Request *In0P = (Request *) InHeadP;
  861. Reply *OutP = (Reply *) OutHeadP;
  862. #ifdef __MIG_check__Request__rpc_jack_client_async_notify_t__defined
  863. kern_return_t check_result;
  864. #endif /* __MIG_check__Request__rpc_jack_client_async_notify_t__defined */
  865. __DeclareRcvSimple(1001, "rpc_jack_client_async_notify")
  866. __BeforeRcvSimple(1001, "rpc_jack_client_async_notify")
  867. #if defined(__MIG_check__Request__rpc_jack_client_async_notify_t__defined)
  868. check_result = __MIG_check__Request__rpc_jack_client_async_notify_t((__Request *)In0P);
  869. if (check_result != MACH_MSG_SUCCESS)
  870. { MIG_RETURN_ERROR(OutP, check_result); }
  871. #endif /* defined(__MIG_check__Request__rpc_jack_client_async_notify_t__defined) */
  872. OutP->RetCode = rpc_jack_client_async_notify(In0P->Head.msgh_request_port, In0P->refnum, In0P->client_name, In0P->notify, In0P->value);
  873. __AfterRcvSimple(1001, "rpc_jack_client_async_notify")
  874. }
  875. extern boolean_t JackRPCClient_server(
  876. mach_msg_header_t *InHeadP,
  877. mach_msg_header_t *OutHeadP);
  878. extern mig_routine_t JackRPCClient_server_routine(
  879. mach_msg_header_t *InHeadP);
  880. /* Description of this subsystem, for use in direct RPC */
  881. const struct JackRPCClient_subsystem {
  882. mig_server_routine_t server; /* Server routine */
  883. mach_msg_id_t start; /* Min routine number */
  884. mach_msg_id_t end; /* Max routine number + 1 */
  885. unsigned int maxsize; /* Max msg size */
  886. vm_address_t reserved; /* Reserved */
  887. struct routine_descriptor /*Array of routine descriptors */
  888. routine[2];
  889. } JackRPCClient_subsystem = {
  890. JackRPCClient_server_routine,
  891. 1000,
  892. 1002,
  893. (mach_msg_size_t)sizeof(union __ReplyUnion__JackRPCClient_subsystem),
  894. (vm_address_t)0,
  895. {
  896. { (mig_impl_routine_t) 0,
  897. (mig_stub_routine_t) _Xrpc_jack_client_sync_notify, 6, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__rpc_jack_client_sync_notify_t)},
  898. { (mig_impl_routine_t) 0,
  899. (mig_stub_routine_t) _Xrpc_jack_client_async_notify, 5, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__rpc_jack_client_async_notify_t)},
  900. }
  901. };
  902. mig_external boolean_t JackRPCClient_server
  903. (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
  904. {
  905. /*
  906. * typedef struct {
  907. * mach_msg_header_t Head;
  908. * NDR_record_t NDR;
  909. * kern_return_t RetCode;
  910. * } mig_reply_error_t;
  911. */
  912. register mig_routine_t routine;
  913. OutHeadP->msgh_bits = MACH_MSGH_BITS(MACH_MSGH_BITS_REPLY(InHeadP->msgh_bits), 0);
  914. OutHeadP->msgh_remote_port = InHeadP->msgh_reply_port;
  915. /* Minimal size: routine() will update it if different */
  916. OutHeadP->msgh_size = (mach_msg_size_t)sizeof(mig_reply_error_t);
  917. OutHeadP->msgh_local_port = MACH_PORT_NULL;
  918. OutHeadP->msgh_id = InHeadP->msgh_id + 100;
  919. if ((InHeadP->msgh_id > 1001) || (InHeadP->msgh_id < 1000) ||
  920. ((routine = JackRPCClient_subsystem.routine[InHeadP->msgh_id - 1000].stub_routine) == 0)) {
  921. ((mig_reply_error_t *)OutHeadP)->NDR = NDR_record;
  922. ((mig_reply_error_t *)OutHeadP)->RetCode = MIG_BAD_ID;
  923. return FALSE;
  924. }
  925. (*routine) (InHeadP, OutHeadP);
  926. return TRUE;
  927. }
  928. mig_external mig_routine_t JackRPCClient_server_routine
  929. (mach_msg_header_t *InHeadP)
  930. {
  931. register int msgh_id;
  932. msgh_id = InHeadP->msgh_id - 1000;
  933. if ((msgh_id > 1) || (msgh_id < 0))
  934. return 0;
  935. return JackRPCClient_subsystem.routine[msgh_id].stub_routine;
  936. }