Commit 47517bf1 authored by Denis Bilenko's avatar Denis Bilenko

core: remove EVENT_INTERNAL_AVAILABLE-related stuff. libevent-internal.h is...

core: remove EVENT_INTERNAL_AVAILABLE-related stuff. libevent-internal.h is not up to date with the latest libevent anyway.
parent b96b63b5
......@@ -45,11 +45,6 @@ import traceback
from pprint import pformat
import weakref
DEF EVENT_INTERNAL_AVAILABLE = False
cdef extern from "libevent-internal.h":
pass
cdef extern from "sys/types.h":
ctypedef unsigned char u_char
......@@ -122,25 +117,6 @@ cdef extern from "string.h":
cdef extern from "errno.h":
int errno
IF EVENT_INTERNAL_AVAILABLE:
cdef extern from "libevent-internal.h":
struct event_base:
int event_count # counts number of total events
int event_count_active # counts number of active events
def _event_count():
cdef event_base* c = current_base
return c.event_count
def _event_count_active():
cdef event_base* c = current_base
return c.event_count_active
ELSE:
ctypedef void* event_base
cdef extern from "libevent.h":
event_base* current_base
......
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