aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc/event.h
blob: 59a0df17268d169ce499b7de4d6bc66faccb1eab (plain) (blame)
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 id;
	struct proc *proc;
};

u32 event_register(u32 id, struct proc *proc);
void event_unregister(u32 id, struct proc *proc);
u32 event_trigger(u32 id, void *data);

#endif