mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
add some stuff for zrtp
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13426 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -304,6 +304,20 @@ SWITCH_DECLARE(char *) switch_core_perform_strdup(switch_memory_pool_t *pool, co
|
||||
return duped;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(void) switch_core_memory_pool_set_data(switch_memory_pool_t *pool, const char *key, void *data)
|
||||
{
|
||||
apr_pool_userdata_set(data, key, NULL, pool);
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(void *) switch_core_memory_pool_get_data(switch_memory_pool_t *pool, const char *key)
|
||||
{
|
||||
void *data = NULL;
|
||||
|
||||
apr_pool_userdata_get(&data, key, pool);
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(void) switch_core_memory_pool_tag(switch_memory_pool_t *pool, const char *tag)
|
||||
{
|
||||
apr_pool_tag(pool, tag);
|
||||
|
Reference in New Issue
Block a user