include/luaevent.h

Fri, 21 Sep 2007 14:35:11 -0400

author
Thomas Harning Jr <harningt@gmail.com>
date
Fri, 21 Sep 2007 14:35:11 -0400
changeset 41
fce1995f0db8
parent 34
64a79d8ee224
child 76
0ad46f11657a
permissions
-rw-r--r--

buffer_event is born, albeit w/ deformities. Can construct instances but not use, yet.

/* 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);
void load_timeval(double time, struct timeval *tv);
int getSocketFd(lua_State* L, int idx);

int luaopen_luaevent(lua_State* L);

#endif

mercurial