Function

PackageKitenum_find_value

Declaration [src]

guint
pk_enum_find_value (
  const PkEnumMatch* table,
  const gchar* string
)

Description [src]

Search for a string 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.
string

Type: const gchar*

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

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

Return value

Type: guint

The enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG.