summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-02-20 13:56:13 -0500
committerNick Mathewson <nickm@torproject.org>2012-02-20 13:56:13 -0500
commit8dbcf8d62ba0e1c5b408e22babe55e9490ea2404 (patch)
tree4e5f94801a3b0064ef2b0bc4893ed2410d22e644 /include
parent65bc91c210b75ae924111919eee56ec54ecd27ee (diff)
parentcad5753587c1b4bed7b76f6572a9205f4f2d3ac9 (diff)
downloadlibevent-8dbcf8d62ba0e1c5b408e22babe55e9490ea2404.tar.gz
Merge branch '21_eventlist_v3_squashed'
Diffstat (limited to 'include')
-rw-r--r--include/event2/event.h10
-rw-r--r--include/event2/event_struct.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/include/event2/event.h b/include/event2/event.h
index a09e3a76..6387dc7b 100644
--- a/include/event2/event.h
+++ b/include/event2/event.h
@@ -1239,6 +1239,16 @@ void event_set_mem_functions(
#define EVENT_SET_MEM_FUNCTIONS_IMPLEMENTED
#endif
+/**
+ Writes a human-readable description of all inserted and/or active
+ events to a provided stdio stream.
+
+ This is intended for debugging; its format is not guaranteed to be the same
+ between libevent versions.
+
+ @param base An event_base on which to scan the events.
+ @param output A stdio file to write on.
+ */
void event_base_dump_events(struct event_base *, FILE *);
/** Sets 'tv' to the current time (as returned by gettimeofday()),
diff --git a/include/event2/event_struct.h b/include/event2/event_struct.h
index aa93ae7d..d3ca44d4 100644
--- a/include/event2/event_struct.h
+++ b/include/event2/event_struct.h
@@ -96,7 +96,9 @@ struct { \
struct event_base;
struct event {
TAILQ_ENTRY(event) ev_active_next;
+#ifdef _EVENT_USE_EVENTLIST
TAILQ_ENTRY(event) ev_next;
+#endif
/* for managing timeouts */
union {
TAILQ_ENTRY(event) ev_next_with_common_timeout;