Function

PackageKitUpgradeKindEnumfrom_string

since: 0.6.11

Declaration [src]

PkUpgradeKindEnum
pk_upgrade_kind_enum_from_string (
  const gchar* upgrade_kind
)

Description [src]

Converts a text enumerated type to its unsigned integer representation.

Available since: 0.6.11

Parameters

upgrade_kind

Type: const gchar*

Text describing the enumerated type.

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

Return value

Type: PkUpgradeKindEnum

The enumerated constant value, e.g. PK_UPGRADE_KIND_ENUM_MINIMAL.