Function

PackageKitenum_find_string

Declaration [src]

const gchar*
pk_enum_find_string (
  const PkEnumMatch* table,
  guint value
)

Description [src]

Search for a enum value in a table of constants.

Parameters

table

Type: PkEnumMatch

A PkEnumMatch enum table of values.

The data is owned by the caller of the function.
value

Type: guint

The enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG.

Return value

Type: const gchar*

The string constant, e.g. “desktop-gnome”.

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