aboutsummaryrefslogtreecommitdiff
path: root/src/lib/defs
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-07-19 10:17:22 -0400
committerNick Mathewson <nickm@torproject.org>2019-07-19 10:17:22 -0400
commit5fb070a14da4802f11e84ed83143668502a227c4 (patch)
tree59af413736d2c4c802e43d2654e5aeecb2f87e72 /src/lib/defs
parentf682de609b456ccfdb19aef1a1afa8c0873ceb51 (diff)
downloadtor-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/defs')
-rw-r--r--src/lib/defs/include.am1
-rw-r--r--src/lib/defs/logging_types.h23
2 files changed, 24 insertions, 0 deletions
diff --git a/src/lib/defs/include.am b/src/lib/defs/include.am
index dfddc92e55..84ee403771 100644
--- a/src/lib/defs/include.am
+++ b/src/lib/defs/include.am
@@ -3,5 +3,6 @@
noinst_HEADERS += \
src/lib/defs/dh_sizes.h \
src/lib/defs/digest_sizes.h \
+ src/lib/defs/logging_types.h \
src/lib/defs/time.h \
src/lib/defs/x25519_sizes.h
diff --git a/src/lib/defs/logging_types.h b/src/lib/defs/logging_types.h
new file mode 100644
index 0000000000..57db818007
--- /dev/null
+++ b/src/lib/defs/logging_types.h
@@ -0,0 +1,23 @@
+/* Copyright (c) 2001, Matej Pfajfar.
+ * Copyright (c) 2001-2004, Roger Dingledine.
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2019, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+/**
+ * \file logging_types.h
+ *
+ * \brief Global definition for types used by logging systems.
+ **/
+
+#ifndef TOR_LOGGING_TYPES_H
+#define TOR_LOGGING_TYPES_H
+
+/* We define this here so that it can be used both by backtrace.h and
+ * log.h.
+ */
+
+/** Mask of zero or more log domains, OR'd together. */
+typedef uint64_t log_domain_mask_t;
+
+#endif