diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-09-20 11:24:01 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-09-27 18:04:43 -0400 |
commit | 4bfc64ba1c23da0bd6f5165a788cc07d934c9a9b (patch) | |
tree | d6980bd91e2a64aca5ecee2b77f884757d624416 /src/or/connection.h | |
parent | af7fab020accd31f95ba2037ccd25c65e3290571 (diff) | |
download | tor-4bfc64ba1c23da0bd6f5165a788cc07d934c9a9b.tar.gz tor-4bfc64ba1c23da0bd6f5165a788cc07d934c9a9b.zip |
New function to grab a directory connection fetching a resource
We need this to tell if a given consensus flavor is being downloaded
or not.
Diffstat (limited to 'src/or/connection.h')
-rw-r--r-- | src/or/connection.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection.h b/src/or/connection.h index a40b1a5fb5..004ede5d04 100644 --- a/src/or/connection.h +++ b/src/or/connection.h @@ -124,6 +124,8 @@ 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); +dir_connection_t *connection_dir_get_by_purpose_and_resource( + int state, const char *resource); #define connection_speaks_cells(conn) ((conn)->type == CONN_TYPE_OR) int connection_is_listener(connection_t *conn); |