mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-22 19:52:11 -05:00
19 lines
276 B
C
19 lines
276 B
C
#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
|