![]() |
![]() |
![]() |
AppStream-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <appstream-glib.h> enum AsProvideKind; AsProvide * as_provide_new (void
); AsProvideKind as_provide_kind_from_string (const gchar *kind
); const gchar * as_provide_kind_to_string (AsProvideKind kind
); const gchar * as_provide_get_value (AsProvide *provide
); AsProvideKind as_provide_get_kind (AsProvide *provide
); void as_provide_set_value (AsProvide *provide
,const gchar *value
,gssize value_len
); void as_provide_set_kind (AsProvide *provide
,AsProvideKind kind
);
Applications may provide different binary names, firmware files and that kind of thing. This is the place to express those extra items.
See also: AsApp
typedef enum { AS_PROVIDE_KIND_UNKNOWN, AS_PROVIDE_KIND_LIBRARY, AS_PROVIDE_KIND_BINARY, AS_PROVIDE_KIND_FONT, AS_PROVIDE_KIND_MODALIAS, AS_PROVIDE_KIND_FIRMWARE, AS_PROVIDE_KIND_PYTHON2, AS_PROVIDE_KIND_PYTHON3, AS_PROVIDE_KIND_DBUS, /* Since: 0.1.7 */ AS_PROVIDE_KIND_DBUS_SYSTEM, /* Since: 0.2.4 */ } AsProvideKind;
The provide type.
Type invalid or not known | |
A library file | |
A binary file | |
A font file | |
A hardware modalias | |
A firmware file | |
A Python 2 module | |
A Python 3 module | |
A D-Bus service | |
A D-Bus system service |
AsProvide * as_provide_new (void
);
Creates a new AsProvide.
Returns : |
a AsProvide. [transfer full] |
Since 0.1.6
AsProvideKind as_provide_kind_from_string (const gchar *kind
);
Converts the text representation to an enumerated value.
|
the string. |
Returns : |
a AsProvideKind, or AS_PROVIDE_KIND_UNKNOWN for unknown. [transfer full]
|
Since 0.1.6
const gchar * as_provide_kind_to_string (AsProvideKind kind
);
Converts the enumerated value to an text representation.
|
the AsProvideKind. |
Returns : |
string version of kind
|
Since 0.1.6
const gchar * as_provide_get_value (AsProvide *provide
);
Gets the full qualified URL for the provide, usually pointing at some mirror.
|
a AsProvide instance. |
Returns : |
URL |
Since 0.1.6
AsProvideKind as_provide_get_kind (AsProvide *provide
);
Gets the provide kind.
|
a AsProvide instance. |
Returns : |
the AsProvideKind |
Since 0.1.6
void as_provide_set_value (AsProvide *provide
,const gchar *value
,gssize value_len
);
Sets the fully-qualified mirror URL to use for the provide.
|
a AsProvide instance. |
|
the URL. |
|
the size of value , or -1 if NULL -terminated. |
Since 0.1.6
void as_provide_set_kind (AsProvide *provide
,AsProvideKind kind
);
Sets the provide kind.
|
a AsProvide instance. |
|
the AsProvideKind, e.g. AS_PROVIDE_KIND_LIBRARY . |
Since 0.1.6