Method

FlatpakInstallationlist_unused_refs_with_options

since: 1.9.1

Declaration [src]

GPtrArray*
flatpak_installation_list_unused_refs_with_options (
  FlatpakInstallation* self,
  const char* arch,
  GHashTable* metadata_injection,
  GVariant* options,
  GCancellable* cancellable,
  GError** error
)

Description [src]

Like flatpak_installation_list_unused_refs() but supports an extensible set of options as well as an metadata_injection parameter. The following are currently defined:

  • exclude-refs (as): Act as if these refs are not installed even if they are when determining the set of unused refs
  • filter-by-eol (b): Return refs as unused if they are End-Of-Life. Note that if this option is combined with other filters then non-EOL refs may also be returned.
  • filter-by-autoprune (b): Return refs as unused if they should be autopruned. Note that if this option is combined with other filters then non-autoprune refs may also be returned.

Available since: 1.9.1

Parameters

arch

Type: const char*

If non-NULL, the architecture of refs to collect.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
metadata_injection

Type: GHashTable

If non-NULL, a GHashTable mapping refs to GKeyFile objects, which when available will be used instead of installed metadata.

The argument can be NULL.
The data is owned by the caller of the method.
options

Type: GVariant

If non-NULL, a GVariant a{sv} with an extensible set of options.

The argument can be NULL.
The data is owned by the caller of the method.
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 FlatpakInstalledRef*

A GPtrArray of FlatpakInstalledRef instances.

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