host_to_net(16|32)(), net_to_host(16|32)(): New functions.
[bertos.git] / kern / event.c
1 /*!
2  * \file
3  * <!--
4  * Copyright 2005 Develer S.r.l. (http://www.develer.com/)
5  * This file is part of DevLib - See devlib/README for information.
6  * -->
7  *
8  * \brief Events handling implementation
9  *
10  * \version $Id$
11  *
12  * \author Giovanni Bajo <rasky@develer.com>
13  */
14
15 /*#*
16  *#* $Log$
17  *#* Revision 1.1  2005/01/24 04:19:06  bernie
18  *#* Function pointer based event dispatching.
19  *#*
20  *#* Revision 1.1  2005/01/18 19:39:42  rasky
21  *#* Cambiata la logica di dispatching degli eventi: si utilizza puntatori a funzione invece di inlinare i controlli
22  *#*
23  *#*/
24
25 #include "event.h"
26
27 void event_hook_ignore(Event *e)
28 {
29 }
30
31 #if defined(CONFIG_KERN_SIGNALS) && CONFIG_KERN_SIGNALS
32 void event_hook_signal(Event *e)
33 {
34         sig_signal((e)->Ev.Sig.sig_proc, (e)->Ev.Sig.sig_bit);
35 }
36 #endif
37
38 void event_hook_softint(Event *e)
39 {
40         e->Ev.Int.func(e->Ev.Int.user_data);
41 }