Method

PurpleAccountget_status_type_with_primitive

Declaration [src]

PurpleStatusType*
purple_account_get_status_type_with_primitive (
  PurpleAccount* account,
  PurpleStatusPrimitive primitive
)

Description [src]

Returns the account status type with the specified primitive. Note: It is possible for an account to have more than one PurpleStatusType with the same primitive. In this case, the first PurpleStatusType is returned.

Parameters

primitive PurpleStatusPrimitive
 

The type of the status type to find.

Return value

Returns: PurpleStatusType
 

The status if found, or NULL.

 The caller of the method takes ownership of the data, and is responsible for freeing it.