Method

PackageKitPackageSackfind_by_id

since: 0.5.2

Declaration [src]

PkPackage*
pk_package_sack_find_by_id (
  PkPackageSack* sack,
  const gchar* package_id
)

Description [src]

Finds a package in a sack from reference. As soon as one package is found the search is stopped.

Available since: 0.5.2

Parameters

package_id

Type: const gchar*

A package_id descriptor.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: PkPackage

The PkPackage object, or NULL if unfound. Free with g_object_unref().

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