mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
15 lines
352 B
C
15 lines
352 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
struct fdm;
|
|
|
|
typedef bool (*fdm_handler_t)(struct fdm *fdm, int fd, int events, void *data);
|
|
|
|
struct fdm *fdm_init(void);
|
|
void fdm_destroy(struct fdm *fdm);
|
|
|
|
bool fdm_add(struct fdm *fdm, int fd, int events, fdm_handler_t handler, void *data);
|
|
bool fdm_del(struct fdm *fdm, int fd);
|
|
|
|
bool fdm_poll(struct fdm *fdm);
|