Method

AppStreamComposeResultadd_component

Declaration [src]

gboolean
asc_result_add_component (
  AscResult* result,
  AsComponent* cpt,
  GBytes* bytes,
  GError** error
)

Description [src]

Add component to the results set.

Parameters

cpt AsComponent
 

The AsComponent to add.

 The data is owned by the caller of the function.
bytes GBytes
 

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

 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE on success.