Constructor

PurpleAccountnew

since: 2.0

Declaration [src]

PurpleAccount*
purple_account_new (
  const char* username,
  const char* protocol_id
)

Description [src]

Creates a new account.

Available since: 2.0

Parameters

username

Type: const char*

The username.

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

Type: const char*

The protocol ID.

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

Return value

Type: PurpleAccount

The new account.

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