blob: a7b1525b796c15a005b66c3aadb678554dcf097e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* 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);
int is_event_buffer(lua_State* L, int idx);
le_buffer* event_buffer_check(lua_State* L, int idx);
int event_buffer_push(lua_State* L, struct evbuffer* buffer);
#endif
|