summaryrefslogtreecommitdiff
path: root/src/common/torlog.h
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2010-12-01 03:24:03 +0200
committerNick Mathewson <nickm@torproject.org>2011-02-22 12:40:36 -0500
commit098b6ba72d636cf00cfa091e745c25a649fba493 (patch)
tree76d4890c31b79fc686d1d79f6440b11d88a9adbc /src/common/torlog.h
parent0ba69714b4c51bfddcce16b7e1b309fad4e3e3bc (diff)
downloadtor-098b6ba72d636cf00cfa091e745c25a649fba493.tar.gz
tor-098b6ba72d636cf00cfa091e745c25a649fba493.zip
Initial heartbeat subsystem commit.
Sets: * Documentation * Logging domain * Configuration option * Scheduled event * Makefile It also creates status.c and the log_heartbeat() function. All code was written by Sebastian Hahn. Commit message was written by me (George Kadianakis).
Diffstat (limited to 'src/common/torlog.h')
-rw-r--r--src/common/torlog.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/torlog.h b/src/common/torlog.h
index 1fe5806d16..4192a881cb 100644
--- a/src/common/torlog.h
+++ b/src/common/torlog.h
@@ -92,8 +92,10 @@
#define LD_HIST (1u<<18)
/** OR handshaking */
#define LD_HANDSHAKE (1u<<19)
+/** Heartbeat messages */
+#define LD_HEARTBEAT (1u<<20)
/** Number of logging domains in the code. */
-#define N_LOGGING_DOMAINS 20
+#define N_LOGGING_DOMAINS 21
/** This log message is not safe to send to a callback-based logger
* immediately. Used as a flag, not a log domain. */