]> granicus.if.org Git - libevent/commitdiff
r16496@catbus: nickm | 2007-11-06 23:58:52 -0500
authorNick Mathewson <nickm@torproject.org>
Wed, 7 Nov 2007 05:02:14 +0000 (05:02 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 7 Nov 2007 05:02:14 +0000 (05:02 +0000)
 Clarify some doxygen in event.h

svn:r489

event.h

diff --git a/event.h b/event.h
index 68efab939d067ae17578b6a32ce00a1681686f8c..8087bdb1d53c36758c71872227e22517a34788a6 100644 (file)
--- a/event.h
+++ b/event.h
@@ -287,7 +287,10 @@ int event_base_dispatch(struct event_base *);
 
 
 /**
-  Deallocate all memory associated with an event_base.
+  Deallocate all memory associated with an event_base, and free the base.
+
+  Note that this function will not close any fds or free any memory passed
+  to event_set as the argument to callback.
 
   @param eb an event_base to be freed
  */
@@ -299,6 +302,13 @@ void event_base_free(struct event_base *);
 #define _EVENT_LOG_WARN  2
 #define _EVENT_LOG_ERR   3
 typedef void (*event_log_cb)(int severity, const char *msg);
+/**
+  Redirect libevent's log messages.
+
+  @param cb a function taking two arguments: an integer severity between
+     _EVENT_LOG_DEBUG and _EVENT_LOG_ERR, and a string.  If cb is NULL,
+        then the default log is used.
+  */
 void event_set_log_callback(event_log_cb cb);
 
 /**