KaimingInstallation

KaimingInstallation — Installation information

Functions

KaimingInstallation * kaiming_installation_new_system ()
KaimingInstallation * kaiming_installation_new_system_with_id ()
KaimingInstallation * kaiming_installation_new_user ()
KaimingInstallation * kaiming_installation_new_for_path ()
gboolean kaiming_installation_get_is_user ()
GFile * kaiming_installation_get_path ()
GFileMonitor * kaiming_installation_create_monitor ()
KaimingInstalledRef * kaiming_installation_install ()
KaimingInstalledRef * kaiming_installation_install_full ()
KaimingInstalledRef * kaiming_installation_update ()
KaimingInstalledRef * kaiming_installation_update_full ()
gboolean kaiming_installation_uninstall ()
gboolean kaiming_installation_uninstall_full ()
gboolean kaiming_installation_launch ()
gboolean kaiming_installation_launch_full ()
KaimingInstalledRef * kaiming_installation_get_current_installed_app ()
const char * kaiming_installation_get_display_name ()
const char * kaiming_installation_get_id ()
KaimingInstalledRef * kaiming_installation_get_installed_ref ()
gboolean kaiming_installation_get_min_free_space_bytes ()
gint kaiming_installation_get_priority ()
KaimingStorageType kaiming_installation_get_storage_type ()
void kaiming_installation_set_no_interaction ()
gboolean kaiming_installation_get_no_interaction ()
GPtrArray * kaiming_installation_list_installed_refs ()
GPtrArray * kaiming_installation_list_installed_refs_by_kind ()
GPtrArray * kaiming_installation_list_installed_refs_for_update ()
GPtrArray * kaiming_installation_list_installed_related_refs_sync ()
GPtrArray * kaiming_installation_list_unused_refs ()
GPtrArray * kaiming_installation_list_remote_refs_sync ()
GPtrArray * kaiming_installation_list_remote_refs_sync_full ()
GPtrArray * kaiming_installation_list_remotes_by_type ()
GPtrArray * kaiming_installation_list_remote_related_refs_sync ()
GPtrArray * kaiming_installation_list_remotes ()
KaimingRemote * kaiming_installation_get_remote_by_name ()
GBytes * kaiming_installation_fetch_remote_metadata_sync ()
KaimingRemoteRef * kaiming_installation_fetch_remote_ref_sync ()
KaimingRemoteRef * kaiming_installation_fetch_remote_ref_sync_full ()
gboolean kaiming_installation_fetch_remote_size_sync ()
char * kaiming_installation_load_app_overrides ()
gboolean kaiming_installation_update_appstream_sync ()
KaimingInstalledRef * kaiming_installation_install_bundle ()
KaimingRemoteRef * kaiming_installation_install_ref_file ()
gboolean kaiming_installation_drop_caches ()
gboolean kaiming_installation_add_remote ()
gboolean kaiming_installation_modify_remote ()
gboolean kaiming_installation_remove_remote ()
gboolean kaiming_installation_update_remote_sync ()
gboolean kaiming_installation_cleanup_local_refs_sync ()
char * kaiming_installation_get_config ()
char ** kaiming_installation_get_default_languages ()
char ** kaiming_installation_get_default_locales ()
gboolean kaiming_installation_prune_local_repo ()
gboolean kaiming_installation_remove_local_ref_sync ()
gboolean kaiming_installation_set_config_sync ()
gboolean kaiming_installation_update_appstream_full_sync ()
gboolean kaiming_installation_run_triggers ()
const char * kaiming_get_default_arch ()
const char *const * kaiming_get_supported_arches ()
GPtrArray * kaiming_get_system_installations ()
void (*KaimingProgressCallback) ()

Types and Values

Object Hierarchy

    GObject
    ╰── KaimingInstallation

Description

KaimingInstallation is the toplevel object that software installers should use to operate on an kaiming applications.

An KaimingInstallation object provides information about an installation location for kaiming applications. Typical installation locations are either system-wide (in $prefix/var/lib/kaiming) or per-user (in ~/.local/share/kaiming).

KaimingInstallation can list configured remotes as well as installed application and runtime references (in short: refs), and it can add, remove and modify remotes.

KaimingInstallation can also run, install, update and uninstall applications and runtimes, but KaimingTransaction is a better, high-level API for these tasks.

To get a list of all configured installations, use kaiming_get_system_installations(), together with kaiming_installation_new_user().

The KaimingInstallation API is threadsafe in the sense that it is safe to run two operations at the same time, in different threads (or processes).

Functions

kaiming_installation_new_system ()

KaimingInstallation *
kaiming_installation_new_system (GCancellable *cancellable,
                                 GError **error);

Creates a new KaimingInstallation for the default system-wide installation.

Parameters

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a new KaimingInstallation.

[transfer full]


kaiming_installation_new_system_with_id ()

KaimingInstallation *
kaiming_installation_new_system_with_id
                               (const char *id,
                                GCancellable *cancellable,
                                GError **error);

Creates a new KaimingInstallation for the system-wide installation id .

Parameters

id

the ID of the system-wide installation.

[nullable]

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a new KaimingInstallation.

[transfer full]

Since: 0.8


kaiming_installation_new_user ()

KaimingInstallation *
kaiming_installation_new_user (GCancellable *cancellable,
                               GError **error);

Creates a new KaimingInstallation for the per-user installation.

Parameters

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a new KaimingInstallation.

[transfer full]


kaiming_installation_new_for_path ()

KaimingInstallation *
kaiming_installation_new_for_path (GFile *path,
                                   gboolean user,
                                   GCancellable *cancellable,
                                   GError **error);

Creates a new KaimingInstallation for the installation at the given path .

Parameters

path

a GFile

 

user

whether this is a user-specific location

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a new KaimingInstallation.

[transfer full]


kaiming_installation_get_is_user ()

gboolean
kaiming_installation_get_is_user (KaimingInstallation *self);

Returns whether the installation is for a user-specific location.

Parameters

Returns

TRUE if self is a per-user installation


kaiming_installation_get_path ()

GFile *
kaiming_installation_get_path (KaimingInstallation *self);

Returns the installation location for self .

Parameters

Returns

an GFile.

[transfer full]


kaiming_installation_create_monitor ()

GFileMonitor *
kaiming_installation_create_monitor (KaimingInstallation *self,
                                     GCancellable *cancellable,
                                     GError **error);

Gets monitor object for the installation. The returned file monitor will emit the “changed” signal whenever an application or runtime was installed, uninstalled or updated.

Parameters

self

a KaimingInstallation

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a new GFileMonitor instance, or NULL on error.

[transfer full]


kaiming_installation_install ()

KaimingInstalledRef *
kaiming_installation_install (KaimingInstallation *self,
                              const char *remote_name,
                              KaimingRefKind kind,
                              const char *name,
                              const char *arch,
                              const char *branch,
                              KaimingProgressCallback progress,
                              gpointer progress_data,
                              GCancellable *cancellable,
                              GError **error);

kaiming_installation_install has been deprecated since version 1.7.0 and should not be used in newly-written code.

Use kaiming_transaction_add_install() instead.

This is an old deprecated function, you should use KaimingTransaction and kaiming_transaction_add_install() instead. It has a lot more interesting features.

Install a new application or runtime.

Note that this function was originally written to always return a KaimingInstalledRef. Since 0.9.13, passing KAIMING_INSTALL_FLAGS_NO_DEPLOY will only pull refs into the local kaiming repository without deploying them, however this function will be unable to provide information on the installed ref, so KAIMING_ERROR_ONLY_PULLED will be set and the caller must respond accordingly.

Parameters

self

a KaimingInstallation

 

remote_name

name of the remote to use

 

kind

what this ref contains (an KaimingRefKind)

 

name

name of the app/runtime to fetch

 

arch

which architecture to fetch (default: current architecture).

[nullable]

branch

which branch to fetch (default: 'master').

[nullable]

progress

progress callback.

[scope call][nullable]

progress_data

user data passed to progress .

[closure progress][nullable]

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

The ref for the newly installed app or NULL on failure.

[transfer full]


kaiming_installation_install_full ()

KaimingInstalledRef *
kaiming_installation_install_full (KaimingInstallation *self,
                                   KaimingInstallFlags flags,
                                   const char *remote_name,
                                   KaimingRefKind kind,
                                   const char *name,
                                   const char *arch,
                                   const char *branch,
                                   const char * const *subpaths,
                                   KaimingProgressCallback progress,
                                   gpointer progress_data,
                                   GCancellable *cancellable,
                                   GError **error);

kaiming_installation_install_full has been deprecated since version 1.7.0 and should not be used in newly-written code.

Use kaiming_transaction_add_install() instead.

This is an old deprecated function, you should use KaimingTransaction and kaiming_transaction_add_install() instead. It has a lot more interesting features.

Install a new application or runtime.

Note that this function was originally written to always return a KaimingInstalledRef. Since 0.9.13, passing KAIMING_INSTALL_FLAGS_NO_DEPLOY will only pull refs into the local kaiming repository without deploying them, however this function will be unable to provide information on the installed ref, so KAIMING_ERROR_ONLY_PULLED will be set and the caller must respond accordingly.

Parameters

self

a KaimingInstallation

 

flags

set of KaimingInstallFlags flag

 

remote_name

name of the remote to use

 

kind

what this ref contains (an KaimingRefKind)

 

name

name of the app/runtime to fetch

 

arch

which architecture to fetch (default: current architecture).

[nullable]

branch

which branch to fetch (default: 'master').

[nullable]

subpaths

A list of subpaths to fetch, or NULL for everything.

[nullable][array zero-terminated=1]

progress

progress callback.

[scope call][nullable]

progress_data

user data passed to progress .

[closure progress][nullable]

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

The ref for the newly installed app or NULL on failure.

[transfer full]


kaiming_installation_update ()

KaimingInstalledRef *
kaiming_installation_update (KaimingInstallation *self,
                             KaimingUpdateFlags flags,
                             KaimingRefKind kind,
                             const char *name,
                             const char *arch,
                             const char *branch,
                             KaimingProgressCallback progress,
                             gpointer progress_data,
                             GCancellable *cancellable,
                             GError **error);

kaiming_installation_update has been deprecated since version 1.7.0 and should not be used in newly-written code.

Use kaiming_transaction_add_update() instead.

This is an old deprecated function, you should use KaimingTransaction and kaiming_transaction_add_update() instead. It has a lot more interesting features.

Update an application or runtime.

If the specified package is not installed, then KAIMING_ERROR_NOT_INSTALLED will be thrown.

If no updates could be found on the remote end and the package is already up to date, then KAIMING_ERROR_ALREADY_INSTALLED will be thrown.

Parameters

self

a KaimingInstallation

 

flags

set of KaimingUpdateFlags flag

 

kind

whether this is an app or runtime

 

name

name of the app or runtime to update

 

arch

architecture of the app or runtime to update (default: current architecture).

[nullable]

branch

name of the branch of the app or runtime to update (default: master).

[nullable]

progress

the callback.

[scope call][nullable]

progress_data

user data passed to progress .

[closure progress][nullable]

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

The ref for the newly updated app or NULL on failure.

[transfer full]


kaiming_installation_update_full ()

KaimingInstalledRef *
kaiming_installation_update_full (KaimingInstallation *self,
                                  KaimingUpdateFlags flags,
                                  KaimingRefKind kind,
                                  const char *name,
                                  const char *arch,
                                  const char *branch,
                                  const char * const *subpaths,
                                  KaimingProgressCallback progress,
                                  gpointer progress_data,
                                  GCancellable *cancellable,
                                  GError **error);

kaiming_installation_update_full has been deprecated since version 1.7.0 and should not be used in newly-written code.

Use kaiming_transaction_add_update() instead.

This is an old deprecated function, you should use KaimingTransaction and kaiming_transaction_add_update() instead. It has a lot more interesting features.

Update an application or runtime.

If the specified package is not installed, then KAIMING_ERROR_NOT_INSTALLED will be thrown.

If no updates could be found on the remote end and the package is already up to date, then KAIMING_ERROR_ALREADY_INSTALLED will be thrown.

Parameters

self

a KaimingInstallation

 

flags

set of KaimingUpdateFlags flag

 

kind

whether this is an app or runtime

 

name

name of the app or runtime to update

 

arch

architecture of the app or runtime to update (default: current architecture).

[nullable]

branch

name of the branch of the app or runtime to update (default: master).

[nullable]

subpaths

A list of subpaths to fetch, or NULL for everything.

[nullable][array zero-terminated=1]

progress

the callback.

[scope call][nullable]

progress_data

user data passed to progress .

[closure progress][nullable]

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

The ref for the newly updated app or NULL on failure.

[transfer full]


kaiming_installation_uninstall ()

gboolean
kaiming_installation_uninstall (KaimingInstallation *self,
                                KaimingRefKind kind,
                                const char *name,
                                const char *arch,
                                const char *branch,
                                KaimingProgressCallback progress,
                                gpointer progress_data,
                                GCancellable *cancellable,
                                GError **error);

kaiming_installation_uninstall has been deprecated since version 1.7.0 and should not be used in newly-written code.

Use kaiming_transaction_add_uninstall() instead.

This is an old deprecated function, you should use KaimingTransaction and kaiming_transaction_add_uninstall() instead. It has a lot more interesting features.

Uninstall an application or runtime.

Parameters

self

a KaimingInstallation

 

kind

what this ref contains (an KaimingRefKind)

 

name

name of the app or runtime to uninstall

 

arch

architecture of the app or runtime to uninstall; if NULL, kaiming_get_default_arch() is assumed.

[nullable]

branch

name of the branch of the app or runtime to uninstall; if NULL, master is assumed.

[nullable]

progress

the callback.

[scope call][nullable]

progress_data

user data passed to progress .

[closure progress][nullable]

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE on success


kaiming_installation_uninstall_full ()

gboolean
kaiming_installation_uninstall_full (KaimingInstallation *self,
                                     KaimingUninstallFlags flags,
                                     KaimingRefKind kind,
                                     const char *name,
                                     const char *arch,
                                     const char *branch,
                                     KaimingProgressCallback progress,
                                     gpointer progress_data,
                                     GCancellable *cancellable,
                                     GError **error);

kaiming_installation_uninstall_full has been deprecated since version 1.7.0 and should not be used in newly-written code.

Use kaiming_transaction_add_uninstall() instead.

This is an old deprecated function, you should use KaimingTransaction and kaiming_transaction_add_uninstall() instead. It has a lot more interesting features.

Uninstall an application or runtime.

Parameters

self

a KaimingInstallation

 

flags

set of KaimingUninstallFlags flags

 

kind

what this ref contains (an KaimingRefKind)

 

name

name of the app or runtime to uninstall

 

arch

architecture of the app or runtime to uninstall; if NULL, kaiming_get_default_arch() is assumed.

[nullable]

branch

name of the branch of the app or runtime to uninstall; if NULL, master is assumed.

[nullable]

progress

the callback.

[scope call][nullable]

progress_data

user data passed to progress .

[closure progress][nullable]

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE on success

Since: 0.11.8


kaiming_installation_launch ()

gboolean
kaiming_installation_launch (KaimingInstallation *self,
                             const char *name,
                             const char *arch,
                             const char *branch,
                             const char *commit,
                             GCancellable *cancellable,
                             GError **error);

Launch an installed application.

You can use kaiming_installation_get_installed_ref() or kaiming_installation_get_current_installed_app() to find out what builds are available, in order to get a value for commit .

Parameters

self

a KaimingInstallation

 

name

name of the app to launch

 

arch

which architecture to launch (default: current architecture).

[nullable]

branch

which branch of the application (default: "master").

[nullable]

commit

the commit of branch to launch.

[nullable]

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE, unless an error occurred


kaiming_installation_launch_full ()

gboolean
kaiming_installation_launch_full (KaimingInstallation *self,
                                  KaimingLaunchFlags flags,
                                  const char *name,
                                  const char *arch,
                                  const char *branch,
                                  const char *commit,
                                  KaimingInstance **instance_out,
                                  GCancellable *cancellable,
                                  GError **error);

Launch an installed application.

You can use kaiming_installation_get_installed_ref() or kaiming_installation_get_current_installed_app() to find out what builds are available, in order to get a value for commit .

Compared to kaiming_installation_launch(), this function returns a KaimingInstance that can be used to get information about the running instance. You can also use it to wait for the instance to be done with g_child_watch_add() if you pass the KAIMING_LAUNCH_FLAGS_DO_NOT_REAP flag.

Parameters

self

a KaimingInstallation

 

flags

set of KaimingLaunchFlags

 

name

name of the app to launch

 

arch

which architecture to launch (default: current architecture).

[nullable]

branch

which branch of the application (default: "master").

[nullable]

commit

the commit of branch to launch.

[nullable]

instance_out

return location for a KaimingInstance.

[nullable]

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE, unless an error occurred

Since: 1.1


kaiming_installation_get_current_installed_app ()

KaimingInstalledRef *
kaiming_installation_get_current_installed_app
                               (KaimingInstallation *self,
                                const char *name,
                                GCancellable *cancellable,
                                GError **error);

Get the last build of reference name that was installed with kaiming_installation_install(), or NULL if the reference has never been installed locally.

Parameters

self

a KaimingInstallation

 

name

the name of the app

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

an KaimingInstalledRef.

[transfer full]


kaiming_installation_get_display_name ()

const char *
kaiming_installation_get_display_name (KaimingInstallation *self);

Returns the display name of the installation for self .

Note that this function may return NULL if the installation does not have a display name.

Parameters

Returns

a string with the installation's display name.

[transfer none]

Since: 0.8


kaiming_installation_get_id ()

const char *
kaiming_installation_get_id (KaimingInstallation *self);

Returns the ID of the installation for self .

The ID for the default system installation is "default". The ID for the user installation is "user".

Parameters

Returns

a string with the installation's ID.

[transfer none]

Since: 0.8


kaiming_installation_get_installed_ref ()

KaimingInstalledRef *
kaiming_installation_get_installed_ref
                               (KaimingInstallation *self,
                                KaimingRefKind kind,
                                const char *name,
                                const char *arch,
                                const char *branch,
                                GCancellable *cancellable,
                                GError **error);

Returns information about an installed ref, such as the available builds, its size, location, etc.

Parameters

self

a KaimingInstallation

 

kind

whether this is an app or runtime

 

name

name of the app/runtime to fetch

 

arch

which architecture to fetch (default: current architecture).

[nullable]

branch

which branch to fetch (default: "master").

[nullable]

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

an KaimingInstalledRef, or NULL if an error occurred.

[transfer full]


kaiming_installation_get_min_free_space_bytes ()

gboolean
kaiming_installation_get_min_free_space_bytes
                               (KaimingInstallation *self,
                                guint64 *out_bytes,
                                GError **error);

Returns the min-free-space config value from the OSTree repository of this installation.

Applications can use this value, together with information about the available disk space and the size of pending updates or installs, to estimate whether a pull operation will fail due to running out of disk space.

Parameters

self

a KaimingInstallation

 

out_bytes

Location to store the result.

[out]

error

Return location for a GError

 

Returns

TRUE on success, or FALSE on error.

Since: 1.1


kaiming_installation_get_priority ()

gint
kaiming_installation_get_priority (KaimingInstallation *self);

Returns the numeric priority of the installation for self .

Parameters

Returns

an integer with the configured priority value

Since: 0.8


kaiming_installation_get_storage_type ()

KaimingStorageType
kaiming_installation_get_storage_type (KaimingInstallation *self);

Returns the type of storage of the installation for self .

Parameters

Returns

a KaimingStorageType

Since: 0.8


kaiming_installation_set_no_interaction ()

void
kaiming_installation_set_no_interaction
                               (KaimingInstallation *self,
                                gboolean no_interaction);

This method can be used to prevent interactive authorization dialogs to appear for operations on self . This is useful for background operations that are not directly triggered by a user action.

By default, interaction is allowed.

Parameters

self

a KaimingInstallation

 

no_interaction

Whether to disallow interactive authorization for operations

 

Since: 1.1.1


kaiming_installation_get_no_interaction ()

gboolean
kaiming_installation_get_no_interaction
                               (KaimingInstallation *self);

Returns the value set with kaiming_installation_set_no_interaction().

Parameters

self

a KaimingTransaction

 

Returns

TRUE if interactive authorization dialogs are not allowed

Since: 1.1.1


kaiming_installation_list_installed_refs ()

GPtrArray *
kaiming_installation_list_installed_refs
                               (KaimingInstallation *self,
                                GCancellable *cancellable,
                                GError **error);

Lists the installed references.

Parameters

self

a KaimingInstallation

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a GPtrArray of KaimingInstalledRef instances.

[transfer container][element-type KaimingInstalledRef]


kaiming_installation_list_installed_refs_by_kind ()

GPtrArray *
kaiming_installation_list_installed_refs_by_kind
                               (KaimingInstallation *self,
                                KaimingRefKind kind,
                                GCancellable *cancellable,
                                GError **error);

Lists the installed references of a specific kind.

Parameters

self

a KaimingInstallation

 

kind

the kind of installation

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a GPtrArray of KaimingInstalledRef instances.

[transfer container][element-type KaimingInstalledRef]


kaiming_installation_list_installed_refs_for_update ()

GPtrArray *
kaiming_installation_list_installed_refs_for_update
                               (KaimingInstallation *self,
                                GCancellable *cancellable,
                                GError **error);

Lists the installed apps and runtimes that have an update available, either from the configured remote or locally available but not deployed (see kaiming_transaction_set_no_deploy()).

This also checks if any of KaimingInstalledRef has a missing KaimingRelatedRef (which has should-download set to TRUE) or runtime. If so, it adds the ref to the returning GPtrArray to pull in the KaimingRelatedRef or runtime again via an update operation in KaimingTransaction.

In case more than one app needs an update of the same runtime or extension, this function will return all of those apps.

Parameters

self

a KaimingInstallation

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a GPtrArray of KaimingInstalledRef instances, or NULL on error.

[transfer container][element-type KaimingInstalledRef]


kaiming_installation_list_installed_related_refs_sync ()

GPtrArray *
kaiming_installation_list_installed_related_refs_sync
                               (KaimingInstallation *self,
                                const char *remote_name,
                                const char *ref,
                                GCancellable *cancellable,
                                GError **error);

Lists all the locally installed refs that are related to ref . These are things that are interesting to install, update, or uninstall together with ref . For instance, locale data or debug information.

Note that while the related refs are usually installed from the same remote as ref (remote_name ), it is possible they were installed from another remote.

This function is similar to kaiming_installation_list_remote_related_refs_sync, but instead of looking at what is available on the remote, it only looks at the locally installed refs. This is useful for instance when you're looking for related refs to uninstall, or when you're planning to use KAIMING_UPDATE_FLAGS_NO_PULL to install previously pulled refs.

Parameters

self

a KaimingInstallation

 

remote_name

the name of the remote providing ref

 

ref

the ref

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a GPtrArray of KaimingRelatedRef instances.

[transfer container][element-type KaimingRelatedRef]

Since: 0.6.7


kaiming_installation_list_unused_refs ()

GPtrArray *
kaiming_installation_list_unused_refs (KaimingInstallation *self,
                                       const char *arch,
                                       GCancellable *cancellable,
                                       GError **error);

Lists the installed references that are not 'used'.

A reference is used if it is either an application, or the runtime or sdk of a used ref, or an extension of a used ref. Pinned runtimes are also considered used; see kaiming-pin(1) and kaiming_installation_list_pinned_refs().

Parameters

self

a KaimingInstallation

 

arch

if non-NULL, the architecture of refs to collect.

[nullable]

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a GPtrArray of KaimingInstalledRef instances.

[transfer container][element-type KaimingInstalledRef]

Since: 1.1.2


kaiming_installation_list_remote_refs_sync ()

GPtrArray *
kaiming_installation_list_remote_refs_sync
                               (KaimingInstallation *self,
                                const char *remote_or_uri,
                                GCancellable *cancellable,
                                GError **error);

Lists all the applications and runtimes in a remote.

Parameters

self

a KaimingInstallation

 

remote_or_uri

the name or URI of the remote

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a GPtrArray of KaimingRemoteRef instances.

[transfer container][element-type KaimingRemoteRef]


kaiming_installation_list_remote_refs_sync_full ()

GPtrArray *
kaiming_installation_list_remote_refs_sync_full
                               (KaimingInstallation *self,
                                const char *remote_or_uri,
                                KaimingQueryFlags flags,
                                GCancellable *cancellable,
                                GError **error);

Lists all the applications and runtimes in a remote.

Parameters

self

a KaimingInstallation

 

remote_or_uri

the name or URI of the remote

 

flags

set of KaimingQueryFlags

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a GPtrArray of KaimingRemoteRef instances.

[transfer container][element-type KaimingRemoteRef]

Since: 1.3.3


kaiming_installation_list_remotes_by_type ()

GPtrArray *
kaiming_installation_list_remotes_by_type
                               (KaimingInstallation *self,
                                const KaimingRemoteType types[],
                                gsize num_types,
                                GCancellable *cancellable,
                                GError **error);

Lists only the remotes whose type is included in the types argument.

Since kaiming 1.7 this will never return any types except KAIMING_REMOTE_TYPE_STATIC. Equivalent functionallity to KAIMING_REMOTE_TYPE_USB can be had by listing remote refs with KAIMING_QUERY_FLAGS_ONLY_SIDELOADED.

Parameters

self

a KaimingInstallation

 

types

an array of KaimingRemoteType.

[array length=num_types]

num_types

the number of types provided in types

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a GPtrArray of KaimingRemote instances.

[transfer container][element-type KaimingRemote]


kaiming_installation_list_remote_related_refs_sync ()

GPtrArray *
kaiming_installation_list_remote_related_refs_sync
                               (KaimingInstallation *self,
                                const char *remote_name,
                                const char *ref,
                                GCancellable *cancellable,
                                GError **error);

Lists all the available refs on remote_name that are related to ref , and the subpaths to use. These are things that are interesting to install, update, or uninstall together with ref . For instance, locale data or debug information.

The returned list contains all available related refs, but not every one should always be installed. For example, kaiming_related_ref_should_download() returns TRUE if the reference should be installed/updated with the app, and kaiming_related_ref_should_delete() returns TRUE if it should be uninstalled with the main ref.

The commit property of each KaimingRelatedRef is not guaranteed to be non-NULL.

Parameters

self

a KaimingInstallation

 

remote_name

the name of the remote

 

ref

the ref

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a GPtrArray of KaimingRelatedRef instances.

[transfer container][element-type KaimingRelatedRef]

Since: 0.6.7


kaiming_installation_list_remotes ()

GPtrArray *
kaiming_installation_list_remotes (KaimingInstallation *self,
                                   GCancellable *cancellable,
                                   GError **error);

Lists the static remotes, in priority (highest first) order. For same priority, an earlier added remote comes before a later added one.

Parameters

self

a KaimingInstallation

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a GPtrArray of KaimingRemote instances.

[transfer container][element-type KaimingRemote]


kaiming_installation_get_remote_by_name ()

KaimingRemote *
kaiming_installation_get_remote_by_name
                               (KaimingInstallation *self,
                                const gchar *name,
                                GCancellable *cancellable,
                                GError **error);

Looks up a remote by name.

Parameters

self

a KaimingInstallation

 

name

a remote name

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a KaimingRemote instance, or NULL with error set.

[transfer full]


kaiming_installation_fetch_remote_metadata_sync ()

GBytes *
kaiming_installation_fetch_remote_metadata_sync
                               (KaimingInstallation *self,
                                const char *remote_name,
                                KaimingRef *ref,
                                GCancellable *cancellable,
                                GError **error);

Obtains the metadata file from a commit.

NOTE: Since 0.11.4 this information is accessible in KaimingRemoteRef, so this function is not very useful anymore.

Parameters

self

a KaimingInstallation

 

remote_name

the name of the remote

 

ref

the ref

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a GBytes containing the kaiming metadata file, or NULL if an error occurred.

[transfer full]


kaiming_installation_fetch_remote_ref_sync ()

KaimingRemoteRef *
kaiming_installation_fetch_remote_ref_sync
                               (KaimingInstallation *self,
                                const char *remote_name,
                                KaimingRefKind kind,
                                const char *name,
                                const char *arch,
                                const char *branch,
                                GCancellable *cancellable,
                                GError **error);

Gets the current remote branch of a ref in the remote.

Parameters

self

a KaimingInstallation

 

remote_name

the name of the remote

 

kind

what this ref contains (an KaimingRefKind)

 

name

name of the app/runtime to fetch

 

arch

which architecture to fetch (default: current architecture).

[nullable]

branch

which branch to fetch (default: 'master').

[nullable]

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a KaimingRemoteRef instance, or NULL.

[transfer full]


kaiming_installation_fetch_remote_ref_sync_full ()

KaimingRemoteRef *
kaiming_installation_fetch_remote_ref_sync_full
                               (KaimingInstallation *self,
                                const char *remote_name,
                                KaimingRefKind kind,
                                const char *name,
                                const char *arch,
                                const char *branch,
                                KaimingQueryFlags flags,
                                GCancellable *cancellable,
                                GError **error);

Gets the current remote branch of a ref in the remote.

Parameters

self

a KaimingInstallation

 

remote_name

the name of the remote

 

kind

what this ref contains (an KaimingRefKind)

 

name

name of the app/runtime to fetch

 

arch

which architecture to fetch (default: current architecture).

[nullable]

branch

which branch to fetch (default: 'master').

[nullable]

flags

set of KaimingQueryFlags

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a KaimingRemoteRef instance, or NULL.

[transfer full]

Since: 1.3.3


kaiming_installation_fetch_remote_size_sync ()

gboolean
kaiming_installation_fetch_remote_size_sync
                               (KaimingInstallation *self,
                                const char *remote_name,
                                KaimingRef *ref,
                                guint64 *download_size,
                                guint64 *installed_size,
                                GCancellable *cancellable,
                                GError **error);

Gets information about the maximum amount of data that needs to be transferred to pull the ref from a remote repository, and about the amount of local disk space that is required to check out this commit.

Note that if there are locally available data that are in the ref, which is common for instance if you're doing an update then the real download size may be smaller than what is returned here.

NOTE: Since 0.11.4 this information is accessible in KaimingRemoteRef, so this function is not very useful anymore.

Parameters

self

a KaimingInstallation

 

remote_name

the name of the remote

 

ref

the ref

 

download_size

return location for the (maximum) download size.

[out]

installed_size

return location for the installed size.

[out]

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE, unless an error occurred


kaiming_installation_load_app_overrides ()

char *
kaiming_installation_load_app_overrides
                               (KaimingInstallation *self,
                                const char *app_id,
                                GCancellable *cancellable,
                                GError **error);

Loads the metadata overrides file for an application.

Parameters

self

a KaimingInstallation

 

app_id

an application id

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

the contents of the overrides files, or NULL if an error occurred.

[transfer full]


kaiming_installation_update_appstream_sync ()

gboolean
kaiming_installation_update_appstream_sync
                               (KaimingInstallation *self,
                                const char *remote_name,
                                const char *arch,
                                gboolean *out_changed,
                                GCancellable *cancellable,
                                GError **error);

Updates the local copy of appstream for remote_name for the specified arch . If you need progress feedback, use kaiming_installation_update_appstream_full_sync().

Parameters

self

a KaimingInstallation

 

remote_name

the name of the remote

 

arch

Architecture to update, or NULL for the local machine arch.

[nullable]

out_changed

Set to TRUE if the contents of the appstream changed, FALSE if nothing changed.

[nullable]

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE on success, or FALSE on error


kaiming_installation_install_bundle ()

KaimingInstalledRef *
kaiming_installation_install_bundle (KaimingInstallation *self,
                                     GFile *file,
                                     KaimingProgressCallback progress,
                                     gpointer progress_data,
                                     GCancellable *cancellable,
                                     GError **error);

kaiming_installation_install_bundle has been deprecated since version 1.7.0 and should not be used in newly-written code.

Use kaiming_transaction_add_install_bundle() instead.

This is an old deprecated function, you should use KaimingTransaction and kaiming_transaction_add_install_bundle() instead. It has a lot more interesting features.

Install an application or runtime from an kaiming bundle file. See kaiming-build-bundle(1) for how to create bundles.

Parameters

self

a KaimingInstallation

 

file

a GFile that is an kaiming bundle

 

progress

progress callback.

[scope call][nullable]

progress_data

user data passed to progress .

[closure progress][nullable]

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

The ref for the newly installed app or NULL on failure.

[transfer full]


kaiming_installation_install_ref_file ()

KaimingRemoteRef *
kaiming_installation_install_ref_file (KaimingInstallation *self,
                                       GBytes *ref_file_data,
                                       GCancellable *cancellable,
                                       GError **error);

kaiming_installation_install_ref_file has been deprecated since version 1.7.0 and should not be used in newly-written code.

Use kaiming_transaction_add_install_kaimingref() instead.

This is an old deprecated function, you should use KaimingTransaction and kaiming_transaction_add_install_kaimingref() instead. It has a lot more interesting features.

Creates a remote based on the passed in .kaimingref file contents in ref_file_data and returns the KaimingRemoteRef that can be used to install it.

Note, the KaimingRemoteRef will not have the commit field set, or other details, to avoid unnecessary roundtrips. If you need that you have to resolve it explicitly with kaiming_installation_fetch_remote_ref_sync().

Parameters

self

a KaimingInstallation

 

ref_file_data

The ref file contents

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a KaimingRemoteRef if the remote has been added successfully, NULL on error.

[transfer full]

Since: 0.6.10


kaiming_installation_drop_caches ()

gboolean
kaiming_installation_drop_caches (KaimingInstallation *self,
                                  GCancellable *cancellable,
                                  GError **error);

Drops all internal (in-memory) caches. For instance, this may be needed to pick up new or changed remotes configured outside this installation instance.

Parameters

self

a KaimingInstallation

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE on success, FALSE on error


kaiming_installation_add_remote ()

gboolean
kaiming_installation_add_remote (KaimingInstallation *self,
                                 KaimingRemote *remote,
                                 gboolean if_needed,
                                 GCancellable *cancellable,
                                 GError **error);

Adds a new remote object to the set of remotes. This is similar to kaiming_installation_modify_remote() for non-existing remote names. However, if the named remote already exists then instead of modifying it it fails with KAIMING_ERROR_ALREADY_INSTALLED, or if if_needed is true it silently succeeds without doing anything.

As an exception to the last, if the local config has a filter defined, but the new remote unsets the filter (for example, it comes from an unfiltered .kaimingref via kaiming_remote_new_from_file()) the the local remote filter gets reset. This is to allow the setup where there is a default setup of a filtered remote, yet you can still use the standard kaimingref file to get the full contents without getting two remotes.

Parameters

self

a KaimingInstallation

 

remote

the new KaimingRemote

 

if_needed

if TRUE, only add if it doesn't exists

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE if the modifications have been committed successfully

Since: 1.3.4


kaiming_installation_modify_remote ()

gboolean
kaiming_installation_modify_remote (KaimingInstallation *self,
                                    KaimingRemote *remote,
                                    GCancellable *cancellable,
                                    GError **error);

Saves changes in the remote object.

Parameters

self

a KaimingInstallation

 

remote

the modified KaimingRemote

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE if the modifications have been committed successfully


kaiming_installation_remove_remote ()

gboolean
kaiming_installation_remove_remote (KaimingInstallation *self,
                                    const char *name,
                                    GCancellable *cancellable,
                                    GError **error);

Removes the remote with the given name from the installation.

Parameters

self

a KaimingInstallation

 

name

the name of the remote to remove

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE if the remote has been removed successfully


kaiming_installation_update_remote_sync ()

gboolean
kaiming_installation_update_remote_sync
                               (KaimingInstallation *self,
                                const char *name,
                                GCancellable *cancellable,
                                GError **error);

Updates the local configuration of a remote repository by fetching the related information from the summary file in the remote OSTree repository and committing the changes to the local installation.

Parameters

self

a KaimingInstallation

 

name

the name of the remote to update

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE if the remote has been updated successfully

Since: 0.6.13


kaiming_installation_cleanup_local_refs_sync ()

gboolean
kaiming_installation_cleanup_local_refs_sync
                               (KaimingInstallation *self,
                                GCancellable *cancellable,
                                GError **error);

Remove all OSTree refs from the local kaiming repository which are not in a deployed state. The next time the underlying OSTree repo is pruned, objects which were attached to that ref will be removed. This is useful if you pulled a kaiming refs using kaiming_installation_install_full() and specified KAIMING_INSTALL_FLAGS_NO_DEPLOY but then decided not to deploy the refs later on and want to remove the local refs to prevent them from taking up disk space. Note that this will not remove the objects referred to by ref from the underlying OSTree repo, you should use kaiming_installation_prune_local_repo() to do that.

Parameters

self

a KaimingInstallation

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE on success

Since: 0.10.0


kaiming_installation_get_config ()

char *
kaiming_installation_get_config (KaimingInstallation *self,
                                 const char *key,
                                 GCancellable *cancellable,
                                 GError **error);

Get a global configuration option for the installation, see kaiming_installation_set_config_sync() for supported keys.

Parameters

self

a KaimingInstallation

 

key

the name of the key to get

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

The (newly allocated) value, or NULL on error (G_KEY_FILE_ERROR_KEY_NOT_FOUND error if key is not set)


kaiming_installation_get_default_languages ()

char **
kaiming_installation_get_default_languages
                               (KaimingInstallation *self,
                                GError **error);

Get the default languages used by the installation to decide which subpaths to install of locale extensions. This list may also be used by frontends like GNOME Software to decide which language-specific apps to display. An empty array means that all languages should be installed.

Parameters

self

a KaimingInstallation

 

error

return location for a GError

 

Returns

A possibly empty array of strings, or NULL on error.

[array zero-terminated=1][element-type utf8][transfer full]

Since: 1.5.0


kaiming_installation_get_default_locales ()

char **
kaiming_installation_get_default_locales
                               (KaimingInstallation *self,
                                GError **error);

Like kaiming_installation_get_default_languages() but includes territory information (e.g. en_US rather than en) which may be included in the extra-languages configuration.

Strings returned by this function are in the format specified by setlocale(): language[_territory][.codeset][@modifier].

Parameters

self

a KaimingInstallation

 

error

return location for a GError

 

Returns

A possibly empty array of locale strings, or NULL on error.

[array zero-terminated=1][element-type utf8][transfer full]

Since: 1.5.1


kaiming_installation_prune_local_repo ()

gboolean
kaiming_installation_prune_local_repo (KaimingInstallation *self,
                                       GCancellable *cancellable,
                                       GError **error);

Remove all orphaned OSTree objects from the underlying OSTree repo in self .

Parameters

self

a KaimingInstallation

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE on success

Since: 0.10.0


kaiming_installation_remove_local_ref_sync ()

gboolean
kaiming_installation_remove_local_ref_sync
                               (KaimingInstallation *self,
                                const char *remote_name,
                                const char *ref,
                                GCancellable *cancellable,
                                GError **error);

Remove the OSTree ref given by remote_name :ref from the local kaiming repository. The next time the underlying OSTree repo is pruned, objects which were attached to that ref will be removed. This is useful if you pulled a kaiming ref using kaiming_installation_install_full() and specified KAIMING_INSTALL_FLAGS_NO_DEPLOY but then decided not to deploy the ref later on and want to remove the local ref to prevent it from taking up disk space. Note that this will not remove the objects referred to by ref from the underlying OSTree repo, you should use kaiming_installation_prune_local_repo() to do that.

Parameters

self

a KaimingInstallation

 

remote_name

the name of the remote

 

ref

the ref

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE on success

Since: 0.10.0


kaiming_installation_set_config_sync ()

gboolean
kaiming_installation_set_config_sync (KaimingInstallation *self,
                                      const char *key,
                                      const char *value,
                                      GCancellable *cancellable,
                                      GError **error);

Set a global configuration option for the installation, currently the only supported keys are languages, which is a semicolon-separated list of language codes like "sv;en;pl", or "" to mean all languages, and extra-languages, which is a semicolon-separated list of locale identifiers like "en;en_DK;zh_HK.big5hkscs;uz_UZ.utf8@cyrillic".

Parameters

self

a KaimingInstallation

 

key

the name of the key to set

 

value

the new value, or NULL to unset

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE if the option was set correctly


kaiming_installation_update_appstream_full_sync ()

gboolean
kaiming_installation_update_appstream_full_sync
                               (KaimingInstallation *self,
                                const char *remote_name,
                                const char *arch,
                                KaimingProgressCallback progress,
                                gpointer progress_data,
                                gboolean *out_changed,
                                GCancellable *cancellable,
                                GError **error);

Updates the local copy of appstream for remote_name for the specified arch .

Parameters

self

a KaimingInstallation

 

remote_name

the name of the remote

 

arch

Architecture to update, or NULL for the local machine arch.

[nullable]

progress

progress callback.

[scope call][nullable]

progress_data

user data passed to progress .

[closure progress][nullable]

out_changed

Set to TRUE if the contents of the appstream changed, FALSE if nothing changed.

[nullable]

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE on success, or FALSE on error


kaiming_installation_run_triggers ()

gboolean
kaiming_installation_run_triggers (KaimingInstallation *self,
                                   GCancellable *cancellable,
                                   GError **error);

Run the trigger commands to update the files exported by the apps in self . Should be used after one or more app install, upgrade or uninstall operations with the KAIMING_INSTALL_FLAGS_NO_TRIGGERS, KAIMING_UPDATE_FLAGS_NO_TRIGGERS or KAIMING_UNINSTALL_FLAGS_NO_TRIGGERS flags set.

Parameters

self

a KaimingInstallation

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE on success

Since: 1.0.3


kaiming_get_default_arch ()

const char *
kaiming_get_default_arch (void);

Returns the canonical name for the arch of the current machine.

Returns

an arch string


kaiming_get_supported_arches ()

const char *const *
kaiming_get_supported_arches (void);

Returns the canonical names for the arches that are supported (i.e. can run) on the current machine, in order of priority (default is first).

Returns

a zero terminated array of arch strings


kaiming_get_system_installations ()

GPtrArray *
kaiming_get_system_installations (GCancellable *cancellable,
                                  GError **error);

Lists the system installations according to the current configuration and current availability (e.g. doesn't return a configured installation if not reachable).

Parameters

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

a GPtrArray of KaimingInstallation instances.

[transfer container][element-type KaimingInstallation]

Since: 0.8


KaimingProgressCallback ()

void
(*KaimingProgressCallback) (const char *status,
                            guint progress,
                            gboolean estimating,
                            gpointer user_data);

The progress callback is called repeatedly during long-running operations such as installations or updates, and can be used to update progress information in a user interface.

The callback occurs in the thread-default context of the caller.

Parameters

status

A status string, suitable for display

 

progress

percentage of completion

 

estimating

whether progress is just an estimate

 

user_data

User data passed to the caller

 

Types and Values

struct KaimingInstallation

struct KaimingInstallation;

enum KaimingQueryFlags

Flags to alter the behavior of e.g kaiming_installation_list_remote_refs_sync_full().

Members

KAIMING_QUERY_FLAGS_NONE

Default

 

KAIMING_QUERY_FLAGS_ONLY_CACHED

Don't do any network i/o, but only return cached data. This can return stale data, or a KAIMING_ERROR_NOT_CACHED error, however it is a lot more efficient if you're doing many requests.

 

KAIMING_QUERY_FLAGS_ONLY_SIDELOADED

Only list refs available from sideload repos; see kaiming(1). (Since: 1.7)

 

KAIMING_QUERY_FLAGS_ALL_ARCHES

Include refs from all arches, not just the primary ones. (Since: 1.11.2)

 

Since: 1.3.3


enum KaimingUpdateFlags

Flags to alter the behavior of kaiming_installation_update().

Members

KAIMING_UPDATE_FLAGS_NONE

Fetch remote builds and install the latest one (default)

 

KAIMING_UPDATE_FLAGS_NO_DEPLOY

Don't install any new builds that might be fetched

 

KAIMING_UPDATE_FLAGS_NO_PULL

Don't try to fetch new builds from the remote repo

 

KAIMING_UPDATE_FLAGS_NO_STATIC_DELTAS

Don't use static deltas when pulling

 

KAIMING_UPDATE_FLAGS_NO_PRUNE

Don't prune the local OSTree repository after updating (Since: 0.11.8)

 

KAIMING_UPDATE_FLAGS_NO_TRIGGERS

Don't call triggers after updating. If used, the caller must later call kaiming_installation_run_triggers() to update the exported files. (Since: 1.0.3)

 

enum KaimingInstallFlags

Flags to alter the behavior of kaiming_installation_install_full().

Members

KAIMING_INSTALL_FLAGS_NONE

Default

 

KAIMING_INSTALL_FLAGS_NO_STATIC_DELTAS

Don't use static deltas when pulling

 

KAIMING_INSTALL_FLAGS_NO_DEPLOY

Don't install any new builds that might be fetched

 

KAIMING_INSTALL_FLAGS_NO_PULL

Don't try to fetch new builds from the remote repo

 

KAIMING_INSTALL_FLAGS_NO_TRIGGERS

Don't call triggers after installing. If used, the caller must later call kaiming_installation_run_triggers() to update the exported files. (Since: 1.0.3)

 

enum KaimingUninstallFlags

Flags to alter the behavior of kaiming_installation_uninstall_full().

Members

KAIMING_UNINSTALL_FLAGS_NONE

Default

 

KAIMING_UNINSTALL_FLAGS_NO_PRUNE

Don't prune the local OSTree repository after uninstalling

 

KAIMING_UNINSTALL_FLAGS_NO_TRIGGERS

Don't call triggers after uninstalling. If used, the caller must later call kaiming_installation_run_triggers() to update the exported file. (Since: 1.0.3)

 

Since: 0.11.8


enum KaimingLaunchFlags

Flags to alter the behavior of kaiming_installation_launch_full().

Members

KAIMING_LAUNCH_FLAGS_NONE

Default

 

KAIMING_LAUNCH_FLAGS_DO_NOT_REAP

Do not reap the child. Use this if you want to wait for the child with g_child_watch_add(). (Since: 1.1)

 

enum KaimingStorageType

Information about the storage of an installation.

Members

KAIMING_STORAGE_TYPE_DEFAULT

default

 

KAIMING_STORAGE_TYPE_HARD_DISK

installation is on a hard disk

 

KAIMING_STORAGE_TYPE_SDCARD

installation is on a SD card

 

KAIMING_STORAGE_TYPE_MMC

installation is on an MMC

 

KAIMING_STORAGE_TYPE_NETWORK

installation is on the network

 

Since: 0.6.15

See Also

KaimingTransaction