Commit c5747fdf authored by Denis Bilenko's avatar Denis Bilenko

minor rearrangement

parent 257ecd60
...@@ -44,7 +44,10 @@ cdef extern from "Python.h": ...@@ -44,7 +44,10 @@ cdef extern from "Python.h":
ctypedef void (*event_handler)(int fd, short evtype, void *arg) ctypedef void (*event_handler)(int fd, short evtype, void *arg)
cdef extern from "event.h":
cdef extern from "libevent.h":
# event.h:
struct timeval: struct timeval:
unsigned int tv_sec unsigned int tv_sec
unsigned int tv_usec unsigned int tv_usec
...@@ -93,12 +96,13 @@ IF EVENT_INTERNAL_AVAILABLE: ...@@ -93,12 +96,13 @@ IF EVENT_INTERNAL_AVAILABLE:
cdef event_base* c = current_base cdef event_base* c = current_base
return c.event_count_active return c.event_count_active
ELSE:
ctypedef void* event_base
cdef extern from "libevent.h": cdef extern from "libevent.h":
IF EVENT_INTERNAL_AVAILABLE:
event_base* current_base event_base* current_base
ELSE:
void* current_base
EV_TIMEOUT = 0x01 EV_TIMEOUT = 0x01
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment