summaryrefslogtreecommitdiff
path: root/src/or/protover.h
diff options
context:
space:
mode:
authorChelsea Holland Komlo <me@chelseakomlo.com>2017-09-27 19:48:07 +0000
committerNick Mathewson <nickm@torproject.org>2017-10-27 10:02:08 -0400
commitd1820c1516a31a149fc51a9e5126bf899e4c4e08 (patch)
treeea2ed5c2259f87ca078378eff4f78c9bf0aa50da /src/or/protover.h
parent5418aa84eec9f08af7ab7b68cbc9145750ad0a1b (diff)
downloadtor-d1820c1516a31a149fc51a9e5126bf899e4c4e08.tar.gz
tor-d1820c1516a31a149fc51a9e5126bf899e4c4e08.zip
rust implementation of protover
Diffstat (limited to 'src/or/protover.h')
-rw-r--r--src/or/protover.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/protover.h b/src/or/protover.h
index 657977279e..7f1938e0c9 100644
--- a/src/or/protover.h
+++ b/src/or/protover.h
@@ -70,11 +70,15 @@ typedef struct proto_entry_t {
smartlist_t *ranges;
} proto_entry_t;
+#if !defined(HAVE_RUST) && defined(TOR_UNIT_TESTS)
STATIC smartlist_t *parse_protocol_list(const char *s);
-STATIC void proto_entry_free(proto_entry_t *entry);
STATIC char *encode_protocol_list(const smartlist_t *sl);
STATIC const char *protocol_type_to_str(protocol_type_t pr);
STATIC int str_to_protocol_type(const char *s, protocol_type_t *pr_out);
+STATIC void proto_entry_free(proto_entry_t *entry);
+
+#endif
+
#endif /* defined(PROTOVER_PRIVATE) */
#endif /* !defined(TOR_PROTOVER_H) */