diff options
author | Joe Orton <jorton@apache.org> | 2017-12-12 08:33:18 +0000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2017-12-12 08:33:18 +0000 |
commit | 6e2b43d058c8864e53f3cca4d959be2e62fc6e85 (patch) | |
tree | 6eb1a1bfdd8c20ea00603167a701fcc99b9f0652 /memory | |
parent | bee9ab73fae728037462091e421bbd8d74bf3ce3 (diff) | |
download | apr-6e2b43d058c8864e53f3cca4d959be2e62fc6e85.tar.gz |
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: https://svn.apache.org/repos/asf/apr/apr/trunk@1817892 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'memory')
-rw-r--r-- | memory/unix/apr_pools.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |