aboutsummaryrefslogtreecommitdiff
path: root/src/or/relay.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-01-13 09:52:07 -0500
committerNick Mathewson <nickm@torproject.org>2014-02-12 12:48:20 -0500
commit9a07ec751ff73062b958a8fc9f8437bed72e144c (patch)
treef603ecc2eed23118c7e848f0a80d0b00a665e262 /src/or/relay.h
parent52d222aafbc21d674624fdd4c8fc834a40af69c7 (diff)
downloadtor-9a07ec751ff73062b958a8fc9f8437bed72e144c.tar.gz
tor-9a07ec751ff73062b958a8fc9f8437bed72e144c.zip
Refactor OOM-handling functions for more testability
This patch splits out some of the functions in OOM handling so that it's easier to check them without involving the rest of Tor or requiring that the circuits be "wired up".
Diffstat (limited to 'src/or/relay.h')
-rw-r--r--src/or/relay.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/relay.h b/src/or/relay.h
index 20eecfb400..2c7d0d8ae4 100644
--- a/src/or/relay.h
+++ b/src/or/relay.h
@@ -85,6 +85,8 @@ STATIC int connected_cell_parse(const relay_header_t *rh, const cell_t *cell,
tor_addr_t *addr_out, int *ttl_out);
STATIC packed_cell_t *packed_cell_new(void);
STATIC packed_cell_t *cell_queue_pop(cell_queue_t *queue);
+STATIC size_t cell_queues_get_total_allocation(void);
+STATIC int cell_queues_check_size(void);
#endif
#endif