Method

PurpleContactManagerfind_with_username

since: 3.0

Declaration [src]

PurpleContact*
purple_contact_manager_find_with_username (
  PurpleContactManager* manager,
  PurpleAccount* account,
  const gchar* username
)

Description [src]

Looks for a PurpleContact that belongs to account with a username of username.

Available since: 3.0

Parameters

account

Type: PurpleAccount

The PurpleAccount whose contact to find.

The data is owned by the caller of the function.
username

Type: const gchar*

The username of the contact to find.

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

Return value

Type: PurpleContact

The PurpleContact if found, otherwise NULL.

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