include/luaevent.h

Wed, 05 Sep 2007 23:05:05 -0400

author
Thomas Harning Jr <harningt@gmail.com>
date
Wed, 05 Sep 2007 23:05:05 -0400
changeset 22
48a109847dce
parent 20
71bc2e49366c
child 23
897150985f13
permissions
-rw-r--r--

Completely refactored event_callback creation out into event_callback.

/* 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;

le_base* event_base_get(lua_State* L, int idx);

int luaopen_luaevent(lua_State* L);

#endif

mercurial