aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-08-11 15:03:43 -0400
committerNick Mathewson <nickm@torproject.org>2010-09-27 12:31:13 -0400
commitb63f6518cbdc4c80b09399bc17d3bec3cac76ad9 (patch)
tree5e280f817c5f077a00682ae0f0d5be9cb55cd37d /src/or/main.h
parentddcb59bb70457e203247931aaad3a3ff8b923f97 (diff)
downloadtor-b63f6518cbdc4c80b09399bc17d3bec3cac76ad9.tar.gz
tor-b63f6518cbdc4c80b09399bc17d3bec3cac76ad9.zip
Add bufferevent support for outgoing connections; exits are now supported.
Diffstat (limited to 'src/or/main.h')
-rw-r--r--src/or/main.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/main.h b/src/or/main.h
index 6175c28a95..10b8aad0fb 100644
--- a/src/or/main.h
+++ b/src/or/main.h
@@ -14,7 +14,9 @@
extern int can_complete_circuit;
-int connection_add(connection_t *conn);
+int connection_add_impl(connection_t *conn, int is_connecting);
+#define connection_add(conn) connection_add_impl((conn), 0)
+#define connection_add_connecting(conn) connection_add_impl((conn), 1)
int connection_remove(connection_t *conn);
void connection_unregister_events(connection_t *conn);
int connection_in_array(connection_t *conn);