Method
FlatpakInstallationinstall_ref_file
deprecated: 1.7.0 since: 0.6.10
Declaration [src]
FlatpakRemoteRef*
flatpak_installation_install_ref_file (
FlatpakInstallation* self,
GBytes* ref_file_data,
GCancellable* cancellable,
GError** error
)
Description [src]
This is an old deprecated function, you should use
FlatpakTransaction and flatpak_transaction_add_install_flatpakref()
instead. It has a lot more interesting features.
Creates a remote based on the passed in .flatpakref file contents
in ref_file_data and returns the FlatpakRemoteRef that can be used
to install it.
Note, the FlatpakRemoteRef will not have the commit field set, or other details, to
avoid unnecessary roundtrips. If you need that you have to resolve it
explicitly with flatpak_installation_fetch_remote_ref_sync ().
Available since: 0.6.10
Deprecated since: 1.7.0
Use flatpak_transaction_add_install_flatpakref() instead.
Parameters
ref_file_data-
Type:
GBytesThe ref file contents.
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: FlatpakRemoteRef
A FlatpakRemoteRef if the remote has been added successfully, NULL
on error.
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |