Method

PurpleContactManagerfind_with_username

unstable 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 method.
username

Type: const gchar*

The username of the contact to find.

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