Changes in kernel/generic/include/ipc/event.h [c2cf033:97d42d5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/ipc/event.h
rc2cf033 r97d42d5 36 36 #define KERN_EVENT_H_ 37 37 38 #include < abi/ipc/event.h>38 #include <ipc/event_types.h> 39 39 #include <typedefs.h> 40 40 #include <synch/spinlock.h> 41 41 #include <ipc/ipc.h> 42 42 43 struct task; 44 45 typedef void (*event_callback_t)(void *); 43 typedef void (*event_callback_t)(void); 46 44 47 45 /** Event notification structure. */ … … 63 61 64 62 extern void event_init(void); 65 extern void event_task_init(struct task *);66 63 extern void event_cleanup_answerbox(answerbox_t *); 67 64 extern void event_set_unmask_callback(event_type_t, event_callback_t); 68 extern void event_task_set_unmask_callback(struct task *, event_task_type_t,69 event_callback_t);70 65 71 66 #define event_notify_0(e, m) \ … … 82 77 event_notify((e), (m), (a1), (a2), (a3), (a4), (a5)) 83 78 84 #define event_task_notify_0(t, e, m) \85 event_task_notify((t), (e), (m), 0, 0, 0, 0, 0)86 #define event_task_notify_1(t, e, m, a1) \87 event_task_notify((t), (e), (m), (a1), 0, 0, 0, 0)88 #define event_task_notify_2(t, e, m, a1, a2) \89 event_task_notify((t), (e), (m), (a1), (a2), 0, 0, 0)90 #define event_task_notify_3(t, e, m, a1, a2, a3) \91 event_task_notify((t), (e), (m), (a1), (a2), (a3), 0, 0)92 #define event_task_notify_4(t, e, m, a1, a2, a3, a4) \93 event_task_notify((t), (e), (m), (a1), (a2), (a3), (a4), 0)94 #define event_task_notify_5(t, e, m, a1, a2, a3, a4, a5) \95 event_task_notify((t), (e), (m), (a1), (a2), (a3), (a4), (a5))96 97 79 extern int event_notify(event_type_t, bool, sysarg_t, sysarg_t, sysarg_t, 98 80 sysarg_t, sysarg_t); 99 extern int event_task_notify(struct task *, event_task_type_t, bool, sysarg_t, sysarg_t,100 sysarg_t, sysarg_t, sysarg_t);101 81 102 82 extern sysarg_t sys_event_subscribe(sysarg_t, sysarg_t);
Note:
See TracChangeset
for help on using the changeset viewer.