summaryrefslogtreecommitdiff
path: root/src/or/geoip.h
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2011-08-04 14:45:24 +0200
committerKarsten Loesing <karsten.loesing@gmx.net>2011-08-04 21:18:19 +0200
commitd690a99dfe65ba164aa3de0662be2a8fedc69b01 (patch)
tree1d939eb911af602d265845b6466f5a018e6d4d0f /src/or/geoip.h
parent88083463cb895df0286210830e14c635c9e026a5 (diff)
downloadtor-d690a99dfe65ba164aa3de0662be2a8fedc69b01.tar.gz
tor-d690a99dfe65ba164aa3de0662be2a8fedc69b01.zip
Clean up bridge-stats code.
Only write a bridge-stats string if bridge stats have been initialized. This behavior is similar to dirreq-stats, entry-stats, etc. Also add a few unit tests for the bridge-stats code.
Diffstat (limited to 'src/or/geoip.h')
-rw-r--r--src/or/geoip.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/geoip.h b/src/or/geoip.h
index 3372260357..ce3841967f 100644
--- a/src/or/geoip.h
+++ b/src/or/geoip.h
@@ -53,6 +53,7 @@ void geoip_entry_stats_term(void);
void geoip_reset_entry_stats(time_t now);
char *geoip_format_entry_stats(time_t now);
void geoip_bridge_stats_init(time_t now);
+char *geoip_format_bridge_stats(time_t now);
time_t geoip_bridge_stats_write(time_t now);
void geoip_bridge_stats_term(void);
const char *geoip_get_bridge_stats_extrainfo(time_t);