Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-08-16 09:50:00 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-16 09:50:00 +0400
commit763c205e7243d54f2d06d0031dd6b370a603c759 (patch)
tree9d62dd5a960c3dbec363de0e91dba144b19a24a6 /source/blender/blenlib/BLI_linklist.h
parentdb01d290e7c95bd147a297e4996171e76908c9aa (diff)
add support for mempool/linklist functions.
Diffstat (limited to 'source/blender/blenlib/BLI_linklist.h')
-rw-r--r--source/blender/blenlib/BLI_linklist.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_linklist.h b/source/blender/blenlib/BLI_linklist.h
index 3e7fdc8bf75..9c1e1f88bab 100644
--- a/source/blender/blenlib/BLI_linklist.h
+++ b/source/blender/blenlib/BLI_linklist.h
@@ -36,6 +36,7 @@
*/
struct MemArena;
+struct BLI_mempool;
typedef void (*LinkNodeFreeFP)(void *link);
typedef void (*LinkNodeApplyFP)(void *link, void *userdata);
@@ -56,10 +57,14 @@ void BLI_linklist_reverse(struct LinkNode **listp);
void BLI_linklist_prepend(struct LinkNode **listp, void *ptr);
void BLI_linklist_append(struct LinkNode **listp, void *ptr);
void BLI_linklist_prepend_arena(struct LinkNode **listp, void *ptr, struct MemArena *ma);
+void BLI_linklist_prepend_pool(struct LinkNode **listp, void *ptr, struct BLI_mempool *mempool);
+void *BLI_linklist_pop(struct LinkNode **listp);
+void *BLI_linklist_pop_pool(struct LinkNode **listp, struct BLI_mempool *mempool);
void BLI_linklist_insert_after(struct LinkNode **listp, void *ptr);
void BLI_linklist_free(struct LinkNode *list, LinkNodeFreeFP freefunc);
void BLI_linklist_freeN(struct LinkNode *list);
+void BLI_linklist_free_pool(LinkNode *list, LinkNodeFreeFP freefunc, struct BLI_mempool *mempool);
void BLI_linklist_apply(struct LinkNode *list, LinkNodeApplyFP applyfunc, void *userdata);
#endif