diff options
author | Matt Traudt <sirmatt@ksu.edu> | 2017-07-10 16:10:50 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-09-07 11:49:38 -0400 |
commit | 91c7bebfa27efe059c29dbeac935942e2cc32c86 (patch) | |
tree | e67b50be9f9a2f8917dde9598d4c2ac7064b6462 /src/or/networkstatus.h | |
parent | f117da3ea006fbdda3f5e921d5f8da2ae3d3bdfd (diff) | |
download | tor-91c7bebfa27efe059c29dbeac935942e2cc32c86.tar.gz tor-91c7bebfa27efe059c29dbeac935942e2cc32c86.zip |
consensus: Add a generic notification function on new consensus
Some groundwork for the KIST scheduler implementation.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/networkstatus.h')
-rw-r--r-- | src/or/networkstatus.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/or/networkstatus.h b/src/or/networkstatus.h index f9320747d2..7abd47b0a8 100644 --- a/src/or/networkstatus.h +++ b/src/or/networkstatus.h @@ -114,10 +114,9 @@ void signed_descs_update_status_from_consensus_networkstatus( char *networkstatus_getinfo_helper_single(const routerstatus_t *rs); char *networkstatus_getinfo_by_purpose(const char *purpose_string, time_t now); void networkstatus_dump_bridge_status_to_file(time_t now); -int32_t networkstatus_get_param(const networkstatus_t *ns, - const char *param_name, - int32_t default_val, int32_t min_val, - int32_t max_val); +MOCK_DECL(int32_t, networkstatus_get_param, + (const networkstatus_t *ns, const char *param_name, + int32_t default_val, int32_t min_val, int32_t max_val)); int32_t networkstatus_get_overridable_param(const networkstatus_t *ns, int32_t torrc_value, const char *param_name, |