aboutsummaryrefslogtreecommitdiff
path: root/runloop.h
diff options
context:
space:
mode:
Diffstat (limited to 'runloop.h')
-rw-r--r--runloop.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/runloop.h b/runloop.h
index fc1f7e8..ae0639b 100644
--- a/runloop.h
+++ b/runloop.h
@@ -6,5 +6,7 @@
// Return true to remove fd from runloop
typedef bool runloop_callback(int fd);
-void runloop_add_fd(int fd,runloop_callback *func);
+void runloop_set_timeout(i64 usecs,runloop_callback *timeout_callback);
+
+void runloop_add_fd(int fd,runloop_callback *func,bool use_timeout);
void runloop_run(void); // Returns when empty