aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc/event.h
blob: 89c3e56ab17ff9c8361c9472ae1cc25481a5ba91 (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 {
	enum message_type 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);

#endif