Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2023-05-23 13:24:33 +0300
committerFelix Fietkau <nbd@nbd.name>2023-05-23 16:32:36 +0300
commit75a3b870cace1171faf57bd55e5a9a2f1564f757 (patch)
tree35c63732cdc5920269466c179258409d49c811d7 /uloop.h
parent362951a2d96e5c00a2ca5f9495d18cf16f43bc68 (diff)
uloop: add support for integrating with a different event loop
- support reading the next timeout in order to determine the poll timeout - add a callback for fd add/delete/update Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'uloop.h')
-rw-r--r--uloop.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/uloop.h b/uloop.h
index b7e97bb..4fdd43f 100644
--- a/uloop.h
+++ b/uloop.h
@@ -85,10 +85,12 @@ struct uloop_process
extern bool uloop_cancelled;
extern bool uloop_handle_sigchld;
+extern uloop_fd_handler uloop_fd_set_cb;
int uloop_fd_add(struct uloop_fd *sock, unsigned int flags);
int uloop_fd_delete(struct uloop_fd *sock);
+int uloop_get_next_timeout(void);
int uloop_timeout_add(struct uloop_timeout *timeout);
int uloop_timeout_set(struct uloop_timeout *timeout, int msecs);
int uloop_timeout_cancel(struct uloop_timeout *timeout);