Constructor

PurpleAddContactRequestnew

since: 3.0

Declaration [src]

PurpleAddContactRequest*
purple_add_contact_request_new (
  PurpleAccount* account,
  const gchar* username
)

Description [src]

Creates a new PurpleAddContactRequest for username on account.

This is typically only used by libpurple itself.

Available since: 3.0

Parameters

account

Type: PurpleAccount

The account that this request is for.

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

Type: const gchar*

The username of the user requesting authorization.

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

Return value

Type: PurpleAddContactRequest

The new instance.

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