aboutsummaryrefslogtreecommitdiffstats
path: root/include/buffer_event.h
blob: b3fe3c11f2956ca4f7990bbaf661d1a63796a237 (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 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