Method

AppStreamComposeResultadd_component_with_string

Declaration [src]

gboolean
asc_result_add_component_with_string (
  AscResult* result,
  AsComponent* cpt,
  const gchar* data,
  GError** error
)

Description [src]

Add component to the results set, using string data.

Parameters

cpt AsComponent
 

The AsComponent to add.

 The data is owned by the caller of the function.
data const gchar*
 

Source data used to generate the GCID hash, or NULL if nonexistent.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE on success.