summaryrefslogtreecommitdiff
path: root/src/or/control.h
diff options
context:
space:
mode:
authorTaylor Yu <catalyst@torproject.org>2017-09-13 14:47:18 -0500
committerTaylor Yu <catalyst@torproject.org>2017-09-14 08:25:27 -0500
commit818332e7f1406399007fa9c102a0f6bdbe46a045 (patch)
tree9aa74dd79cbf570267cf349cd97b552e5bed0dbf /src/or/control.h
parent00bf4ed592edfe73505499ce525aa3c96d35ae34 (diff)
downloadtor-818332e7f1406399007fa9c102a0f6bdbe46a045.tar.gz
tor-818332e7f1406399007fa9c102a0f6bdbe46a045.zip
Refactor control_event_bootstrap_problem
Change the contract of control_event_bootstrap_problem() to be more general and to take a connection_t. New function control_event_bootstrap_prob_or() has the specific or_connection_t funcionality previously used.
Diffstat (limited to 'src/or/control.h')
-rw-r--r--src/or/control.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/control.h b/src/or/control.h
index 5f6dcc352b..8003126f3e 100644
--- a/src/or/control.h
+++ b/src/or/control.h
@@ -99,9 +99,11 @@ void enable_control_logging(void);
void monitor_owning_controller_process(const char *process_spec);
int control_event_bootstrap(bootstrap_status_t status, int progress);
-MOCK_DECL(void, control_event_bootstrap_problem,(const char *warn,
+MOCK_DECL(void, control_event_bootstrap_prob_or,(const char *warn,
int reason,
or_connection_t *or_conn));
+void control_event_bootstrap_problem(const char *warn, const char *reason,
+ const connection_t *conn, int dowarn);
void control_event_clients_seen(const char *controller_str);
void control_event_transport_launched(const char *mode,