Commit a701a346 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.

--HG--
extra : transplant_source : %1AP%85%05%2A%80%CE%89%98%E4%FE%B4%DB%98%B0%96%FE%3A%15%EE
parent 2df4ae98
...@@ -45,11 +45,6 @@ import traceback ...@@ -45,11 +45,6 @@ import traceback
from pprint import pformat from pprint import pformat
import weakref import weakref
DEF EVENT_INTERNAL_AVAILABLE = False
cdef extern from "libevent-internal.h":
pass
cdef extern from "sys/types.h": cdef extern from "sys/types.h":
ctypedef unsigned char u_char ctypedef unsigned char u_char
...@@ -122,25 +117,6 @@ cdef extern from "string.h": ...@@ -122,25 +117,6 @@ cdef extern from "string.h":
cdef extern from "errno.h": cdef extern from "errno.h":
int errno 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": cdef extern from "libevent.h":
event_base* current_base 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