| Top |  |  |  |  | 
| const gchar * | as_provided_kind_to_string () | 
| AsProvidedKind | as_provided_kind_from_string () | 
| const gchar * | as_provided_kind_to_l10n_string () | 
| AsProvided * | as_provided_new () | 
| AsProvidedKind | as_provided_get_kind () | 
| void | as_provided_set_kind () | 
| GPtrArray * | as_provided_get_items () | 
| void | as_provided_add_item () | 
| gboolean | as_provided_has_item () | 
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_provided_kind_to_string (AsProvidedKind kind);
Converts the enumerated value to a text representation.
AsProvidedKind
as_provided_kind_from_string (const gchar *kind_str);
Converts the text representation to an enumerated value.
const gchar *
as_provided_kind_to_l10n_string (AsProvidedKind kind);
Converts the enumerated value to a localized text representation, using the plural forms (e.g. "Libraries" instead of "Library").
This can be useful when displaying provided items in GUI dialogs.
AsProvidedKind
as_provided_get_kind (AsProvided *prov);
The kind of items this AsProvided object stores.
void as_provided_set_kind (AsProvided *prov,AsProvidedKind kind);
Set the kind of items this AsProvided object stores.
GPtrArray *
as_provided_get_items (AsProvided *prov);
Get an array of provided data.
void as_provided_add_item (AsProvided *prov,const gchar *item);
Add a new provided item.
gboolean as_provided_has_item (AsProvided *prov,const gchar *item);
Check if the current AsProvided contains an item of the given name.
| prov | a AsProvided instance. | |
| item | the name of a provided item, e.g. "audio/x-vorbis" (in case the provided kind is a mimetype) | 
Type of the public interface components can provide.
| Unknown kind | ||
| A shared library | ||
| A binary installed into a directory in PATH | ||
| Provides a handler for a mimetype | ||
| A font | ||
| A modalias | ||
| A Python2 module | ||
| A Python3 module | ||
| A DBus service name on the system bus. | ||
| A DBus service name on the user/session bus. | ||
| Firmware flashed at runtime. | ||
| Firmware flashed permanently to the device. | ||
| An AppStream component |