Function

PackageKitDistroUpgradeEnumfrom_string

since: 0.5.0

Declaration [src]

PkDistroUpgradeEnum
pk_distro_upgrade_enum_from_string (
  const gchar* upgrade
)

Description [src]

Converts a text enumerated type to its unsigned integer representation.

Available since: 0.5.0

Parameters

upgrade

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: PkDistroUpgradeEnum

The enumerated constant value, e.g. PK_DISTRO_UPGRADE_ENUM_STABLE.