Method

FlatpakInstallationlist_remotes_by_type

Declaration [src]

GPtrArray*
flatpak_installation_list_remotes_by_type (
  FlatpakInstallation* self,
  const FlatpakRemoteType* types,
  gsize num_types,
  GCancellable* cancellable,
  GError** error
)

Description [src]

Lists only the remotes whose type is included in the types argument.

Since flatpak 1.7 this will never return any types except FLATPAK_REMOTE_TYPE_STATIC. Equivalent functionality to FLATPAK_REMOTE_TYPE_USB can be had by listing remote refs with FLATPAK_QUERY_FLAGS_ONLY_SIDELOADED.

Parameters

types

Type: An array of FlatpakRemoteType

An array of FlatpakRemoteType.

The length of the array is specified in the num_types argument.
The data is owned by the caller of the method.
num_types

Type: gsize

The number of types provided in types.

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 FlatpakRemote*

A GPtrArray of FlatpakRemote instances.

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