aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Harning Jr <harningt@gmail.com>2007-08-31 09:34:09 -0400
committerThomas Harning Jr <harningt@gmail.com>2007-08-31 09:34:09 -0400
commit4c2a04eded5c66c6696d4b53aee339f0f3ab8155 (patch)
treee5ad5a8ea9377f7b1c18732f094c11bcb610ae81 /include
parentae3262e075eadefbae445e64576f6a10f0d3e236 (diff)
downloadluaevent-prosody-4c2a04eded5c66c6696d4b53aee339f0f3ab8155.tar.gz
luaevent-prosody-4c2a04eded5c66c6696d4b53aee339f0f3ab8155.zip
Reformed project layout from 'luaevent/*' -> '*'
Diffstat (limited to 'include')
-rw-r--r--include/luaevent.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/luaevent.h b/include/luaevent.h
new file mode 100644
index 0000000..2878632
--- /dev/null
+++ b/include/luaevent.h
@@ -0,0 +1,24 @@
+/* LuaEvent - Copyright (C) 2007 Thomas Harning <harningt@gmail.com>
+ * Licensed as LGPL - See doc/COPYING for details */
+#ifndef LUAEVENT_H
+#define LUAEVENT_H
+
+#include <lua.h>
+#include <sys/types.h>
+#include <sys/time.h>
+#include <event.h>
+
+typedef struct {
+ struct event_base* base;
+ lua_State* loop_L;
+} le_base;
+
+typedef struct {
+ struct event ev;
+ le_base* base;
+ int callbackRef;
+} le_callback;
+
+int luaopen_luaevent(lua_State* L);
+
+#endif