aboutsummaryrefslogtreecommitdiffstats
path: root/luaevent/include/luaevent.h
diff options
context:
space:
mode:
Diffstat (limited to 'luaevent/include/luaevent.h')
-rw-r--r--luaevent/include/luaevent.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/luaevent/include/luaevent.h b/luaevent/include/luaevent.h
new file mode 100644
index 0000000..854d111
--- /dev/null
+++ b/luaevent/include/luaevent.h
@@ -0,0 +1,17 @@
+#ifndef LUAEVENT_H
+#define LUAEVENT_H
+
+#include <lua.h>
+#include <sys/types.h>
+#include <sys/time.h>
+#include <event.h>
+
+typedef struct {
+ struct event ev;
+ lua_State* L;
+ int callbackRef;
+} le_callback;
+
+int luaopen_luaevent(lua_State* L);
+
+#endif