Method

AppStreamComponenthas_category

Declaration [src]

gboolean
as_component_has_category (
  AsComponent* cpt,
  const gchar* category
)

Description [src]

Check if component is in the specified category.

Parameters

category const gchar*
 

The specified category to check.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.

Return value

Returns: gboolean
 

TRUE if the component is in the specified category.