Function

PackageKitPackageid_build

since: 0.5.0

Declaration [src]

gchar*
pk_package_id_build (
  const gchar* name,
  const gchar* version,
  const gchar* arch,
  const gchar* origin,
  const gchar* data
)

Description [src]

Generate a PackageID.

Available since: 0.5.0

Parameters

name

Type: const gchar*

The package name.

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

Type: const gchar*

The package version.

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

Type: const gchar*

The package architecture.

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

Type: const gchar*

The package origin.

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

Type: const gchar*

Additional data.

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

Return value

Type: gchar*

Returns a string to form the PackageID.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.