aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc
diff options
context:
space:
mode:
authorMarvin Borner2020-09-16 21:38:19 +0200
committerMarvin Borner2020-09-16 21:38:19 +0200
commit11490a493511c4f760af74c12cb7da15b2b404a2 (patch)
tree92837dcface3dbe825a6d6e90cd983e72a62578f /kernel/inc
parent857c228909603d1a27a40f2714f8b9076fabba6e (diff)
Added *very* basic keymap parsing
Diffstat (limited to 'kernel/inc')
-rw-r--r--kernel/inc/event.h8
-rw-r--r--kernel/inc/proc.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/kernel/inc/event.h b/kernel/inc/event.h
index 89c3e56..59a0df1 100644
--- a/kernel/inc/event.h
+++ b/kernel/inc/event.h
@@ -8,12 +8,12 @@
#include <sys.h>
struct event_descriptor {
- enum message_type id;
+ u32 id;
struct proc *proc;
};
-u32 event_register(enum message_type id, struct proc *proc);
-void event_unregister(enum message_type id, struct proc *proc);
-u32 event_trigger(enum message_type id, void *data);
+u32 event_register(u32 id, struct proc *proc);
+void event_unregister(u32 id, struct proc *proc);
+u32 event_trigger(u32 id, void *data);
#endif
diff --git a/kernel/inc/proc.h b/kernel/inc/proc.h
index 7b47ed6..97ee69a 100644
--- a/kernel/inc/proc.h
+++ b/kernel/inc/proc.h
@@ -41,7 +41,7 @@ void scheduler_disable();
void proc_init();
void proc_print();
struct proc *proc_current();
-void proc_send(struct proc *src, struct proc *dest, enum message_type type, void *data);
+void proc_send(struct proc *src, struct proc *dest, u32 type, void *data);
struct proc_message *proc_receive(struct proc *proc);
struct proc *proc_from_pid(u32 pid);
void proc_exit(struct proc *proc, int status);