* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* unlawful or unlicensed copies of an Apple operating system, or to
* circumvent, violate, or enable the circumvention or violation of, any
* terms of an Apple operating system software license agreement.
* unlawful or unlicensed copies of an Apple operating system, or to
* circumvent, violate, or enable the circumvention or violation of, any
* terms of an Apple operating system software license agreement.
* Please obtain a copy of the License at
* http://www.opensource.apple.com/apsl/ and read it before using this file.
* Please obtain a copy of the License at
* http://www.opensource.apple.com/apsl/ and read it before using this file.
* The Original Code and all software distributed under the License are
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
* The Original Code and all software distributed under the License are
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
* Please see the License for the specific language governing rights and
* limitations under the License.
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
* Please see the License for the specific language governing rights and
* limitations under the License.
-typedef void (*mig_stub_routine_t) (mach_msg_header_t *InHeadP,
- mach_msg_header_t *OutHeadP);
+typedef void (*mig_stub_routine_t) (mach_msg_header_t *InHeadP,
+ mach_msg_header_t *OutHeadP);
#define MIG_ROUTINE_ARG_DESCRIPTOR_NULL ((mig_routine_arg_descriptor_t)0)
struct routine_descriptor {
#define MIG_ROUTINE_ARG_DESCRIPTOR_NULL ((mig_routine_arg_descriptor_t)0)
struct routine_descriptor {
- mig_impl_routine_t impl_routine; /* Server work func pointer */
- mig_stub_routine_t stub_routine; /* Unmarshalling func pointer */
- unsigned int argc; /* Number of argument words */
- unsigned int descr_count; /* Number complex descriptors */
+ mig_impl_routine_t impl_routine; /* Server work func pointer */
+ mig_stub_routine_t stub_routine; /* Unmarshalling func pointer */
+ unsigned int argc; /* Number of argument words */
+ unsigned int descr_count; /* Number complex descriptors */
- arg_descr; /* pointer to descriptor array*/
- unsigned int max_reply_msg; /* Max size for reply msg */
+ arg_descr; /* pointer to descriptor array*/
+ unsigned int max_reply_msg; /* Max size for reply msg */
- mig_server_routine_t server; /* pointer to demux routine */
- mach_msg_id_t start; /* Min routine number */
- mach_msg_id_t end; /* Max routine number + 1 */
- mach_msg_size_t maxsize; /* Max reply message size */
- vm_address_t reserved; /* reserved for MIG use */
+ mig_server_routine_t server; /* pointer to demux routine */
+ mach_msg_id_t start; /* Min routine number */
+ mach_msg_id_t end; /* Max routine number + 1 */
+ mach_msg_size_t maxsize; /* Max reply message size */
+ vm_address_t reserved; /* reserved for MIG use */
- char *ms_routine_name;
- int ms_routine_number;
- void (*ms_routine)(void); /* Since the functions in the
- * symbol table have unknown
- * signatures, this is the best
- * we can do...
- */
+ char *ms_routine_name;
+ int ms_routine_number;
+ void (*ms_routine)(void); /* Since the functions in the
+ * symbol table have unknown
+ * signatures, this is the best
+ * we can do...
+ */
-typedef struct IMIGObjectVtbl IMIGObjectVtbl;
-typedef struct IMIGNotifyObjectVtbl IMIGNotifyObjectVtbl;
+typedef struct IMIGObjectVtbl IMIGObjectVtbl;
+typedef struct IMIGNotifyObjectVtbl IMIGNotifyObjectVtbl;
- IMIGObject *object,
- IMIGNotifyObject *notify,
- mig_notify_type_t notify_type);
-};
+ IMIGObject *object,
+ IMIGNotifyObject *notify,
+ mig_notify_type_t notify_type);
+};
- IMIGNotifyObject *notify,
- mig_server_routine_t *server);
+ IMIGNotifyObject *notify,
+ mig_server_routine_t *server);
- IMIGNotifyObject *notify,
- mig_notify_type_t notify_type);
+ IMIGNotifyObject *notify,
+ mig_notify_type_t notify_type);
- IMIGNotifyObject *notify,
- IMIGNotifyObject *notify_notify,
- mig_notify_type_t notify_type);
+ IMIGNotifyObject *notify,
+ IMIGNotifyObject *notify_notify,
+ mig_notify_type_t notify_type);
- IMIGNotifyObject *notify,
- IMIGObject *object,
- mig_notify_type_t notify_type);
+ IMIGNotifyObject *notify,
+ IMIGObject *object,
+ mig_notify_type_t notify_type);
-extern int mig_strncpy(char *dest, const char *src, int len);
-extern int mig_strncpy_zerofill(char *dest, const char *src, int len);
+extern int mig_strncpy(char *dest, const char *src, int len);
+extern int mig_strncpy_zerofill(char *dest, const char *src, int len);