include/luaevent.h

Mon, 16 Jan 2012 01:53:45 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 16 Jan 2012 01:53:45 +0000
changeset 107
f937d449075d
parent 76
0ad46f11657a
permissions
-rw-r--r--

Merge with upstream

/* 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>
#ifdef _WIN32
#include <winsock2.h>
#else
#include <sys/time.h>
#endif
#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