17 GList *result = g_list_copy(from);
19 for (item = items; item != NULL; item = item->next) {
20 GList *candidate = NULL;
22 for (candidate = from; candidate != NULL; candidate = candidate->next) {
23 if(cmp(candidate->data, item->data) == 0) {
24 result = g_list_remove(result, candidate->data);
GList * pcmk__subtract_lists(GList *from, GList *items, GCompareFunc cmp)