diff options
author | Taylor Yu <catalyst@torproject.org> | 2018-12-16 17:01:25 -0600 |
---|---|---|
committer | Taylor Yu <catalyst@torproject.org> | 2018-12-20 18:46:17 -0600 |
commit | a0b4fa1f167f9b013ee1a8326e325ec3f97e4700 (patch) | |
tree | 23af519fc5dcd46d597776dea0ec9556aa9e3eab /src/feature/control/control.h | |
parent | 271b50f54abac7af44e3e54589ff965d3cdac816 (diff) | |
download | tor-a0b4fa1f167f9b013ee1a8326e325ec3f97e4700.tar.gz tor-a0b4fa1f167f9b013ee1a8326e325ec3f97e4700.zip |
Add origin circuit event pubsub system
Add a publish-subscribe subsystem to publish messages about changes to
origin circuits.
Functions in circuitbuild.c and circuitlist.c publish messages to this
subsystem.
Move circuit event constants out of control.h so that subscribers
don't have to include all of control.h to take actions based on
messages they receive.
Part of ticket 27167.
Diffstat (limited to 'src/feature/control/control.h')
-rw-r--r-- | src/feature/control/control.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/feature/control/control.h b/src/feature/control/control.h index d3245fcaf1..68c9a6bed1 100644 --- a/src/feature/control/control.h +++ b/src/feature/control/control.h @@ -12,15 +12,7 @@ #ifndef TOR_CONTROL_H #define TOR_CONTROL_H -/** Used to indicate the type of a circuit event passed to the controller. - * The various types are defined in control-spec.txt */ -typedef enum circuit_status_event_t { - CIRC_EVENT_LAUNCHED = 0, - CIRC_EVENT_BUILT = 1, - CIRC_EVENT_EXTENDED = 2, - CIRC_EVENT_FAILED = 3, - CIRC_EVENT_CLOSED = 4, -} circuit_status_event_t; +#include "core/or/ocirc_event.h" /** Used to indicate the type of a CIRC_MINOR event passed to the controller. * The various types are defined in control-spec.txt . */ |