Method

PurpleAccountManagerfind

since: 3.0

Declaration [src]

PurpleAccount*
purple_account_manager_find (
  PurpleAccountManager* manager,
  const gchar* username,
  const gchar* 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 gchar*

The username of the account.

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

Type: const gchar*

The id of the protocol of the account.

The data is owned by the caller of the function.
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 data, and is responsible for freeing it.