summaryrefslogtreecommitdiff
path: root/src/feature/nodelist/describe.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-25 16:13:47 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-25 16:13:47 -0400
commit5c86f3c297229515f125c0e06abdc689c90768f4 (patch)
treecd82f2712528adfb45ccd7d8538c545352921aec /src/feature/nodelist/describe.h
parentfcd0f76134c2e1e420b1379906955d41e8a6df66 (diff)
downloadtor-5c86f3c297229515f125c0e06abdc689c90768f4.tar.gz
tor-5c86f3c297229515f125c0e06abdc689c90768f4.zip
Move the various _describe() functions out of router.c
Note that I haven't separated the headers yet (there's still an
Diffstat (limited to 'src/feature/nodelist/describe.h')
-rw-r--r--src/feature/nodelist/describe.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/feature/nodelist/describe.h b/src/feature/nodelist/describe.h
new file mode 100644
index 0000000000..e5723bb933
--- /dev/null
+++ b/src/feature/nodelist/describe.h
@@ -0,0 +1,25 @@
+/* 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 */
+
+/**
+ * \file describe.h
+ * \brief Header file for describe.c.
+ **/
+
+#ifndef TOR_DESCRIBE_H
+#define TOR_DESCRIBE_H
+
+struct extend_info_t;
+struct node_t;
+struct routerinfo_t;
+struct routerstatus_t;
+
+const char *extend_info_describe(const struct extend_info_t *ei);
+const char *node_describe(const struct node_t *node);
+const char *router_describe(const struct routerinfo_t *ri);
+const char *routerstatus_describe(const struct routerstatus_t *ri);
+
+#endif