aboutsummaryrefslogtreecommitdiff
path: root/src/or/control.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-05-07 17:41:54 -0400
committerNick Mathewson <nickm@torproject.org>2018-05-09 12:06:52 -0400
commit0c19ce7bdece5906e035e71d3fb682632c8bb9cb (patch)
treee96b97b0ddaff1acc149da9f64f0649c1e67b6d2 /src/or/control.h
parent79b38081e985d65cfd08236d2eb42a87cc59a786 (diff)
downloadtor-0c19ce7bdece5906e035e71d3fb682632c8bb9cb.tar.gz
tor-0c19ce7bdece5906e035e71d3fb682632c8bb9cb.zip
Give control.c responsibility for its own once-a-second events
Now it has a function that can tell the rest of Tor whether any once-a-second controller item should fire, and a function to fire all the once-a-second events.
Diffstat (limited to 'src/or/control.h')
-rw-r--r--src/or/control.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/control.h b/src/or/control.h
index 7f8a0bdb5f..92cbf866dd 100644
--- a/src/or/control.h
+++ b/src/or/control.h
@@ -40,6 +40,9 @@ int connection_control_process_inbuf(control_connection_t *conn);
#define EVENT_NS 0x000F
int control_event_is_interesting(int event);
+void control_per_second_events(void);
+int control_any_per_second_event_enabled(void);
+
int control_event_circuit_status(origin_circuit_t *circ,
circuit_status_event_t e, int reason);
int control_event_circuit_purpose_changed(origin_circuit_t *circ,