Function

Purpleblist_find_buddy

Declaration [src]

PurpleBuddy*
purple_blist_find_buddy (
  PurpleAccount* account,
  const char* name
)

Description [src]

Finds the buddy struct given a name and an account.

Parameters

account

Type: PurpleAccount

The account this buddy belongs to.

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

Type: const char*

The buddy’s name.

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

Return value

Type: PurpleBuddy

The buddy or NULL if the buddy does not exist.

The data is owned by the called function.