Function

PackageKitrole_bitfield_from_string

since: 0.5.2

Declaration [src]

PkBitfield
pk_role_bitfield_from_string (
  const gchar* roles
)

Description [src]

Converts text representation to its enumerated type bitfield.

Available since: 0.5.2

Parameters

roles

Type: const gchar*

The enumerated constant value, e.g. “search-file;update-system”.

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

Return value

Type: PkBitfield

The enumerated type values, or 0 for invalid.