Integration of the Google Summer of Code Modifier Stack Upgrade project. The
[blender.git] / source / blender / blenlib / intern / BLI_linklist.c
index 253d127db388625619041eed4ee5c0702af2e761..6bb828a44bfcf38883d992b026a6331e20ffe645 100644 (file)
@@ -113,7 +113,7 @@ void BLI_linklist_free(LinkNode *list, LinkNodeFreeFP freefunc) {
        }
 }
 
-void BLI_linklist_apply(LinkNode *list, LinkNodeApplyFP applyfunc) {
+void BLI_linklist_apply(LinkNode *list, LinkNodeApplyFP applyfunc, void *userdata) {
        for (; list; list= list->next)
-               applyfunc(list->link);
+               applyfunc(list->link, userdata);
 }