Method

FlatpakInstallationlist_remote_related_refs_sync

since: 0.6.7

Declaration [src]

GPtrArray*
flatpak_installation_list_remote_related_refs_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 the subpaths to use. These are things that are interesting to install, update, or uninstall together with ref. For instance, locale data or debug information.

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: 0.6.7

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: GCancellable

A 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 a NULL GError*.
The argument will be left initialized to NULL by 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: An array of None

A GPtrArray of FlatpakRelatedRef instances.

The caller of the method takes ownership of the returned data container, but not the data inside it.