aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/lua.h')
-rw-r--r--backends/lua.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/lua.h b/backends/lua.h
index ccffef7..7aad891 100644
--- a/backends/lua.h
+++ b/backends/lua.h
@@ -4,6 +4,11 @@
#include <lualib.h>
#include <lauxlib.h>
+//OSX and Windows don't have the cool new toys...
+#ifdef __linux__
+ #define MMBACKEND_LUA_TIMERFD
+#endif
+
int init();
static int lua_configure(char* option, char* value);
static int lua_configure_instance(instance* inst, char* option, char* value);
@@ -13,6 +18,7 @@ static int lua_set(instance* inst, size_t num, channel** c, channel_value* v);
static int lua_handle(size_t num, managed_fd* fds);
static int lua_start();
static int lua_shutdown();
+static uint32_t lua_interval();
typedef struct /*_lua_instance_data*/ {
size_t channels;