Merge remote-tracking branch 'zash/master'
[luaevent.git] / include / event_buffer.h
blob18241911869b33f3d63d87a713d76226e73ad9a9
1 /* LuaEvent - Copyright (C) 2007,2012 Thomas Harning <harningt@gmail.com>
2 * Licensed as LGPL - See doc/COPYING for details */
3 #ifndef EVENT_BUFFER_H
4 #define EVENT_BUFFER_H
6 #include "luaevent.h"
8 typedef struct {
9 struct evbuffer* buffer;
10 } le_buffer;
12 void event_buffer_register(lua_State* L, int coreIndex);
13 int is_event_buffer(lua_State* L, int idx);
14 le_buffer* event_buffer_check(lua_State* L, int idx);
15 int event_buffer_push(lua_State* L, struct evbuffer* buffer);
17 #endif