static char* get_multi_merged (GSList *pkgs, GetListFunc func, gboolean in_path_order, gboolean include_private) { GSList *dups_list = NULL; GSList *list; char *retval; fill_list (pkgs, func, &dups_list, in_path_order, include_private); list = string_list_strip_duplicates (dups_list); g_slist_free (dups_list); retval = string_list_to_string (list); g_slist_free (list); return retval; }
static char* get_merged_from_back (Package *pkg, GetListFunc func, gboolean in_path_order, gboolean include_private) { GSList *list; GSList *dups_list = NULL; char *retval; fill_list_single_package (pkg, func, &dups_list, in_path_order, include_private); list = string_list_strip_duplicates_from_back (dups_list); g_slist_free (dups_list); retval = string_list_to_string (list); g_slist_free (list); return retval; }