diff options
author | Marvin Borner | 2020-08-17 14:15:58 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-17 14:15:58 +0200 |
commit | ccbf380a850babc01ad2dfd4dcfca9ae44447161 (patch) | |
tree | f1eacdbc1e8fe5322f49e1fa419a9f985bb0f778 /kernel/inc/event.h | |
parent | ca7d400b7705ba887df69391cb774d4de83e8bf3 (diff) |
Added event descriptor
Diffstat (limited to 'kernel/inc/event.h')
-rw-r--r-- | kernel/inc/event.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/inc/event.h b/kernel/inc/event.h index e40b345..d0fe4fc 100644 --- a/kernel/inc/event.h +++ b/kernel/inc/event.h @@ -4,8 +4,14 @@ #define EVENT_H #include <def.h> +#include <proc.h> #include <sys.h> +struct event_descriptor { + u32 *func; + struct proc *proc; +}; + u32 event_map(enum event id, u32 *func); void event_unmap(enum event id, u32 *func); u32 event_trigger(enum event id, u32 *data); |