Constructor
FlatpakTransactionnew_for_installation
Declaration [src]
FlatpakTransaction*
flatpak_transaction_new_for_installation (
FlatpakInstallation* installation,
GCancellable* cancellable,
GError** error
)
Description [src]
Creates a new FlatpakTransaction object that can be used to do installation
and updates of multiple refs, as well as their dependencies, in a single
operation. Set the options you want on the transaction and add the
refs you want to install/update, then start the transaction with
flatpak_transaction_run ().
Parameters
installation-
Type:
FlatpakInstallationA
FlatpakInstallation.The data is owned by the caller of the function. cancellable-
Type:
GCancellableA
GCancellable.The argument can be NULL.The data is owned by the caller of the function. 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 constructor 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: FlatpakTransaction
A FlatpakTransaction, or NULL on failure.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |