Virtual Method
FlatpakTransactionrun
Declaration [src]
gboolean
run (
FlatpakTransaction* transaction,
GCancellable* cancellable,
GError** error
)
Description [src]
Executes the transaction.
During the course of the execution, various signals will get emitted.
The FlatpakTransaction::choose-remote-for-ref and
FlatpakTransaction::add-new-remote signals may get emitted while
resolving operations. FlatpakTransaction::ready is emitted when
the transaction has been fully resolved, and FlatpakTransaction::new-operation
and FlatpakTransaction::operation-done are emitted while the operations
are carried out. If an error occurs at any point during the execution,
FlatpakTransaction::operation-error is emitted.
Note that this call blocks until the transaction is done.
Parameters
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 virtual function 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.