fdm: add fdm_event_add() and fdm_event_del()

These functions allow users to modify already registered FDs, to add
or remove events they are interested in.
This commit is contained in:
Daniel Eklöf 2019-11-03 00:22:22 +01:00
parent e09bda322a
commit 89997b97a0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 55 additions and 1 deletions

3
fdm.h
View file

@ -13,4 +13,7 @@ bool fdm_add(struct fdm *fdm, int fd, int events, fdm_handler_t handler, void *d
bool fdm_del(struct fdm *fdm, int fd);
bool fdm_del_no_close(struct fdm *fdm, int fd);
bool fdm_event_add(struct fdm *fdm, int fd, int events);
bool fdm_event_del(struct fdm *fdm, int fd, int events);
bool fdm_poll(struct fdm *fdm);