From d0b1da2153b2ffce82a8311f803f908f95bc8831 Mon Sep 17 00:00:00 2001 From: jorton Date: Tue, 12 Dec 2017 08:33:18 +0000 Subject: Add apr_pool_get_tag to retrieve the pool tag name. * memory/unix/apr_pools.c (apr_pool_get_tag): New function. * test/testpools.c: Test it. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1817892 13f79535-47bb-0310-9956-ffa450edef68 --- memory/unix/apr_pools.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'memory/unix/apr_pools.c') diff --git a/memory/unix/apr_pools.c b/memory/unix/apr_pools.c index 314643359..d9eb59998 100644 --- a/memory/unix/apr_pools.c +++ b/memory/unix/apr_pools.c @@ -2432,6 +2432,10 @@ APR_DECLARE(void) apr_pool_tag(apr_pool_t *pool, const char *tag) pool->tag = tag; } +APR_DECLARE(const char *) apr_pool_get_tag(apr_pool_t *pool) +{ + return pool->tag; +} /* * User data management -- cgit v1.2.1