aboutsummaryrefslogtreecommitdiffstats
path: root/include/luaevent.h
blob: 2878632cec07fd48449593950f9f712ec5b76b7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* LuaEvent - Copyright (C) 2007 Thomas Harning <harningt@gmail.com>
 * Licensed as LGPL - See doc/COPYING for details */
#ifndef LUAEVENT_H
#define LUAEVENT_H

#include <lua.h>
#include <sys/types.h>
#include <sys/time.h>
#include <event.h>

typedef struct {
	struct event_base* base;
	lua_State* loop_L;
} le_base;

typedef struct {
	struct event ev;
	le_base* base;
	int callbackRef;
} le_callback;

int luaopen_luaevent(lua_State* L);

#endif