include/event_callback.h

Tue, 05 Jul 2011 22:23:15 -0400

author
Thomas Harning Jr <harningt@gmail.com>
date
Tue, 05 Jul 2011 22:23:15 -0400
changeset 105
9fb82ef210a3
parent 77
ad37f03df138
permissions
-rw-r--r--

base: adds distribution archive generation functionality to Makefile

/* LuaEvent - Copyright (C) 2007 Thomas Harning <harningt@gmail.com>
 * Licensed as LGPL - See doc/COPYING for details */
#ifndef EVENT_CALLBACK
#define EVENT_CALLBACK

#include "luaevent.h"

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

int event_callback_register(lua_State* L);

le_callback* event_callback_push(lua_State* L, int baseIdx, int callbackIdx);

void luaevent_callback(int fd, short event, void* p);

#endif

mercurial