diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-01-04 18:57:16 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-01-04 18:57:16 +0000 |
| commit | f29d506f3bd459f1725a6cd2572b0e17a7b734a6 (patch) | |
| tree | 90679ed3af4074e9080ba37b67a281e1486f6cb4 /fdm.h | |
| parent | doc: document how to do block selections (diff) | |
| parent | term: more comments in the 'render' sub-struct (diff) | |
Merge branch 'render-refresh-optimize'
Diffstat (limited to 'fdm.h')
| -rw-r--r-- | fdm.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -5,6 +5,7 @@ struct fdm; typedef bool (*fdm_handler_t)(struct fdm *fdm, int fd, int events, void *data); +typedef void (*fdm_hook_t)(struct fdm *fdm, void *data); struct fdm *fdm_init(void); void fdm_destroy(struct fdm *fdm); @@ -16,4 +17,7 @@ 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_hook_add(struct fdm *fdm, fdm_hook_t hook, void *data); +bool fdm_hook_del(struct fdm *fdm, fdm_hook_t hook); + bool fdm_poll(struct fdm *fdm); |
