diff options
author | U+039b <*@0x39b.fr> | 2016-07-14 18:46:37 +0200 |
---|---|---|
committer | U+039b <*@0x39b.fr> | 2016-07-14 18:46:37 +0200 |
commit | c735220a0b4c2c7852145fe8e9bf2584d4901d1f (patch) | |
tree | ec0e221422b4336798eb6fd6491f5dae0e56493d /src/or/buffers.h | |
parent | 3ac434104af0a40e75bfb5116046eae1cd51f6d3 (diff) | |
download | tor-c735220a0b4c2c7852145fe8e9bf2584d4901d1f.tar.gz tor-c735220a0b4c2c7852145fe8e9bf2584d4901d1f.zip |
Remove bufferevents dead code
Signed-off-by: U+039b <*@0x39b.fr>
Diffstat (limited to 'src/or/buffers.h')
-rw-r--r-- | src/or/buffers.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/or/buffers.h b/src/or/buffers.h index 2b43ea14b1..2b25bc3c07 100644 --- a/src/or/buffers.h +++ b/src/or/buffers.h @@ -56,35 +56,6 @@ int peek_buf_has_control0_command(buf_t *buf); int fetch_ext_or_command_from_buf(buf_t *buf, ext_or_cmd_t **out); -#ifdef USE_BUFFEREVENTS -int fetch_var_cell_from_evbuffer(struct evbuffer *buf, var_cell_t **out, - int linkproto); -int fetch_from_evbuffer_socks(struct evbuffer *buf, socks_request_t *req, - int log_sockstype, int safe_socks); -int fetch_from_evbuffer_socks_client(struct evbuffer *buf, int state, - char **reason); -int fetch_from_evbuffer_http(struct evbuffer *buf, - char **headers_out, size_t max_headerlen, - char **body_out, size_t *body_used, size_t max_bodylen, - int force_complete); -int peek_evbuffer_has_control0_command(struct evbuffer *buf); -int write_to_evbuffer_zlib(struct evbuffer *buf, tor_zlib_state_t *state, - const char *data, size_t data_len, - int done); -int fetch_ext_or_command_from_evbuffer(struct evbuffer *buf, - ext_or_cmd_t **out); -#endif - -#ifdef USE_BUFFEREVENTS -#define generic_buffer_new() evbuffer_new() -#define generic_buffer_len(b) evbuffer_get_length((b)) -#define generic_buffer_add(b,dat,len) evbuffer_add((b),(dat),(len)) -#define generic_buffer_get(b,buf,buflen) evbuffer_remove((b),(buf),(buflen)) -#define generic_buffer_clear(b) evbuffer_drain((b), evbuffer_get_length((b))) -#define generic_buffer_free(b) evbuffer_free((b)) -#define generic_buffer_fetch_ext_or_cmd(b, out) \ - fetch_ext_or_command_from_evbuffer((b), (out)) -#else #define generic_buffer_new() buf_new() #define generic_buffer_len(b) buf_datalen((b)) #define generic_buffer_add(b,dat,len) write_to_buf((dat),(len),(b)) @@ -93,7 +64,6 @@ int fetch_ext_or_command_from_evbuffer(struct evbuffer *buf, #define generic_buffer_free(b) buf_free((b)) #define generic_buffer_fetch_ext_or_cmd(b, out) \ fetch_ext_or_command_from_buf((b), (out)) -#endif int generic_buffer_set_to_copy(generic_buffer_t **output, const generic_buffer_t *input); |