diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-12-21 15:50:09 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-12-21 15:50:09 -0500 |
commit | 0a3b7f1471b608a83edfdf3cdca391aca6f73eb1 (patch) | |
tree | 5dc61438a7cddd689020f9862bfac137f81f9a99 /src/common/torlog.h | |
parent | 601b6a8099e6df9b933e9c8290eeef86bc86c84c (diff) | |
parent | cdbd6d0fe88ed305bff33388439297474b27f352 (diff) | |
download | tor-0a3b7f1471b608a83edfdf3cdca391aca6f73eb1.tar.gz tor-0a3b7f1471b608a83edfdf3cdca391aca6f73eb1.zip |
Merge remote branch 'origin/maint-0.2.2'
Diffstat (limited to 'src/common/torlog.h')
-rw-r--r-- | src/common/torlog.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/torlog.h b/src/common/torlog.h index d119993e87..7b48d0b32a 100644 --- a/src/common/torlog.h +++ b/src/common/torlog.h @@ -95,6 +95,10 @@ /** Number of logging domains in the code. */ #define N_LOGGING_DOMAINS 20 +/** This log message is not safe to send to a callback-based logger + * immediately. Used as a flag, not a log domain. */ +#define LD_NOCB (1u<<31) + typedef uint32_t log_domain_mask_t; /** Configures which severities are logged for each logging domain for a given @@ -137,6 +141,7 @@ void rollback_log_changes(void); void mark_logs_temp(void); void change_callback_log_severity(int loglevelMin, int loglevelMax, log_callback cb); +void flush_pending_log_callbacks(void); void log_set_application_name(const char *name); void set_log_time_granularity(int granularity_msec); |