Function

Purpleprimitive_get_type_from_id

since: 2.0

Declaration [src]

PurpleStatusPrimitive
purple_primitive_get_type_from_id (
  const char* id
)

Description [src]

Lookup the value of a primitive status type based on the id. The ID is a unique plain-text name of the status, without spaces.

Available since: 2.0

Parameters

id

Type: const char*

The unique ID of a primitive status type.

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

Return value

Type: PurpleStatusPrimitive

The PurpleStatusPrimitive value.