aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitlist.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-11-21 17:23:25 -0500
committerNick Mathewson <nickm@torproject.org>2016-11-30 14:42:53 -0500
commitdbbaa515183e250e20c40fa7b4c00df9487058fa (patch)
treead7047ded85f1c231ff158e6aad8201824a72148 /src/or/circuitlist.h
parentde617a471442342fc2abafdde4e250fd31eb45ac (diff)
downloadtor-dbbaa515183e250e20c40fa7b4c00df9487058fa.tar.gz
tor-dbbaa515183e250e20c40fa7b4c00df9487058fa.zip
Use the new guard notification/selection APIs throughout Tor
This patch doesn't cover every case; omitted cases are marked with "XXXX prop271", as usual. It leaves both the old interface and the new interface for guard status notification, since they don't actually work in the same way: the new API wants to be told when a circuit has failed or succeeded, whereas the old API wants to know when a channel has failed or succeeded. I ran into some trouble with directory guard stuff, since when we pick the directory guard, we don't actually have a circuit to associate it with. I solved that by allowing guard states to be associated with directory connections, not just circuits.
Diffstat (limited to 'src/or/circuitlist.h')
-rw-r--r--src/or/circuitlist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuitlist.h b/src/or/circuitlist.h
index 989c02afd5..73039cc06e 100644
--- a/src/or/circuitlist.h
+++ b/src/or/circuitlist.h
@@ -77,6 +77,8 @@ void channel_note_destroy_pending(channel_t *chan, circid_t id);
MOCK_DECL(void, channel_note_destroy_not_pending,
(channel_t *chan, circid_t id));
+smartlist_t *circuit_find_circuits_to_upgrade_from_guard_wait(void);
+
#ifdef CIRCUITLIST_PRIVATE
STATIC void circuit_free(circuit_t *circ);
STATIC size_t n_cells_in_circ_queues(const circuit_t *c);