Method
FlatpakTransactionget_operation_for_ref
since: 1.13.3
Declaration [src]
FlatpakTransactionOperation*
flatpak_transaction_get_operation_for_ref (
FlatpakTransaction* self,
const char* remote,
const char* ref,
GError** error
)
Description [src]
Gets the operation for ref, if any match. If remote is non-NULL, only an
operation for that remote will be returned. If remote is NULL and the
transaction has more than one operation for ref from different remotes, an
error will be returned.
Available since: 1.13.3
Parameters
remote-
Type:
const char*A remote name.
The argument can be NULL.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. ref-
Type:
const char*A ref.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. 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: FlatpakTransactionOperation
The FlatpakTransactionOperation for ref, or
NULL with error set.
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |