diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-07-31 14:51:04 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-09-27 12:28:43 -0400 |
commit | 4836014168067dc4ded2285a04a69ea169bb95a9 (patch) | |
tree | 7385f44899b213ebfb978ee0fd2ae2e550e05239 /src/or/buffers.h | |
parent | 051491780090c610c06882ead4b2cf17bc6c93df (diff) | |
download | tor-4836014168067dc4ded2285a04a69ea169bb95a9.tar.gz tor-4836014168067dc4ded2285a04a69ea169bb95a9.zip |
Clone fetch_var_cell_from_buf() for evbuffers.
Diffstat (limited to 'src/or/buffers.h')
-rw-r--r-- | src/or/buffers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/buffers.h b/src/or/buffers.h index 8fd403d954..f4174e91ac 100644 --- a/src/or/buffers.h +++ b/src/or/buffers.h @@ -35,6 +35,10 @@ int write_to_buf(const char *string, size_t string_len, buf_t *buf); int write_to_buf_zlib(buf_t *buf, tor_zlib_state_t *state, const char *data, size_t data_len, int done); int move_buf_to_buf(buf_t *buf_out, buf_t *buf_in, size_t *buf_flushlen); +#ifdef USE_BUFFEREVENTS +int fetch_var_cell_from_evbuffer(struct evbuffer *buf, var_cell_t **out, + int linkproto); +#endif int fetch_from_buf(char *string, size_t string_len, buf_t *buf); int fetch_var_cell_from_buf(buf_t *buf, var_cell_t **out, int linkproto); int fetch_from_buf_http(buf_t *buf, |