mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user