aeApiDelEvent(eventLoop, fd, mask);
}
+int aeGetFileEvents(aeEventLoop *eventLoop, int fd) {
+ if (fd >= AE_SETSIZE) return 0;
+ aeFileEvent *fe = &eventLoop->events[fd];
+
+ return fe->mask;
+}
+
static void aeGetTime(long *seconds, long *milliseconds)
{
struct timeval tv;
int aeCreateFileEvent(aeEventLoop *eventLoop, int fd, int mask,
aeFileProc *proc, void *clientData);
void aeDeleteFileEvent(aeEventLoop *eventLoop, int fd, int mask);
+int aeGetFileEvents(aeEventLoop *eventLoop, int fd);
long long aeCreateTimeEvent(aeEventLoop *eventLoop, long long milliseconds,
aeTimeProc *proc, void *clientData,
aeEventFinalizerProc *finalizerProc);