diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-15 10:31:21 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-15 10:31:21 -0400 |
commit | 1416f54d1eb2651e6b82ccbe35585ce71378de8a (patch) | |
tree | d634752c0f3d1f2d2aefec21819d31874adad4a6 /src/or/connection.h | |
parent | 3b917b2408748efb2ce84c2725e2e81ee0217e03 (diff) | |
download | tor-1416f54d1eb2651e6b82ccbe35585ce71378de8a.tar.gz tor-1416f54d1eb2651e6b82ccbe35585ce71378de8a.zip |
Split dir_connection_t into its own header
Diffstat (limited to 'src/or/connection.h')
-rw-r--r-- | src/or/connection.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/or/connection.h b/src/or/connection.h index ad3129c9d8..59720ce3b8 100644 --- a/src/or/connection.h +++ b/src/or/connection.h @@ -150,20 +150,13 @@ MOCK_DECL(void, connection_write_to_buf_impl_, /* DOCDOC connection_write_to_buf */ static void connection_buf_add(const char *string, size_t len, connection_t *conn); -/* DOCDOC connection_write_to_buf_compress */ -static void connection_buf_add_compress(const char *string, size_t len, - dir_connection_t *conn, int done); static inline void connection_buf_add(const char *string, size_t len, connection_t *conn) { connection_write_to_buf_impl_(string, len, conn, 0); } -static inline void -connection_buf_add_compress(const char *string, size_t len, - dir_connection_t *conn, int done) -{ - connection_write_to_buf_impl_(string, len, TO_CONN(conn), done ? -1 : 1); -} +void connection_buf_add_compress(const char *string, size_t len, + dir_connection_t *conn, int done); void connection_buf_add_buf(connection_t *conn, buf_t *buf); /* DOCDOC connection_get_inbuf_len */ |