aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc/event.h
diff options
context:
space:
mode:
authorMarvin Borner2020-08-17 14:15:58 +0200
committerMarvin Borner2020-08-17 14:15:58 +0200
commitccbf380a850babc01ad2dfd4dcfca9ae44447161 (patch)
treef1eacdbc1e8fe5322f49e1fa419a9f985bb0f778 /kernel/inc/event.h
parentca7d400b7705ba887df69391cb774d4de83e8bf3 (diff)
Added event descriptor
Diffstat (limited to 'kernel/inc/event.h')
-rw-r--r--kernel/inc/event.h6
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);