blob: 5543c04ab87f3c495c2e22405137fff992abc69e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#include "reactor.h"
#include <stdlib.h>
struct reactor {
};
struct reactor *reactor_create() {
struct reactor *reactor = calloc(1, sizeof(struct reactor));
return reactor;
}
void reactor_destroy(struct reactor *reactor) {
free(reactor);
}
void reactor_update(struct reactor *reactor) {
}
bool reactor_poll_event(struct reactor *reactor, uint32_t ev_id) {
return false;
}
uint32_t reactor_register_interest(struct reactor *reactor, int fd, enum interest interest) {
return -1;
}
uint32_t reactor_watch_file(struct reactor *reactor, const char *path, uint32_t mask) {
return -1;
}
void reactor_unwatch_file(struct reactor *reactor, uint32_t id) {
}
bool reactor_next_file_event(struct reactor *reactor, struct file_event *out) {
return false;
}
void reactor_unregister_interest(struct reactor *reactor, uint32_t ev_id) {
}
|