| 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 |
| 5 | |
| 6 | #include "luaevent.h" |
| 7 | |
| 8 | typedef struct { |
| 9 | struct bufferevent* ev; |
| 10 | le_base* base; |
| 11 | } le_bufferevent; |
| 12 | |
| 13 | int buffer_event_register(lua_State* L); |
| 14 | int is_buffer_event(lua_State* L, int idx); |
| 15 | le_bufferevent* buffer_event_check(lua_State* L, int idx); |
| 16 | |
| 17 | #endif |