Method

PackageKitPackageSackfilter

since: 0.6.3

Declaration [src]

PkPackageSack*
pk_package_sack_filter (
  PkPackageSack* sack,
  PkPackageSackFilterFunc filter_cb,
  gpointer user_data
)

Description [src]

Returns a new package sack which only matches packages that return TRUE from the filter function.

Available since: 0.6.3

Parameters

filter_cb

Type: PkPackageSackFilterFunc

A PkPackageSackFilterFunc, which returns TRUE for the PkPackage‘s to add.

user_data

Type: gpointer

User data to pass to filter_cb.

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

Return value

Type: PkPackageSack

A new PkPackageSack, free with g_object_unref().

The caller of the method takes ownership of the returned data, and is responsible for freeing it.