Merge branch 'prosody-tree'
[luaevent.git] / include / event_callback.h
blobfcda8cef79ef3296a071625e40c466fe16150469
1 /* LuaEvent - Copyright (C) 2007 Thomas Harning <harningt@gmail.com>
2 * Licensed as LGPL - See doc/COPYING for details */
3 #ifndef EVENT_CALLBACK
4 #define EVENT_CALLBACK
6 #include "luaevent.h"
8 typedef struct {
9 struct event ev;
10 le_base* base;
11 int callbackRef;
12 struct timeval timeout;
13 } le_callback;
15 int event_callback_register(lua_State* L);
17 le_callback* event_callback_push(lua_State* L, int baseIdx, int callbackIdx);
19 void luaevent_callback(int fd, short event, void* p);
21 #endif