diff options
author | teor <teor@torproject.org> | 2019-11-29 10:50:09 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-11-29 10:50:09 +1000 |
commit | 7572988ea95fe4ae5201509a37ab06a3c3778c6d (patch) | |
tree | 396e928c2db30a3689fa41efc9449a98d6d74af7 /src/feature/control | |
parent | 99cf3f99c02752f8d6d89fe94272454c55285b66 (diff) | |
download | tor-7572988ea95fe4ae5201509a37ab06a3c3778c6d.tar.gz tor-7572988ea95fe4ae5201509a37ab06a3c3778c6d.zip |
control: Remove an unnecessary header in control_events.h
And replace it with a struct forward declaration.
Also, move all the headers in the file before the forward
declaration.
Cleanup after 31531.
Diffstat (limited to 'src/feature/control')
-rw-r--r-- | src/feature/control/control_events.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/feature/control/control_events.h b/src/feature/control/control_events.h index b0cf429fe3..3e9192fcc6 100644 --- a/src/feature/control/control_events.h +++ b/src/feature/control/control_events.h @@ -13,7 +13,9 @@ #define TOR_CONTROL_EVENTS_H #include "core/or/ocirc_event.h" -#include "lib/encoding/confline.h" +#include "core/or/orconn_event.h" + +struct config_line_t; /** Used to indicate the type of a CIRC_MINOR event passed to the controller. * The various types are defined in control-spec.txt . */ @@ -22,8 +24,6 @@ typedef enum circuit_status_minor_event_t { CIRC_MINOR_EVENT_CANNIBALIZED, } circuit_status_minor_event_t; -#include "core/or/orconn_event.h" - /** Used to indicate the type of a stream event passed to the controller. * The various types are defined in control-spec.txt */ typedef enum stream_status_event_t { @@ -158,7 +158,7 @@ int control_event_server_error(const char *format, ...) int control_event_guard(const char *nickname, const char *digest, const char *status); -int control_event_conf_changed(const config_line_t *elements); +int control_event_conf_changed(const struct config_line_t *elements); int control_event_buildtimeout_set(buildtimeout_set_event_t type, const char *args); int control_event_signal(uintptr_t signal); |