diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-06-08 18:55:35 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-06-08 18:55:35 +0400 |
commit | b1334526d1c333767d2e4fed38067bcc535e3f59 (patch) | |
tree | efb44261229c9c091c8cf55a17749cb23cc5c2be /src/mem_pool.h | |
parent | e116632d552920e6bbcc8d9fbccf76689ef7f16b (diff) | |
download | rspamd-b1334526d1c333767d2e4fed38067bcc535e3f59.tar.gz rspamd-b1334526d1c333767d2e4fed38067bcc535e3f59.zip |
* Add more logic for dynamic rules
* Add documentation for dynamic rules
* Add ability to make negations in networks in dynamic rules
Diffstat (limited to 'src/mem_pool.h')
-rw-r--r-- | src/mem_pool.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mem_pool.h b/src/mem_pool.h index 81d4a85fa..14f83d9c5 100644 --- a/src/mem_pool.h +++ b/src/mem_pool.h @@ -169,6 +169,15 @@ void memory_pool_unlock_shared (memory_pool_t *pool, void *pointer); void memory_pool_add_destructor (memory_pool_t *pool, pool_destruct_func func, void *data); /** + * Replace destructor callback to pool for specified pointer + * @param pool memory pool object + * @param func pointer to function-destructor + * @param old_data pointer to old data + * @param new_data pointer to data that would be passed to destructor + */ +void memory_pool_replace_destructor (memory_pool_t *pool, pool_destruct_func func, void *old_data, void *new_data); + +/** * Delete pool, free all its chunks and call destructors chain * @param pool memory pool object */ |