diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-08-04 09:29:30 -0700 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-09-27 12:29:42 -0400 |
commit | c6e22ae2b747681b86b6c00c1fe8438f2b4a8e0f (patch) | |
tree | ef44fa334ceeda667753d4d8bac41b9eb1cb10ff /src/or/connection.h | |
parent | a0f4841e2bc448b6e91e11c0c9dc2c93e5cf0ce7 (diff) | |
download | tor-c6e22ae2b747681b86b6c00c1fe8438f2b4a8e0f.tar.gz tor-c6e22ae2b747681b86b6c00c1fe8438f2b4a8e0f.zip |
Basic bufferevent callbacks
These are based strongly on connection_handle_read and
connection_handle_write, but hopefully without so much mixture of IO
logic and Tor logic.
Diffstat (limited to 'src/or/connection.h')
-rw-r--r-- | src/or/connection.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/connection.h b/src/or/connection.h index 36860117d1..13a2831227 100644 --- a/src/or/connection.h +++ b/src/or/connection.h @@ -12,10 +12,8 @@ #ifndef _TOR_CONNECTION_H #define _TOR_CONNECTION_H -#ifndef USE_BUFFEREVENTS /* XXXX For buf_datalen in inline function */ #include "buffers.h" -#endif const char *conn_type_to_string(int type); const char *conn_state_to_string(int type, int state); @@ -126,5 +124,9 @@ int connection_or_nonopen_was_started_here(or_connection_t *conn); void connection_dump_buffer_mem_stats(int severity); void remove_file_if_very_old(const char *fname, time_t now); +#ifdef USE_BUFFEREVENTS +void connection_configure_bufferevent_callbacks(connection_t *conn); +#endif + #endif |