aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-13 09:45:55 -0400
committerNick Mathewson <nickm@torproject.org>2016-09-13 09:45:55 -0400
commit8fdf2f583c73f249791bd3a7627d27da4a6ef36f (patch)
tree62b891ef9b04d44b44c86ea54c56c63cc650b895 /src/or/routerparse.h
parent08d2d7c404af9fd836f2fcc35936899a99f813ae (diff)
downloadtor-8fdf2f583c73f249791bd3a7627d27da4a6ef36f.tar.gz
tor-8fdf2f583c73f249791bd3a7627d27da4a6ef36f.zip
Unit tests for proposal 271 client-side implementation
Diffstat (limited to 'src/or/routerparse.h')
-rw-r--r--src/or/routerparse.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/routerparse.h b/src/or/routerparse.h
index 81ef724945..9a3fadca1f 100644
--- a/src/or/routerparse.h
+++ b/src/or/routerparse.h
@@ -112,6 +112,14 @@ MOCK_DECL(STATIC dumped_desc_t *, dump_desc_populate_one_file,
STATIC void dump_desc_populate_fifo_from_directory(const char *dirname);
STATIC void dump_desc(const char *desc, const char *type);
STATIC void dump_desc_fifo_cleanup(void);
+struct memarea_t;
+STATIC routerstatus_t *routerstatus_parse_entry_from_string(
+ struct memarea_t *area,
+ const char **s, smartlist_t *tokens,
+ networkstatus_t *vote,
+ vote_routerstatus_t *vote_rs,
+ int consensus_method,
+ consensus_flavor_t flav);
#endif
#define ED_DESC_SIGNATURE_PREFIX "Tor router descriptor signature v1"