![]() |
![]() |
![]() |
AppStream-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <appstream-glib.h> #define AS_TYPE_BUNDLE struct AsBundleClass; enum AsBundleKind; #define AS_BUNDLE_KIND_XDG_APP AsBundle * as_bundle_new (void
); AsBundleKind as_bundle_kind_from_string (const gchar *kind
); const gchar * as_bundle_kind_to_string (AsBundleKind kind
); const gchar * as_bundle_get_id (AsBundle *bundle
); const gchar * as_bundle_get_runtime (AsBundle *bundle
); const gchar * as_bundle_get_sdk (AsBundle *bundle
); AsBundleKind as_bundle_get_kind (AsBundle *bundle
); void as_bundle_set_id (AsBundle *bundle
,const gchar *id
); void as_bundle_set_runtime (AsBundle *bundle
,const gchar *runtime
); void as_bundle_set_sdk (AsBundle *bundle
,const gchar *sdk
); void as_bundle_set_kind (AsBundle *bundle
,AsBundleKind kind
);
Screenshot may have multiple versions of an bundle in different resolutions or aspect ratios. This object allows access to the location and size of a single bundle.
See also: AsScreenshot
typedef enum { AS_BUNDLE_KIND_UNKNOWN, /* Since: 0.3.5 */ AS_BUNDLE_KIND_LIMBA, /* Since: 0.3.5 */ AS_BUNDLE_KIND_FLATPAK, /* Since: 0.5.15 */ AS_BUNDLE_KIND_SNAP, /* Since: 0.6.1 */ AS_BUNDLE_KIND_PACKAGE, /* Since: 0.6.1 */ AS_BUNDLE_KIND_CABINET, /* Since: 0.6.2 */ AS_BUNDLE_KIND_APPIMAGE, /* Since: 0.6.4 */ } AsBundleKind;
The bundle type.
Type invalid or not known | |
Limba application bundle | |
Flatpak application deployment | |
Snap application deployment | |
Package-based application deployment | |
Cabinet firmware deployment | |
AppImage application bundle |
AsBundle * as_bundle_new (void
);
Creates a new AsBundle.
Returns : |
a AsBundle. [transfer full] |
Since 0.3.5
AsBundleKind as_bundle_kind_from_string (const gchar *kind
);
Converts the text representation to an enumerated value.
|
the string. |
Returns : |
a AsBundleKind, or AS_BUNDLE_KIND_UNKNOWN for unknown. [transfer full]
|
Since 0.3.5
const gchar * as_bundle_kind_to_string (AsBundleKind kind
);
Converts the enumerated value to an text representation.
|
the AsBundleKind. |
Returns : |
string version of kind
|
Since 0.3.5
const gchar * as_bundle_get_id (AsBundle *bundle
);
Gets the ID for this bundle.
|
a AsBundle instance. |
Returns : |
ID, e.g. "foobar-1.0.2" |
Since 0.3.5
const gchar * as_bundle_get_runtime (AsBundle *bundle
);
Gets the runtime required for this bundle.
|
a AsBundle instance. |
Returns : |
Runtime identifier, e.g. "org.gnome.Platform/i386/master" |
Since 0.5.10
const gchar * as_bundle_get_sdk (AsBundle *bundle
);
Gets the SDK for this bundle.
|
a AsBundle instance. |
Returns : |
SDK identifier, e.g. "org.gnome.Sdk/i386/master" |
Since 0.5.10
AsBundleKind as_bundle_get_kind (AsBundle *bundle
);
Gets the bundle kind.
|
a AsBundle instance. |
Returns : |
the AsBundleKind |
Since 0.3.5
void as_bundle_set_id (AsBundle *bundle
,const gchar *id
);
Sets the ID for this bundle.
|
a AsBundle instance. |
|
the URL. |
Since 0.3.5
void as_bundle_set_runtime (AsBundle *bundle
,const gchar *runtime
);
Sets the runtime required for this bundle.
|
a AsBundle instance. |
|
the URL. |
Since 0.5.10
void as_bundle_set_sdk (AsBundle *bundle
,const gchar *sdk
);
Sets the SDK for this bundle.
|
a AsBundle instance. |
|
the URL. |
Since 0.5.10
void as_bundle_set_kind (AsBundle *bundle
,AsBundleKind kind
);
Sets the bundle kind.
|
a AsBundle instance. |
|
the AsBundleKind, e.g. AS_BUNDLE_KIND_FLATPAK . |
Since 0.3.5