Method

PurpleContactManagerfind_with_id

since: 3.0

Declaration [src]

PurpleContact*
purple_contact_manager_find_with_id (
  PurpleContactManager* manager,
  PurpleAccount* account,
  const gchar* id
)

Description [src]

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

Available since: 3.0

Parameters

account

Type: PurpleAccount

The PurpleAccount whose contact to find.

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

Type: const gchar*

The id 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.