include/luaevent.h

Fri, 31 Aug 2007 09:34:09 -0400

author
Thomas Harning Jr <harningt@gmail.com>
date
Fri, 31 Aug 2007 09:34:09 -0400
changeset 13
3e2ea1e7b2e8
child 20
71bc2e49366c
permissions
-rw-r--r--

Reformed project layout from 'luaevent/*' -> '*'

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

mercurial