summaryrefslogtreecommitdiff
path: root/src/or/entrynodes.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-11-14 12:57:05 -0500
committerNick Mathewson <nickm@torproject.org>2016-11-30 14:42:52 -0500
commitf66f9c82e9b8aaac04dc01ee3bbcf60019864c9b (patch)
tree9d4f0bfd1135563b7284462c22cde54699c55f9f /src/or/entrynodes.h
parent62477906e9b5a378bcdd7b4588253ee422ccbb9f (diff)
downloadtor-f66f9c82e9b8aaac04dc01ee3bbcf60019864c9b.tar.gz
tor-f66f9c82e9b8aaac04dc01ee3bbcf60019864c9b.zip
Make entry_guard_t opaque to circpathbias.c
This was a relatively mechanical change. First, I added an accessor function for the pathbias-state field of a guard. Then I did a search-and-replace in circpathbias.c to replace "guard->pb." with "pb->". Finally, I made sure that "pb" was declared whenever it was needed.
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r--src/or/entrynodes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h
index ba8cd9f649..2e18a2f393 100644
--- a/src/or/entrynodes.h
+++ b/src/or/entrynodes.h
@@ -53,7 +53,7 @@ typedef struct guard_pathbias_t {
* this guard as first hop. */
} guard_pathbias_t;
-#if defined(ENTRYNODES_PRIVATE) || defined(ENTRYNODES_EXPOSE_STRUCT)
+#if defined(ENTRYNODES_PRIVATE)
/** An entry_guard_t represents our information about a chosen long-term
* first hop, known as a "helper" node in the literature. We can't just
* use a node_t, since we want to remember these even when we
@@ -106,6 +106,7 @@ const node_t *entry_guard_find_node(const entry_guard_t *guard);
void entry_guard_mark_bad(entry_guard_t *guard);
const char *entry_guard_get_rsa_id_digest(const entry_guard_t *guard);
const char *entry_guard_describe(const entry_guard_t *guard);
+guard_pathbias_t *entry_guard_get_pathbias_state(entry_guard_t *guard);
#ifdef ENTRYNODES_PRIVATE
STATIC const node_t *add_an_entry_guard(guard_selection_t *gs,