Method

AppStreamComponentadd_tag

since: 0.15.0

Declaration [src]

gboolean
as_component_add_tag (
  AsComponent* cpt,
  const gchar* ns,
  const gchar* tag
)

Description [src]

Add a tag to this component.

Available since: 0.15.0

Parameters

ns

Type: const gchar*

The namespace the tag belongs to.

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

Type: const gchar*

The tag name.

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

Return value

Type: gboolean

TRUE if the tag was added.