diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-02-12 12:44:58 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-12 12:44:58 -0500 |
commit | 87fb1e324c1b3214765c46bec3d9ec6adc3fa83d (patch) | |
tree | 000e1e6d7d42f160bbd77aaf786a65971696ef19 /src/or/buffers.h | |
parent | 10d4d3e2d58f94418ca9554aee251232bbaaab99 (diff) | |
parent | 05d8111eedee9e11e4bb1c42e93ae2fc168d52ec (diff) | |
download | tor-87fb1e324c1b3214765c46bec3d9ec6adc3fa83d.tar.gz tor-87fb1e324c1b3214765c46bec3d9ec6adc3fa83d.zip |
Merge remote-tracking branch 'public/bug10169_024' into bug10169_025_v2
Conflicts:
src/or/circuitlist.c
Diffstat (limited to 'src/or/buffers.h')
-rw-r--r-- | src/or/buffers.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/buffers.h b/src/or/buffers.h index 48b1185204..70539bf55d 100644 --- a/src/or/buffers.h +++ b/src/or/buffers.h @@ -20,13 +20,16 @@ void buf_free(buf_t *buf); void buf_clear(buf_t *buf); buf_t *buf_copy(const buf_t *buf); void buf_shrink(buf_t *buf); -void buf_shrink_freelists(int free_all); +size_t buf_shrink_freelists(int free_all); void buf_dump_freelist_sizes(int severity); size_t buf_datalen(const buf_t *buf); size_t buf_allocation(const buf_t *buf); size_t buf_slack(const buf_t *buf); +uint32_t buf_get_oldest_chunk_timestamp(const buf_t *buf, uint32_t now); +size_t buf_get_total_allocation(void); + int read_to_buf(tor_socket_t s, size_t at_most, buf_t *buf, int *reached_eof, int *socket_error); int read_to_buf_tls(tor_tls_t *tls, size_t at_most, buf_t *buf); |