mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
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:
parent
e09bda322a
commit
89997b97a0
2 changed files with 55 additions and 1 deletions
3
fdm.h
3
fdm.h
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue