diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-09-05 22:09:44 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-09-05 22:09:44 +0000 |
commit | baeb260ad18842118f3574ab7ad73fb78c6a4b43 (patch) | |
tree | 4420e9b557fe6322c2d1ffe8ebe370c94405241b /src/or/or.h | |
parent | cd5d0f389045af1aefce305065b1da16dc4a94af (diff) | |
download | tor-baeb260ad18842118f3574ab7ad73fb78c6a4b43.tar.gz tor-baeb260ad18842118f3574ab7ad73fb78c6a4b43.zip |
Refactor use of connection_new so that we get more verifiable typesafety.
svn:r16785
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index a84bd9b9d6..9e19eaf7cc 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2814,7 +2814,12 @@ or_options_t *options_new(void); const char *conn_type_to_string(int type); const char *conn_state_to_string(int type, int state); +dir_connection_t *dir_connection_new(int socket_family); +or_connection_t *or_connection_new(int socket_family); +edge_connection_t *edge_connection_new(int type, int socket_family); +control_connection_t *control_connection_new(int socket_family); connection_t *connection_new(int type, int socket_family); + void connection_link_connections(connection_t *conn_a, connection_t *conn_b); void connection_unregister_events(connection_t *conn); void connection_free(connection_t *conn); |