KaimingBundleRef

KaimingBundleRef — Application bundle reference

Functions

Properties

GFile * file Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── KaimingRef
        ╰── KaimingBundleRef

Description

A KaimingBundleRef refers to a single-file bundle containing an application or runtime.

Functions

kaiming_bundle_ref_new ()

KaimingBundleRef *
kaiming_bundle_ref_new (GFile *file,
                        GError **error);

Creates a new bundle ref for the given file.

Parameters

file

a GFile

 

error

return location for an error.

[allow-none]

Returns

a new bundle ref.


kaiming_bundle_ref_get_file ()

GFile *
kaiming_bundle_ref_get_file (KaimingBundleRef *self);

Get the file this bundle is stored in.

Parameters

self

a KaimingBundleRef

 

Returns

(transfer full) : an GFile


kaiming_bundle_ref_get_metadata ()

GBytes *
kaiming_bundle_ref_get_metadata (KaimingBundleRef *self);

Get the metadata for the app/runtime

Parameters

self

a KaimingBundleRef

 

Returns

(transfer full) : an GBytes with the metadata contents, or NULL


kaiming_bundle_ref_get_appstream ()

GBytes *
kaiming_bundle_ref_get_appstream (KaimingBundleRef *self);

Get the compressed appstream for the app/runtime

Parameters

self

a KaimingBundleRef

 

Returns

(transfer full) : an GBytes with the appstream contents, or NULL


kaiming_bundle_ref_get_icon ()

GBytes *
kaiming_bundle_ref_get_icon (KaimingBundleRef *self,
                             int size);

Get the icon png data for the app/runtime

Parameters

self

a KaimingBundleRef

 

size

64 or 128

 

Returns

(transfer full) : an GBytes with png contents


kaiming_bundle_ref_get_origin ()

char *
kaiming_bundle_ref_get_origin (KaimingBundleRef *self);

Get the origin url stored in the bundle

Parameters

self

a KaimingBundleRef

 

Returns

(transfer full) : an url string, or NULL


kaiming_bundle_ref_get_installed_size ()

guint64
kaiming_bundle_ref_get_installed_size (KaimingBundleRef *self);

Returns the installed size for the bundle.

Parameters

self

a KaimingBundleRef

 

Returns

the installed size


kaiming_bundle_ref_get_runtime_repo_url ()

char *
kaiming_bundle_ref_get_runtime_repo_url
                               (KaimingBundleRef *self);

Get the runtime kaimingrepo url stored in the bundle (if any)

Parameters

self

a KaimingBundleRef

 

Returns

(transfer full) : an url string, or NULL

Since: 0.8.0

Types and Values

struct KaimingBundleRef

struct KaimingBundleRef;

Property Details

The “file” property

  “file”                     GFile *

The bundle file that this ref refers to.

Owner: KaimingBundleRef

Flags: Read / Write / Construct Only