summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-03-02 22:29:58 +0000
committerNick Mathewson <nickm@torproject.org>2005-03-02 22:29:58 +0000
commitf90ccf5648309152e5d10b941cd3eb6cb0dce21a (patch)
treee5f6d2f344abb7852e7a6f1476f1cdbd990f564f /src/or/or.h
parent4b5e213a0b91bcb6b3b848625f8ce6dd39381d6e (diff)
downloadtor-f90ccf5648309152e5d10b941cd3eb6cb0dce21a.tar.gz
tor-f90ccf5648309152e5d10b941cd3eb6cb0dce21a.zip
Implement new controller events for changed descriptors and new (not-yet-attached) streams.
svn:r3731
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 9b86307c56..4622cfb196 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1362,7 +1362,8 @@ typedef enum stream_status_event_t {
STREAM_EVENT_SENT_RESOLVE = 1,
STREAM_EVENT_SUCCEEDED = 2,
STREAM_EVENT_FAILED = 3,
- STREAM_EVENT_CLOSED = 4
+ STREAM_EVENT_CLOSED = 4,
+ STREAM_EVENT_NEW = 5
} stream_status_event_t;
typedef enum or_conn_status_event_t {
@@ -1381,6 +1382,7 @@ int control_event_stream_status(connection_t *conn, stream_status_event_t e);
int control_event_or_conn_status(connection_t *conn, or_conn_status_event_t e);
int control_event_bandwidth_used(uint32_t n_read, uint32_t n_written);
void control_event_logmsg(int severity, const char *msg);
+int control_event_descriptors_changed(smartlist_t *routers);
int init_cookie_authentication(int enabled);
int decode_hashed_password(char *buf, const char *hashed);