summaryrefslogtreecommitdiff
path: root/src/or/control.h
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2015-05-06 12:37:13 +0000
committerAndrea Shepard <andrea@torproject.org>2015-05-17 13:42:57 +0000
commitdce9e915c77ccf42e74a5cccca309e8085738d75 (patch)
tree73256809d1c90d2431b357617ec1136a5eeb5272 /src/or/control.h
parent411049d0d44963b8d9ec6f96c8dc62a106d6cc30 (diff)
downloadtor-dce9e915c77ccf42e74a5cccca309e8085738d75.tar.gz
tor-dce9e915c77ccf42e74a5cccca309e8085738d75.zip
Implement EVENT_NETWORK_LIVENESS
Diffstat (limited to 'src/or/control.h')
-rw-r--r--src/or/control.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/control.h b/src/or/control.h
index cb0468fa07..43a95b319f 100644
--- a/src/or/control.h
+++ b/src/or/control.h
@@ -67,6 +67,7 @@ int control_event_or_authdir_new_descriptor(const char *action,
size_t desclen,
const char *msg);
int control_event_my_descriptor_changed(void);
+int control_event_network_liveness_update(int liveness);
int control_event_networkstatus_changed(smartlist_t *statuses);
int control_event_newconsensus(const networkstatus_t *consensus);
@@ -166,7 +167,8 @@ void control_free_all(void);
#define EVENT_TRANSPORT_LAUNCHED 0x0020
#define EVENT_HS_DESC 0x0021
#define EVENT_HS_DESC_CONTENT 0x0022
-#define EVENT_MAX_ 0x0022
+#define EVENT_NETWORK_LIVENESS 0x0023
+#define EVENT_MAX_ 0x0023
/* sizeof(control_connection_t.event_mask) in bits, currently a uint64_t */
#define EVENT_CAPACITY_ 0x0040