Constructor
PurpleAccountnew
since: 2.0
Declaration [src]
PurpleAccount*
purple_account_new (
const char* name,
const char* protocol_id
)
Parameters
name-
Type:
const char*The name of the account.
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 id of the protocol.
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. |