diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2015-08-13 15:04:14 +0200 |
---|---|---|
committer | Azat Khuzhin <a3at.mail@gmail.com> | 2015-09-10 11:53:54 +0300 |
commit | bfcedee0385cdb0b5f6ed063075a664d513b342e (patch) | |
tree | 25131a607dba43903558e9ea2a879a0b03e81cf7 /event-internal.h | |
parent | 714fc70500c4b94e58c930c62f9dabd8fe7478b8 (diff) | |
download | libevent-bfcedee0385cdb0b5f6ed063075a664d513b342e.tar.gz |
Add a prototype for event_disable_debug_mode()
Exporting this function seems rather useless, as debugging mode has to
be enabled early and calling this function doesn't allow it to get
toggled back on later.
Fixes a compile warning when using clang 3.6.
Fixes #271
Fixes #224
Diffstat (limited to 'event-internal.h')
-rw-r--r-- | event-internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/event-internal.h b/event-internal.h index bf164cd5..66dcfc32 100644 --- a/event-internal.h +++ b/event-internal.h @@ -465,6 +465,13 @@ void event_base_assert_ok_nolock_(struct event_base *base); int event_base_foreach_event_nolock_(struct event_base *base, event_base_foreach_event_cb cb, void *arg); +/* Cleanup function to reset debug mode during shutdown. + * + * Calling this function doesn't mean it'll be possible to re-enable + * debug mode if any events were added. + */ +void event_disable_debug_mode(void); + #ifdef __cplusplus } #endif |