aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitstats.h
diff options
context:
space:
mode:
authorvagrant <vagrant@precise32.(none)>2013-08-21 11:44:28 -0400
committerNick Mathewson <nickm@torproject.org>2013-08-22 10:15:56 -0400
commit4834641dce809fbb6fd4a586a823446970d19c1d (patch)
tree21808e3e34994b1e4255f3b7a106820a65ec2469 /src/or/circuitstats.h
parent7121e7bd15659052ccf42e554ae959a75cfacb45 (diff)
downloadtor-4834641dce809fbb6fd4a586a823446970d19c1d.tar
tor-4834641dce809fbb6fd4a586a823446970d19c1d.tar.gz
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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/circuitstats.h b/src/or/circuitstats.h
index 53ba2b2d2..2381bf909 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);