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:
authorBastien Montagne <montagne29@wanadoo.fr>2015-02-10 19:28:55 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-02-10 21:20:36 +0300
commitbc218cf4d24f1cb4653950be84129ff9039b4e65 (patch)
treeabec7fca8851584a62c8c08375560f18ebe19810 /source/blender/blenlib/BLI_linklist.h
parenta9c5d0ba51f453e5ffc8d392970cff5d36b9501d (diff)
BLI_linklist: Add a new helper to move an item (identified by its current index) to a new position in the list.
Diffstat (limited to 'source/blender/blenlib/BLI_linklist.h')
-rw-r--r--source/blender/blenlib/BLI_linklist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_linklist.h b/source/blender/blenlib/BLI_linklist.h
index 2ca363ee780..8dbf7b4a908 100644
--- a/source/blender/blenlib/BLI_linklist.h
+++ b/source/blender/blenlib/BLI_linklist.h
@@ -54,6 +54,8 @@ struct LinkNode *BLI_linklist_find(struct LinkNode *list, int index);
void BLI_linklist_reverse(struct LinkNode **listp);
+void BLI_linklist_move_item(struct LinkNode **listp, int curr_index, int new_index);
+
void BLI_linklist_prepend_nlink(struct LinkNode **listp, void *ptr, struct LinkNode *nlink);
void BLI_linklist_prepend(struct LinkNode **listp, void *ptr);
void BLI_linklist_prepend_arena(struct LinkNode **listp, void *ptr, struct MemArena *ma);