about summary refs log tree commit diff
path: root/src/pOS/include/kernel/signals.h
blob: 65b9c621d06f10efdd7a2a195fed5d71e66d0e5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _SIGNALS_H_
#define _SIGNALS_H_

#include <stddef.h>

enum Signal_Type
{
    ESC_SIG,
    LEFT_ARROW_SIG,
    RIGHT_ARROW_SIG,
    UP_ARROW_SIG,
    DOWN_ARROW_SIG,
    KILL_SIG
};

class Signals
{
public:
    static int send_signal(Signal_Type signal);
    static int register_recieve(void (*handler)(Signal_Type sig));
};

#endif