summaryrefslogtreecommitdiff
path: root/src/or/buffers.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-01-04 13:30:56 -0500
committerNick Mathewson <nickm@torproject.org>2014-02-12 12:47:49 -0500
commitf425cf833852c4e1b4660cbba6190d04b070f6b6 (patch)
treeb93bf3c9eede44bd6ff09b6d8f248623143d57cd /src/or/buffers.h
parenteb6f433bdbd6cf44e1f35272ed04a6c0e14f3c2d (diff)
downloadtor-f425cf833852c4e1b4660cbba6190d04b070f6b6.tar.gz
tor-f425cf833852c4e1b4660cbba6190d04b070f6b6.zip
Start writing tests for 10169.
Now we cover more chunk allocation functions.
Diffstat (limited to 'src/or/buffers.h')
-rw-r--r--src/or/buffers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/buffers.h b/src/or/buffers.h
index 70539bf55d..a201282da6 100644
--- a/src/or/buffers.h
+++ b/src/or/buffers.h
@@ -16,6 +16,7 @@
buf_t *buf_new(void);
buf_t *buf_new_with_capacity(size_t size);
+size_t buf_get_default_chunk_size(const buf_t *buf);
void buf_free(buf_t *buf);
void buf_clear(buf_t *buf);
buf_t *buf_copy(const buf_t *buf);
@@ -103,6 +104,8 @@ void assert_buf_ok(buf_t *buf);
#ifdef BUFFERS_PRIVATE
STATIC int buf_find_string_offset(const buf_t *buf, const char *s, size_t n);
+STATIC void buf_pullup(buf_t *buf, size_t bytes, int nulterminate);
+void buf_get_first_chunk_data(const buf_t *buf, const char **cp, size_t *sz);
#endif
#endif