aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc/event.h
blob: 0a42f977b1b9a37dd9cb8581ee9571646a74f591 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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 event id;
	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, void *data);

#endif