Method

PurpleAccountManagerfind

unstable since: 3.0

Declaration [src]

PurpleAccount*
purple_account_manager_find (
  PurpleAccountManager* manager,
  const char* username,
  const char* protocol_id
)

Description [src]

Attempts to find an account in manager with the matching username and protocol_id.

Available since: 3.0

Parameters

username

Type: const char*

The username of the account.

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

Type: const char*

The id of the protocol of the account.

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

Return value

Type: PurpleAccount

The account if found, otherwise NULL.

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