include/luaevent.h

changeset 76
0ad46f11657a
parent 34
64a79d8ee224
equal deleted inserted replaced
75:5a5f46aed0c1 76:0ad46f11657a
3 #ifndef LUAEVENT_H 3 #ifndef LUAEVENT_H
4 #define LUAEVENT_H 4 #define LUAEVENT_H
5 5
6 #include <lua.h> 6 #include <lua.h>
7 #include <sys/types.h> 7 #include <sys/types.h>
8 #ifdef _WIN32
9 #include <winsock2.h>
10 #else
8 #include <sys/time.h> 11 #include <sys/time.h>
12 #endif
9 #include <event.h> 13 #include <event.h>
10 14
11 typedef struct { 15 typedef struct {
12 struct event_base* base; 16 struct event_base* base;
13 lua_State* loop_L; 17 lua_State* loop_L;

mercurial