summaryrefslogtreecommitdiff
path: root/src/or/main.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2018-04-17 09:44:01 -0400
committerDavid Goulet <dgoulet@torproject.org>2018-04-23 10:57:28 -0400
commit1d864987cbdab4286eed8f3a86a488759dc322ae (patch)
tree4198fedb4c0e0a850386935d6330628978b0ec03 /src/or/main.h
parenta4fcdc5decfe60bbd95aee2e5586e90c40b73225 (diff)
downloadtor-1d864987cbdab4286eed8f3a86a488759dc322ae.tar.gz
tor-1d864987cbdab4286eed8f3a86a488759dc322ae.zip
config: Set up periodic events when options changes
In case we transitionned to a new role in Tor, we need to launch and/or destroy some periodic events. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/main.h')
-rw-r--r--src/or/main.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/main.h b/src/or/main.h
index e50d14d4d9..5220b13216 100644
--- a/src/or/main.h
+++ b/src/or/main.h
@@ -86,6 +86,8 @@ uint64_t get_main_loop_success_count(void);
uint64_t get_main_loop_error_count(void);
uint64_t get_main_loop_idle_count(void);
+void periodic_events_on_new_options(const or_options_t *options);
+
extern time_t time_of_process_start;
extern int quiet_level;
extern token_bucket_rw_t global_bucket;