From 54064158d84fc4006e651deb314cde156cc383e8 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Tue, 14 Mar 2017 11:05:35 +0100 Subject: Register working --- runloop.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 runloop.h (limited to 'runloop.h') 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 -- cgit v1.2.3-54-g00ecf