aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-02-08 12:12:09 -0500
committerNick Mathewson <nickm@torproject.org>2013-02-08 12:12:09 -0500
commitc8f5f35d6237de0ecd5ddac0a9a4c84915cbe177 (patch)
treec71cff2e14d004a39d2d0c454671b980361608fd /src
parent2403ef66bada5f1fb851ce424af4ab5916faca67 (diff)
downloadtor-c8f5f35d6237de0ecd5ddac0a9a4c84915cbe177.tar
tor-c8f5f35d6237de0ecd5ddac0a9a4c84915cbe177.tar.gz
Add doxygen for bug8158 functions
Diffstat (limited to 'src')
-rw-r--r--src/or/dirvote.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c
index c10a60fa7..66dc50deb 100644
--- a/src/or/dirvote.c
+++ b/src/or/dirvote.c
@@ -3664,6 +3664,8 @@ static const struct consensus_method_range_t {
{-1, -1}
};
+/** Helper type used when generating the microdescriptor lines in a directory
+ * vote. */
typedef struct microdesc_vote_line_t {
int low;
int high;
@@ -3671,6 +3673,9 @@ typedef struct microdesc_vote_line_t {
struct microdesc_vote_line_t *next;
} microdesc_vote_line_t;
+/** Generate and return a linked list of all the lines that should appear to
+ * describe a router's microdescriptor versions in a directory vote.
+ * Add the generated microdescriptors to <b>microdescriptors_out</b>. */
vote_microdesc_hash_t *
dirvote_format_all_microdesc_vote_lines(const routerinfo_t *ri, time_t now,
smartlist_t *microdescriptors_out)