Method

PackageKitPackageSackfind_by_id_name_arch

since: 0.8.16

Declaration [src]

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

Description [src]

Finds a package in a sack by package name and architecture. As soon as one package is found the search is stopped.

Available since: 0.8.16

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 not found.

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