diff options
author | David Goulet <dgoulet@torproject.org> | 2017-07-18 11:41:41 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-08-24 13:03:28 -0400 |
commit | 6222eae8cabd7ab99e634ad7463a8c38d414fa19 (patch) | |
tree | bcc2d2ba597cd6b75fef703f9fd899ebed5c0ac0 /src/or/connection.h | |
parent | 6eb9de1b8c2ede739ebcd3514201c07365fadb18 (diff) | |
download | tor-6222eae8cabd7ab99e634ad7463a8c38d414fa19.tar.gz tor-6222eae8cabd7ab99e634ad7463a8c38d414fa19.zip |
conn: Add a function to return a list of connection by state
This will be useful to the hidden service subsystem that needs to go over all
connections of a certain state to attach them to a hidden service circuit.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/connection.h')
-rw-r--r-- | src/or/connection.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/connection.h b/src/or/connection.h index 36e45aef38..0bcf0ccdce 100644 --- a/src/or/connection.h +++ b/src/or/connection.h @@ -182,6 +182,7 @@ MOCK_DECL(connection_t *,connection_get_by_type_addr_port_purpose,(int type, 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); +smartlist_t *connection_list_by_type_state(int type, int state); smartlist_t *connection_dir_list_by_purpose_and_resource( int purpose, const char *resource); |