2017-04-21 13:43:26 +03:00
|
|
|
#ifndef _FF_EPOLL_H
|
|
|
|
#define _FF_EPOLL_H
|
|
|
|
|
2018-01-02 13:22:40 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2017-06-13 12:50:51 +03:00
|
|
|
#include <sys/epoll.h>
|
2017-04-21 13:43:26 +03:00
|
|
|
|
|
|
|
int ff_epoll_create(int size);
|
|
|
|
int ff_epoll_ctl(int epfd, int op, int fd, struct epoll_event *event);
|
2017-06-13 12:50:51 +03:00
|
|
|
int ff_epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout);
|
2017-04-21 13:43:26 +03:00
|
|
|
|
2018-01-02 13:22:40 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-04-21 13:43:26 +03:00
|
|
|
#endif
|
2017-06-13 12:50:51 +03:00
|
|
|
|