summaryrefslogtreecommitdiff
path: root/src/lib/log/escape.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-27 12:52:31 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-27 12:52:31 -0400
commitb9b05e437d09c4d06b554d0484c7ae1a3aa1d647 (patch)
treeea45c980cb972a74be77ae7813dc249ff31ab4e8 /src/lib/log/escape.h
parent300e3bebd19b2686501d5400da1ca4a748027ba4 (diff)
parentd893be190fc244330543c9e98613a3f0daebc6ed (diff)
downloadtor-b9b05e437d09c4d06b554d0484c7ae1a3aa1d647.tar.gz
tor-b9b05e437d09c4d06b554d0484c7ae1a3aa1d647.zip
Merge branch 'net_refactor'
Diffstat (limited to 'src/lib/log/escape.h')
-rw-r--r--src/lib/log/escape.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/log/escape.h b/src/lib/log/escape.h
new file mode 100644
index 0000000000..5d2e79d6c2
--- /dev/null
+++ b/src/lib/log/escape.h
@@ -0,0 +1,18 @@
+/* Copyright (c) 2001, Matej Pfajfar.
+ * Copyright (c) 2001-2004, Roger Dingledine.
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2018, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+#ifndef TOR_ESCAPE_H
+#define TOR_ESCAPE_H
+
+#include "orconfig.h"
+#include "lib/cc/compat_compiler.h"
+#include <stddef.h>
+
+char *esc_for_log(const char *string) ATTR_MALLOC;
+char *esc_for_log_len(const char *chars, size_t n) ATTR_MALLOC;
+const char *escaped(const char *string);
+
+#endif /* !defined(TOR_TORLOG_H) */