summaryrefslogtreecommitdiff
path: root/src/common/memarea.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-28 09:25:18 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-28 09:25:18 -0400
commiteee86e627b670b153bb5a0f41f9f8dfa4c378884 (patch)
tree0dd2a6db0e84f148d5d5614c336d56742d321c80 /src/common/memarea.h
parent9cf335c9a5fe6767e90cc5cfdc1f5c95465edb10 (diff)
downloadtor-eee86e627b670b153bb5a0f41f9f8dfa4c378884.tar.gz
tor-eee86e627b670b153bb5a0f41f9f8dfa4c378884.zip
Extract memarea into its own library
Diffstat (limited to 'src/common/memarea.h')
-rw-r--r--src/common/memarea.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/common/memarea.h b/src/common/memarea.h
deleted file mode 100644
index 7dc7ec1fed..0000000000
--- a/src/common/memarea.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* Copyright (c) 2008-2018, The Tor Project, Inc. */
-/* See LICENSE for licensing information */
-/* Tor dependencies */
-
-#ifndef TOR_MEMAREA_H
-#define TOR_MEMAREA_H
-
-typedef struct memarea_t memarea_t;
-
-memarea_t *memarea_new(void);
-void memarea_drop_all_(memarea_t *area);
-#define memarea_drop_all(area) \
- do { \
- memarea_drop_all_(area); \
- (area) = NULL; \
- } while (0)
-void memarea_clear(memarea_t *area);
-int memarea_owns_ptr(const memarea_t *area, const void *ptr);
-void *memarea_alloc(memarea_t *area, size_t sz);
-void *memarea_alloc_zero(memarea_t *area, size_t sz);
-void *memarea_memdup(memarea_t *area, const void *s, size_t n);
-char *memarea_strdup(memarea_t *area, const char *s);
-char *memarea_strndup(memarea_t *area, const char *s, size_t n);
-void memarea_get_stats(memarea_t *area,
- size_t *allocated_out, size_t *used_out);
-void memarea_assert_ok(memarea_t *area);
-
-#endif /* !defined(TOR_MEMAREA_H) */
-