diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-07-19 10:17:22 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-07-19 10:17:22 -0400 |
commit | 5fb070a14da4802f11e84ed83143668502a227c4 (patch) | |
tree | 59af413736d2c4c802e43d2654e5aeecb2f87e72 /src/lib/err/backtrace.h | |
parent | f682de609b456ccfdb19aef1a1afa8c0873ceb51 (diff) | |
download | tor-5fb070a14da4802f11e84ed83143668502a227c4.tar.gz tor-5fb070a14da4802f11e84ed83143668502a227c4.zip |
Extract the log_domain_t type to a lower-level header
This way, both err and log may depend on it.
Diffstat (limited to 'src/lib/err/backtrace.h')
-rw-r--r-- | src/lib/err/backtrace.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/err/backtrace.h b/src/lib/err/backtrace.h index ba3049ed15..dcd22cfef2 100644 --- a/src/lib/err/backtrace.h +++ b/src/lib/err/backtrace.h @@ -13,11 +13,13 @@ #include "orconfig.h" #include "lib/cc/compat_compiler.h" #include "lib/cc/torint.h" +#include "lib/defs/logging_types.h" -typedef void (*tor_log_fn)(int, uint64_t, const char *fmt, ...) +typedef void (*tor_log_fn)(int, log_domain_mask_t, const char *fmt, ...) CHECK_PRINTF(3,4); -void log_backtrace_impl(int severity, uint64_t domain, const char *msg, +void log_backtrace_impl(int severity, log_domain_mask_t domain, + const char *msg, tor_log_fn logger); int configure_backtrace_handler(const char *tor_version); void clean_up_backtrace_handler(void); |