aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/mem_pool.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-18 16:48:51 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-18 16:48:51 +0000
commit9d090bfa97a3de12fbc6123def434609349b9031 (patch)
tree27c685ece7192e2453dcf822398afdda40093bd1 /src/libutil/mem_pool.h
parent9886b3d1a4e1d823a29b8f420766f2dc82c5a2fc (diff)
downloadrspamd-9d090bfa97a3de12fbc6123def434609349b9031.tar.gz
rspamd-9d090bfa97a3de12fbc6123def434609349b9031.zip
[Minor] Add mempool functions to work with glists
Diffstat (limited to 'src/libutil/mem_pool.h')
-rw-r--r--src/libutil/mem_pool.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libutil/mem_pool.h b/src/libutil/mem_pool.h
index 69e9f6437..f16d454f2 100644
--- a/src/libutil/mem_pool.h
+++ b/src/libutil/mem_pool.h
@@ -320,5 +320,21 @@ gpointer rspamd_mempool_get_variable (rspamd_mempool_t *pool,
*/
void rspamd_mempool_remove_variable (rspamd_mempool_t *pool,
const gchar *name);
+/**
+ * Prepend element to a list creating it in the memory pool
+ * @param l
+ * @param p
+ * @return
+ */
+GList *rspamd_mempool_glist_prepend (rspamd_mempool_t *pool,
+ GList *l, gpointer p) G_GNUC_WARN_UNUSED_RESULT;
+/**
+ * Append element to a list creating it in the memory pool
+ * @param l
+ * @param p
+ * @return
+ */
+GList *rspamd_mempool_glist_append (rspamd_mempool_t *pool,
+ GList *l, gpointer p) G_GNUC_WARN_UNUSED_RESULT;
#endif