diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-04-14 21:36:22 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-04-14 21:55:22 +0200 |
commit | ca207b038bf4c150f008042e1bf3a102e68880ca (patch) | |
tree | 02f5e0da719b1c070defd24e47bc6ef10c69d675 /runloop.h | |
parent | c02fa99188c868496f864a20b1139ec4e6f93c2a (diff) |
server: Send _push ping every 60s
Diffstat (limited to 'runloop.h')
-rw-r--r-- | runloop.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |