diff options
Diffstat (limited to 'include/buffer_event.h')
-rw-r--r-- | include/buffer_event.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/buffer_event.h b/include/buffer_event.h new file mode 100644 index 0000000..960b576 --- /dev/null +++ b/include/buffer_event.h @@ -0,0 +1,21 @@ +/* LuaEvent - Copyright (C) 2007 Thomas Harning <harningt@gmail.com> + * Licensed as LGPL - See doc/COPYING for details */ + #ifndef BUFFER_EVENT_H + #define BUFFER_EVENT_H + +#include "luaevent.h" +#include <lua.h> +#include <sys/types.h> +#include <sys/time.h> +#include <event.h> + +typedef struct { + struct bufferevent* ev; + le_base* base; +} le_bufferevent; + +int buffer_event_register(lua_State* L); +int is_buffer_event(lua_State* L, int idx); +le_bufferevent* buffer_event_check(lua_State* L, int idx); + +#endif |