aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Harning Jr <harningt@gmail.com>2007-09-06 23:22:55 -0400
committerThomas Harning Jr <harningt@gmail.com>2007-09-06 23:22:55 -0400
commitc8d56ebf5f7deb3891fb2c60b91b74f71a1d3f2c (patch)
tree6b21330c5e113476fbed203e4239302bc477e7d3 /include
parent64a4223203928443ee5a49dbb7579e1db53a4056 (diff)
downloadluaevent-prosody-c8d56ebf5f7deb3891fb2c60b91b74f71a1d3f2c.tar.gz
luaevent-prosody-c8d56ebf5f7deb3891fb2c60b91b74f71a1d3f2c.zip
Added event_buffer object + 'add' functionality
Diffstat (limited to 'include')
-rw-r--r--include/event_buffer.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/event_buffer.h b/include/event_buffer.h
new file mode 100644
index 0000000..b34ea2d
--- /dev/null
+++ b/include/event_buffer.h
@@ -0,0 +1,18 @@
+/* LuaEvent - Copyright (C) 2007 Thomas Harning <harningt@gmail.com>
+ * Licensed as LGPL - See doc/COPYING for details */
+#ifndef EVENT_BUFFER_H
+#define EVENT_BUFFER_H
+
+#include "luaevent.h"
+#include <lua.h>
+#include <sys/types.h>
+#include <sys/time.h>
+#include <event.h>
+
+typedef struct {
+ struct evbuffer* buffer;
+} le_buffer;
+
+int event_buffer_register(lua_State* L);
+
+#endif