mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Add ORCONN event pubsub system
Add a publish-subscribe subsystem to publish messages about changes to OR connections. connection_or_change_state() in connection_or.c and control_event_or_conn_event() in control.c publish messages to this subsystem via helper functions. Move state constants from connection_or.h to orconn_state.h so that subscribers don't have to include all of connection_or.h to take actions based on changes in OR connection state. Move event constants from control.h for similar reasons. Part of ticket 27167.
This commit is contained in:
@@ -39,6 +39,7 @@ LIBTOR_APP_A_SOURCES = \
|
||||
src/core/or/connection_or.c \
|
||||
src/core/or/dos.c \
|
||||
src/core/or/onion.c \
|
||||
src/core/or/orconn_event.c \
|
||||
src/core/or/policies.c \
|
||||
src/core/or/protover.c \
|
||||
src/core/or/protover_rust.c \
|
||||
@@ -238,6 +239,8 @@ noinst_HEADERS += \
|
||||
src/core/or/listener_connection_st.h \
|
||||
src/core/or/onion.h \
|
||||
src/core/or/or.h \
|
||||
src/core/or/orconn_event.h \
|
||||
src/core/or/orconn_event_sys.h \
|
||||
src/core/or/or_circuit_st.h \
|
||||
src/core/or/or_connection_st.h \
|
||||
src/core/or/or_handshake_certs_st.h \
|
||||
|
||||
Reference in New Issue
Block a user