diff options
author | vagrant <vagrant@precise32.(none)> | 2013-08-21 11:44:28 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-08-22 10:15:56 -0400 |
commit | 4834641dce809fbb6fd4a586a823446970d19c1d (patch) | |
tree | 21808e3e34994b1e4255f3b7a106820a65ec2469 /src/or/circuitstats.h | |
parent | 7121e7bd15659052ccf42e554ae959a75cfacb45 (diff) | |
download | tor-4834641dce809fbb6fd4a586a823446970d19c1d.tar.gz tor-4834641dce809fbb6fd4a586a823446970d19c1d.zip |
Make circ_times static and add accessor functions.
Change the global circ_times to a static variable and use
accessor functions throughout the code, instead of
accessing it directly.
Diffstat (limited to 'src/or/circuitstats.h')
-rw-r--r-- | src/or/circuitstats.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/circuitstats.h b/src/or/circuitstats.h index 53ba2b2d2e..2381bf9091 100644 --- a/src/or/circuitstats.h +++ b/src/or/circuitstats.h @@ -12,7 +12,9 @@ #ifndef TOR_CIRCUITSTATS_H #define TOR_CIRCUITSTATS_H -extern circuit_build_times_t circ_times; +circuit_build_times_t *get_circuit_build_times(void); +double get_circuit_build_close_time(void); +double get_circuit_build_timeout(void); int circuit_build_times_disabled(void); int circuit_build_times_enough_to_compute(circuit_build_times_t *cbt); |