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
FlatpakRemoteTypeAn array of
FlatpakRemoteType.The length of the array is specified in the num_typesargument.The data is owned by the caller of the method. num_types-
Type:
gsizeThe number of types provided in
types. 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.