diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-03-03 19:12:52 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-03-25 08:44:10 +0100 |
commit | 50cc5152ebb4872b57a764d7b5ad62636f674e01 (patch) | |
tree | a506bbf3baac6e9593a4799623ed50a86cf12a75 /include/mach/mach_types.defs | |
parent | e33a07f421a84e54360628354e4faa0cf4a5d36f (diff) |
include: make the memory_object_t types translation functions mutable
Make the intran, outtran and destructor functions mutable using
preprocessor macros. Make it possible to inject imports using the
MEMORY_OBJECT_IMPORTS macro. This way, userspace servers can provide
their own translation functions.
* include/mach/mach_types.defs (memory_object_t): Make the translation
mutable using preprocessor macros.
* include/mach/memory_object.defs: Likewise for the inlined type declarations.
Honor MEMORY_OBJECT_IMPORTS.
* include/mach/memory_object_default.defs: Likewise.
Diffstat (limited to 'include/mach/mach_types.defs')
-rw-r--r-- | include/mach/mach_types.defs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/mach/mach_types.defs b/include/mach/mach_types.defs index 607d5d9..bfce6cb 100644 --- a/include/mach/mach_types.defs +++ b/include/mach/mach_types.defs @@ -135,6 +135,16 @@ type memory_object_t = mach_port_t ctype: mach_port_t #if KERNEL_SERVER intran: ipc_port_t null_conversion(mach_port_t) +#else /* KERNEL_SERVER */ +#ifdef MEMORY_OBJECT_INTRAN + intran: MEMORY_OBJECT_INTRAN +#endif +#ifdef MEMORY_OBJECT_OUTTRAN + outtran: MEMORY_OBJECT_OUTTRAN +#endif +#ifdef MEMORY_OBJECT_DESTRUCTOR + destructor: MEMORY_OBJECT_DESTRUCTOR +#endif #endif /* KERNEL_SERVER */ ; |