1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// MIT License, Copyright (c) 2020 Marvin Borner #ifndef EVENT_H #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, struct proc *proc, u32 *func); void event_unmap(enum event id, struct proc *proc, u32 *func); u32 event_trigger(enum event id, u32 *data); #endif