[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] include: make the notify_port_t types translation functions
From: |
Samuel Thibault |
Subject: |
Re: [PATCH] include: make the notify_port_t types translation functions mutable |
Date: |
Sat, 5 Apr 2014 23:33:21 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Sat 05 Apr 2014 23:21:24 +0200, a écrit :
> Make the intran, outtran and destructor functions mutable using
> preprocessor macros. Make it possible to inject imports using the
> NOTIFY_IMPORTS macro. This way, userspace servers can provide their
> own translation functions.
Ack
> * include/mach/notify.defs: Honor NOTIFY_IMPORTS.
> (notify_port_t): Make the translation mutable using preprocessor macros.
> ---
> include/mach/notify.defs | 16 +++++++++++++++-
> 1 file changed, 15 insertions(+), 1 deletion(-)
>
> diff --git a/include/mach/notify.defs b/include/mach/notify.defs
> index e06f6b4..fdf35e9 100644
> --- a/include/mach/notify.defs
> +++ b/include/mach/notify.defs
> @@ -28,6 +28,10 @@ subsystem notify 64;
>
> #include <mach/std_types.defs>
>
> +#ifdef NOTIFY_IMPORTS
> +NOTIFY_IMPORTS
> +#endif
> +
> #if SEQNOS
> serverprefix do_seqnos_;
> serverdemux seqnos_notify_server;
> @@ -37,7 +41,17 @@ serverdemux notify_server;
> #endif SEQNOS
>
> type notify_port_t = MACH_MSG_TYPE_MOVE_SEND_ONCE
> - ctype: mach_port_t;
> + ctype: mach_port_t
> +#ifdef NOTIFY_INTRAN
> + intran: NOTIFY_INTRAN
> +#endif
> +#ifdef NOTIFY_OUTTRAN
> + outtran: NOTIFY_OUTTRAN
> +#endif
> +#ifdef NOTIFY_DESTRUCTOR
> + destructor: NOTIFY_DESTRUCTOR
> +#endif
> +;
>
> /* MACH_NOTIFY_FIRST: 0100 */
> skip;
> --
> 1.9.1
>
--
Samuel
<P> moo
<N> moo ?
<D> P: keski t'arrive? :))
<P> moooo
<N> moooooo ?
<P> rien le net marche je suis content :)
-+- #ens-mim - accro du net -+-