summaryrefslogtreecommitdiff
path: root/src/basic/mempool.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-10-09 15:53:35 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-10-11 10:55:41 +0200
commit7c48ea02800782651b7da373c6165abb052f1382 (patch)
treeecb4dc81364745c60e819d89fea515c3f922d04f /src/basic/mempool.h
parent6939fb9eb4c76de630b71f6b2ad98686d7fbd1bf (diff)
downloadsystemd-7c48ea02800782651b7da373c6165abb052f1382.tar.gz
Move use_pool() to mempool.c and rename to mempool_enabled()
The only user is in hashmap.c, but it's a mempool thing.
Diffstat (limited to 'src/basic/mempool.h')
-rw-r--r--src/basic/mempool.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/mempool.h b/src/basic/mempool.h
index 4098535c6f..d3ad63628f 100644
--- a/src/basic/mempool.h
+++ b/src/basic/mempool.h
@@ -22,6 +22,8 @@ static struct mempool pool_name = { \
.at_least = alloc_at_least, \
}
+bool mempool_enabled(void);
+
#if VALGRIND
void mempool_drop(struct mempool *mp);
#endif