aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-07-17 17:51:21 -0400
committerNick Mathewson <nickm@torproject.org>2013-08-15 12:03:36 -0400
commit7da59721a9963862b7b19dbba4e55d010c296d34 (patch)
tree96aaff19962770309a0915937cc15ee4ca5a9b3c /src/or/buffers.h
parent7a12cbc03d8fda94c9387a1976ad2ffc30b4b5b7 (diff)
downloadtor-7da59721a9963862b7b19dbba4e55d010c296d34.tar.gz
tor-7da59721a9963862b7b19dbba4e55d010c296d34.zip
Unit tests for fetch_ext_or_cmd
Diffstat (limited to 'src/or/buffers.h')
-rw-r--r--src/or/buffers.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/buffers.h b/src/or/buffers.h
index 50ac3dc3f2..48b1185204 100644
--- a/src/or/buffers.h
+++ b/src/or/buffers.h
@@ -81,6 +81,8 @@ int fetch_ext_or_command_from_evbuffer(struct evbuffer *buf,
#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))
@@ -88,6 +90,8 @@ int fetch_ext_or_command_from_evbuffer(struct evbuffer *buf,
#define generic_buffer_get(b,buf,buflen) fetch_from_buf((buf),(buflen),(b))
#define generic_buffer_clear(b) buf_clear((b))
#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);