[msvc] Update csproj files
[mono.git] / eglib / src / glist.c
index 0e5eb3ac4d20d54e5e1304e586ebb2acc6ed4fa7..882fda48ec9b75772bd8f780d2f1fbef9266ab54 100644 (file)
@@ -125,6 +125,25 @@ g_list_remove (GList *list, gconstpointer data)
        return list;
 }
 
+GList*
+g_list_remove_all (GList *list, gconstpointer data)
+{
+       GList *current = g_list_find (list, data);
+
+       if (!current)
+               return list;
+
+       while (current) {
+               if (current == list)
+                       list = list->next;
+               g_list_free_1 (disconnect_node (current));
+
+               current = g_list_find (list, data);
+       }
+
+       return list;
+}
+
 GList*
 g_list_remove_link (GList *list, GList *link)
 {