Method
FlatpakInstallationinstall
deprecated: 1.7.0
Declaration [src]
FlatpakInstalledRef*
flatpak_installation_install (
FlatpakInstallation* self,
const char* remote_name,
FlatpakRefKind kind,
const char* name,
const char* arch,
const char* branch,
FlatpakProgressCallback progress,
gpointer progress_data,
GCancellable* cancellable,
GError** error
)
Description [src]
This is an old deprecated function, you should use
FlatpakTransaction and flatpak_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
FlatpakInstalledRef. Since 0.9.13, passing
FLATPAK_INSTALL_FLAGS_NO_DEPLOY will only pull refs into the local flatpak
repository without deploying them, however this function will
be unable to provide information on the installed ref, so
FLATPAK_ERROR_ONLY_PULLED will be set and the caller must respond accordingly.
Deprecated since: 1.7.0
Use flatpak_transaction_add_install() instead.
Parameters
remote_name-
Type:
const char*Name of the remote to use.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. kind-
Type:
FlatpakRefKindWhat this ref contains (an
FlatpakRefKind). name-
Type:
const char*Name of the app/runtime to fetch.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. arch-
Type:
const char*Which architecture to fetch (default: current architecture).
The argument can be NULL.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. branch-
Type:
const char*Which branch to fetch (default: ‘master’).
The argument can be NULL.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. progress-
Type:
FlatpakProgressCallbackProgress callback.
The argument can be NULL. progress_data-
Type:
gpointerUser data passed to
progress.The argument can be NULL.The data is owned by the caller of the method. cancellable-
Type:
GCancellableA
GCancellable.The argument can be NULL.The data is owned by the caller of the method. error-
Type:
GError **The return location for a recoverable error.
The argument can be NULL.If the return location is not NULL, then you must initialize it to aNULLGError*.The argument will be left initialized to NULLby the method if there are no errors.In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.
Return value
Type: FlatpakInstalledRef
The ref for the newly installed app or NULL on failure.
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |