Virtual Method
PurpleProtocolgenerate_account_name
unstable since: 3.0
[−]
Declaration [src]
char*
generate_account_name (
PurpleProtocol* protocol,
PurpleAccount* account,
guint n_accounts
)
[−]
Description [src]
Generates a name for an account.
This is used to attempt to generate a simple name for an account. Something like “IRC 1”.
The n_accounts
parameter is the number of existing accounts with the same protocol.
This may be called multiple times for the same account if a duplicate account name is found.
Available since: 3.0
[−]
Parameters
account
-
Type:
PurpleAccount
The account whose name to generate.
The data is owned by the caller of the method. n_accounts
-
Type:
guint
The number of accounts.
[−]
Return value
Type: char*
The new account name.
The caller of the method takes ownership of the returned data, and is responsible for freeing it. |
The value is a NUL terminated UTF-8 string. |