summaryrefslogtreecommitdiff
path: root/src/or/connection.h
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-12-18 11:29:47 +1100
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-01-29 07:13:57 +1100
commite72cbf7a4e346f0d379961520db8bea7e9249f88 (patch)
tree5ba71d7d1db3926547f5cce0447fe7647bd5b124 /src/or/connection.h
parent268608c0a0605e596d1a884ee35d432c88bac38b (diff)
downloadtor-e72cbf7a4e346f0d379961520db8bea7e9249f88.tar.gz
tor-e72cbf7a4e346f0d379961520db8bea7e9249f88.zip
Choose directory servers by IPv4/IPv6 preferences
Add unit tests, refactor pick_directory functions.
Diffstat (limited to 'src/or/connection.h')
-rw-r--r--src/or/connection.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/connection.h b/src/or/connection.h
index 59ea6d898e..ec5c3945ec 100644
--- a/src/or/connection.h
+++ b/src/or/connection.h
@@ -186,9 +186,9 @@ connection_get_outbuf_len(connection_t *conn)
connection_t *connection_get_by_global_id(uint64_t id);
connection_t *connection_get_by_type(int type);
-connection_t *connection_get_by_type_addr_port_purpose(int type,
- const tor_addr_t *addr,
- uint16_t port, int purpose);
+MOCK_DECL(connection_t *,connection_get_by_type_addr_port_purpose,(int type,
+ const tor_addr_t *addr,
+ uint16_t port, int purpose));
connection_t *connection_get_by_type_state(int type, int state);
connection_t *connection_get_by_type_state_rendquery(int type, int state,
const char *rendquery);