Top | ![]() |
![]() |
![]() |
![]() |
GFileMonitor * xdg_app_installation_create_monitor (XdgAppInstallation *self
,GCancellable *cancellable
,GError **error
);
Gets the current remote branch of a ref in the remote.
GBytes * xdg_app_installation_fetch_remote_metadata_sync (XdgAppInstallation *self
,const char *remote_name
,const char *commit
,GCancellable *cancellable
,GError **error
);
XdgAppRemoteRef * xdg_app_installation_fetch_remote_ref_sync (XdgAppInstallation *self
,const char *remote_name
,XdgAppRefKind 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.
self |
||
remote_name |
the name of the remote |
|
kind |
what this ref contains (an XdgAppRefKind) |
|
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 |
gboolean xdg_app_installation_fetch_remote_size_sync (XdgAppInstallation *self
,const char *remote_name
,const char *commit
,guint64 *download_size
,guint64 *installed_size
,GCancellable *cancellable
,GError **error
);
XdgAppInstalledRef * xdg_app_installation_get_current_installed_app (XdgAppInstallation *self
,const char *name
,GCancellable *cancellable
,GError **error
);
Get the last build of app name
that was installed with
xdg_app_installation_install()
, or NULL
if the app has never been installed
locally.
self |
||
name |
the name of the app |
|
cancellable |
a GCancellable. |
[nullable] |
error |
return location for a GError |
XdgAppInstalledRef * xdg_app_installation_get_installed_ref (XdgAppInstallation *self
,XdgAppRefKind kind
,const char *name
,const char *arch
,const char *branch
,GCancellable *cancellable
,GError **error
);
Returns information about an installed app or runtime, such as the available builds, its size, location, etc.
self |
||
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 |
gboolean
xdg_app_installation_get_is_user (XdgAppInstallation *self
);
XdgAppInstalledRef * xdg_app_installation_install (XdgAppInstallation *self
,const char *remote_name
,XdgAppRefKind kind
,const char *name
,const char *arch
,const char *branch
,XdgAppProgressCallback progress
,gpointer progress_data
,GCancellable *cancellable
,GError **error
);
Install a new ref.
self |
||
remote_name |
name of the remote to use |
|
kind |
what this ref contains (an XdgAppRefKind) |
|
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] |
progress_data |
user data passed to |
|
cancellable |
a GCancellable. |
[nullable] |
error |
return location for a GError |
gboolean xdg_app_installation_launch (XdgAppInstallation *self
,const char *name
,const char *arch
,const char *branch
,const char *commit
,GCancellable *cancellable
,GError **error
);
Launch an installed application.
You can use xdg_app_installation_get_installed_ref()
or
xdg_app_installation_get_current_installed_app()
to find out what builds
are available, in order to get a value for commit
.
self |
||
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 |
[nullable] |
cancellable |
a GCancellable. |
[nullable] |
error |
return location for a GError |
GPtrArray * xdg_app_installation_list_installed_refs (XdgAppInstallation *self
,GCancellable *cancellable
,GError **error
);
Lists the installed references.
an GPtrArray of XdgAppInstalledRef instances.
[transfer container][element-type XdgAppInstalledRef]
GPtrArray * xdg_app_installation_list_installed_refs_by_kind (XdgAppInstallation *self
,XdgAppRefKind kind
,GCancellable *cancellable
,GError **error
);
Lists the installed references of a specific kind.
self |
||
kind |
the kind of installation |
|
cancellable |
a GCancellable. |
[nullable] |
error |
return location for a GError |
an GPtrArray of XdgAppInstalledRef instances.
[transfer container][element-type XdgAppInstalledRef]
GPtrArray * xdg_app_installation_list_installed_refs_for_update (XdgAppInstallation *self
,GCancellable *cancellable
,GError **error
);
Lists the installed references that has a remote update that is not locally available. However, even though an app is not returned by this it can have local updates available that has not been deployed. Look at commit vs latest_commit on installed apps for this.
an GPtrArray of XdgAppInstalledRef instances.
[transfer container][element-type XdgAppInstalledRef]
GPtrArray * xdg_app_installation_list_remote_refs_sync (XdgAppInstallation *self
,const char *remote_name
,GCancellable *cancellable
,GError **error
);
Lists all the refs in a remote.
self |
||
remote_name |
the name of the remote |
|
cancellable |
a GCancellable. |
[nullable] |
error |
return location for a GError |
an GPtrArray of XdgAppRemoteRef instances.
[transfer container][element-type XdgAppInstalledRef]
GPtrArray * xdg_app_installation_list_remotes (XdgAppInstallation *self
,GCancellable *cancellable
,GError **error
);
Lists the remotes, in priority (highest first) order. For same priority, earlier added remote comes before a later added one.
char * xdg_app_installation_load_app_overrides (XdgAppInstallation *self
,const char *app_id
,GCancellable *cancellable
,GError **error
);
XdgAppInstallation * xdg_app_installation_new_for_path (GFile *path
,gboolean user
,GCancellable *cancellable
,GError **error
);
XdgAppInstallation * xdg_app_installation_new_system (GCancellable *cancellable
,GError **error
);
XdgAppInstallation * xdg_app_installation_new_user (GCancellable *cancellable
,GError **error
);
gboolean xdg_app_installation_uninstall (XdgAppInstallation *self
,XdgAppRefKind kind
,const char *name
,const char *arch
,const char *branch
,XdgAppProgressCallback progress
,gpointer progress_data
,GCancellable *cancellable
,GError **error
);
Update a ref.
self |
||
kind |
what this ref contains (an XdgAppRefKind) |
|
name |
name of the app or runtime to uninstall |
|
arch |
architecture of the app or runtime to uninstall |
|
branch |
name of the branch of the app or runtime to uninstall |
|
progress |
the callback. |
[scope call] |
progress_data |
user data passed to |
|
cancellable |
a GCancellable. |
[nullable] |
error |
return location for a GError |
XdgAppInstalledRef * xdg_app_installation_update (XdgAppInstallation *self
,XdgAppUpdateFlags flags
,XdgAppRefKind kind
,const char *name
,const char *arch
,const char *branch
,XdgAppProgressCallback progress
,gpointer progress_data
,GCancellable *cancellable
,GError **error
);
Update a ref.
self |
||
flags |
an XdgAppUpdateFlags variable |
|
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] |
progress_data |
user data passed to |
|
cancellable |
a GCancellable. |
[nullable] |
error |
return location for a GError |
The ref for the newly updated app (or the same if no update) or NULL
on failure.
[transfer full]
gboolean xdg_app_installation_update_appstream_sync (XdgAppInstallation *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
.
self |
||
remote_name |
the name of the remote |
|
arch |
Architecture to update, or |
|
out_changed |
Set to |
[nullable] |
cancellable |
a GCancellable. |
[nullable] |
error |
return location for a GError |