buffer_event is born, albeit w/ deformities. Can construct instances but not use...
[luaevent.git] / include / buffer_event.h
blob960b5766b695f7c917e78ca1ee5a2d372aee8aa7
1 /* LuaEvent - Copyright (C) 2007 Thomas Harning <harningt@gmail.com>
2 * Licensed as LGPL - See doc/COPYING for details */
3 #ifndef BUFFER_EVENT_H
4 #define BUFFER_EVENT_H
6 #include "luaevent.h"
7 #include <lua.h>
8 #include <sys/types.h>
9 #include <sys/time.h>
10 #include <event.h>
12 typedef struct {
13 struct bufferevent* ev;
14 le_base* base;
15 } le_bufferevent;
17 int buffer_event_register(lua_State* L);
18 int is_buffer_event(lua_State* L, int idx);
19 le_bufferevent* buffer_event_check(lua_State* L, int idx);
21 #endif