Method
FlatpakInstallationlist_remote_related_refs_for_installed_sync
since: 1.11.1
Declaration [src]
GPtrArray*
flatpak_installation_list_remote_related_refs_for_installed_sync (
FlatpakInstallation* self,
const char* remote_name,
const char* ref,
GCancellable* cancellable,
GError** error
)
Description [src]
Lists all the available refs on remote_name that are related to ref, and
which are appropriate for the installed version of ref. For example if the
installed version of org.videolan.VLC has a related ref of
org.videolan.VLC.Plugin.bdj//3-19.08 and the remote version of VLC has a
related ref of org.videolan.VLC.Plugin.bdj//3-20.08, this function will only
return the 3-19.08 branch.
See also the related functions
flatpak_installation_list_remote_related_refs_sync() and flatpak_installation_list_installed_related_refs_sync().
The returned list contains all available related refs, but not
every one should always be installed. For example,
flatpak_related_ref_should_download() returns TRUE if the
reference should be installed/updated with the app, and
flatpak_related_ref_should_delete() returns TRUE if it
should be uninstalled with the main ref.
The commit property of each FlatpakRelatedRef is not guaranteed to be
non-NULL.
Available since: 1.11.1
Parameters
remote_name-
Type:
const char*The name of the remote.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. ref-
Type:
const char*The ref.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. 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.