summaryrefslogtreecommitdiff
path: root/package/libtapi/src/events.h
blob: 9912fac3a42d022fe5e1aaf400dc947b6a456a71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef __EVENTS_H__
#define __EVENTS_H__

struct event_callback {
	bool (*callback)(int events, void *data);
	void *data;
	int fd;
};

int event_register(int fd, int events,
	struct event_callback *callback);

int event_unregister(int fd);


int tapi_mainloop(void);

#endif