diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-02 23:22:22 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-02 23:52:24 +0000 |
| commit | 89997b97a0fb7f0fe0fa06de5409a03ed9ee91a8 (patch) | |
| tree | c44d395730bc54ff8944b1fd0c252ba68f069964 /fdm.h | |
| parent | fdm: bug: 'ret' was renamed to 'r', and replaced with another 'ret' (diff) | |
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.
Diffstat (limited to 'fdm.h')
| -rw-r--r-- | fdm.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |
