aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat_libevent.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-06-04 19:51:00 -0400
committerNick Mathewson <nickm@torproject.org>2012-06-04 19:59:08 -0400
commit173b18c79b8e1f3a28e8b4122adb2b4ccf836c7b (patch)
treeefafbba046b207699cf9b3bf1ff3ff97ecba38c9 /src/common/compat_libevent.c
parentb353cd7e508fd436ce4ec4bd55c52cc7619b29fd (diff)
downloadtor-173b18c79b8e1f3a28e8b4122adb2b4ccf836c7b.tar
tor-173b18c79b8e1f3a28e8b4122adb2b4ccf836c7b.tar.gz
Add about 60 more DOCDOC comments to 0.2.3
Also, try to resolve some doxygen issues. First, define a magic "This is doxygen!" macro so that we take the correct branch in various #if/#else/#endifs in order to get the right documentation. Second, add in a few grouping @{ and @} entries in order to get some variables and fields to get grouped together.
Diffstat (limited to 'src/common/compat_libevent.c')
-rw-r--r--src/common/compat_libevent.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c
index 70e3baf9d..e522a8f57 100644
--- a/src/common/compat_libevent.c
+++ b/src/common/compat_libevent.c
@@ -6,9 +6,8 @@
* \brief Wrappers to handle porting between different versions of libevent.
*
* In an ideal world, we'd just use Libevent 2.0 from now on. But as of June
- * 2009, Libevent 2.0 is still in alpha, and we will have old versions of
- * Libevent for the forseeable future.
- **/
+ * 2012, Libevent 1.4 is still all over, and some poor souls are stuck on
+ * Libevent 1.3e. */
#include "orconfig.h"
#include "compat.h"
@@ -57,7 +56,7 @@ typedef uint32_t le_version_t;
static le_version_t tor_get_libevent_version(const char **v_out);
-#ifdef HAVE_EVENT_SET_LOG_CALLBACK
+#if defined(HAVE_EVENT_SET_LOG_CALLBACK) || defined(RUNNING_DOXYGEN)
/** A string which, if it appears in a libevent log, should be ignored. */
static const char *suppress_msg = NULL;
/** Callback function passed to event_set_log() so we can intercept