Top | ![]() |
![]() |
![]() |
![]() |
Components can provide various items, like libraries, Python-modules, firmware, binaries, etc. Functions to work with these items are provided here.
See also: AsComponent
const gchar *
as_provides_kind_to_string (AsProvidesKind kind
);
Converts the enumerated value to an text representation.
AsProvidesKind
as_provides_kind_from_string (const gchar *kind_str
);
Converts the text representation to an enumerated value.
gchar * as_provides_item_create (AsProvidesKind kind
,const gchar *value
,const gchar *data
);
Creates a new provides-item string, which consists of a type-part describing the items type, and a name-part, containing the name of the item. Both are separated by a semicolon, so an item of type KIND_LIBRARY and name libappstream.so.0 will become "lib;libappstream.so.0;" A provides-item might also contain a "data" part, describing additional information about it. For example, for a KIND_DBUS provides type, the item might look like: dbus;org.freedesktop.PackageKit;system (specifying that the service name is on the system bus)
kind
a AsProvidesKind describing the type of the item string
value
the name of the item as string
data
(allow-none) (default NULL): additional data associated with this item
AsProvidesKind
as_provides_item_get_kind (const gchar *item
);
Returns the type (kind) of a provides-item string as AsProvidesKind
item
a valid provides-item string