diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-03-14 11:05:35 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-03-14 11:05:35 +0100 |
commit | 54064158d84fc4006e651deb314cde156cc383e8 (patch) | |
tree | a534f160fe02b593143e03aaaf52f65513352c90 /runloop.h |
Register working
Diffstat (limited to 'runloop.h')
-rw-r--r-- | runloop.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runloop.h b/runloop.h new file mode 100644 index 0000000..fc1f7e8 --- /dev/null +++ b/runloop.h @@ -0,0 +1,10 @@ +#pragma once + +#include "global.h" + + +// Return true to remove fd from runloop +typedef bool runloop_callback(int fd); + +void runloop_add_fd(int fd,runloop_callback *func); +void runloop_run(void); // Returns when empty |