aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat_libevent.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-06-04 03:16:26 -0400
committerNick Mathewson <nickm@torproject.org>2009-06-12 14:27:52 -0400
commitc0af3cdfb6816659031fed5a1b8feec5d457b608 (patch)
tree1241f7190e1d323f5777881fedb0505c538a9586 /src/common/compat_libevent.h
parente5b88dc83fb44622f2b0f9c0c242907d1c02311f (diff)
downloadtor-c0af3cdfb6816659031fed5a1b8feec5d457b608.tar
tor-c0af3cdfb6816659031fed5a1b8feec5d457b608.tar.gz
Move the Libvent setup logic into compat_libevent from config.
This has been some pretty ugly and voodoo-laden code. I've tried to clean it up a bit, but more work probably remains.
Diffstat (limited to 'src/common/compat_libevent.h')
-rw-r--r--src/common/compat_libevent.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/common/compat_libevent.h b/src/common/compat_libevent.h
index a95285f46..5482c479f 100644
--- a/src/common/compat_libevent.h
+++ b/src/common/compat_libevent.h
@@ -6,10 +6,12 @@
#include "orconfig.h"
+struct event;
+struct event_base;
+
#ifdef HAVE_EVENT2_EVENT_H
-#include <event2/event.h>
+#include <event2/util.h>
#else
-#include <event.h>
#define evutil_socket_t int
#endif
@@ -34,6 +36,9 @@ void tor_event_free(struct event *ev);
void tor_libevent_initialize(void);
struct event_base *tor_libevent_get_base(void);
const char *tor_libevent_get_method(void);
+void tor_check_libevent_version(const char *m, int server,
+ const char **badness_out);
+void tor_check_libevent_header_compatibility(void);
+const char *tor_libevent_get_version_str(void);
#endif
-