diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-06-04 03:16:26 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-06-12 14:27:52 -0400 |
commit | c0af3cdfb6816659031fed5a1b8feec5d457b608 (patch) | |
tree | 1241f7190e1d323f5777881fedb0505c538a9586 /src/common/compat_libevent.h | |
parent | e5b88dc83fb44622f2b0f9c0c242907d1c02311f (diff) | |
download | tor-c0af3cdfb6816659031fed5a1b8feec5d457b608.tar.gz tor-c0af3cdfb6816659031fed5a1b8feec5d457b608.zip |
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.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/common/compat_libevent.h b/src/common/compat_libevent.h index a95285f460..5482c479fe 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 - |