Function

AppStreamutils_sort_components_into_categories

Declaration [src]

void
as_utils_sort_components_into_categories (
  GPtrArray* cpts,
  GPtrArray* categories,
  gboolean check_duplicates
)

Description [src]

Sorts all components in cpts into the AsCategory categories listed in categories.

Parameters

cpts An array of AsComponent*
 

List of components.

 The data is owned by the caller of the function.
categories An array of AsCategory*
 

List of categories to sort components into.

 The data is owned by the caller of the function.
check_duplicates gboolean
 

Whether to check for duplicates.