component_to_metainfo


Description:

public string component_to_metainfo (FormatKind format) throws Error

Convert an Component to metainfo data.

This will always be XML, YAML is no valid format for metainfo files.

The amount of localization included in the metadata depends on how the Component was initially loaded and whether it contains data for all locale.

The first Component added to the internal list will be transformed. In case no component is present, null is returned.

Parameters:

this

An instance of Metadata.

format

The format to use (XML or YAML)

Returns:

A string containing the XML metadata. Free with g_free




2022 vala-language.org