Constructor
PurpleCommandnew
unstable since: 3.0
Declaration [src]
PurpleCommand*
purple_command_new (
const char* name,
const char* source,
int priority
)
Parameters
name-
Type:
const char*The name of the command.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. source-
Type:
const char*The source of the command. This will be displayed to users and should be marked for translation.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. priority-
Type:
intThe priority of the command.
Return value
Type: PurpleCommand
The new command.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |