Constructor

PurpleCommandnew_with_id

unstable since: 3.0

Declaration [src]

PurpleCommand*
purple_command_new_with_id (
  const char* id,
  const char* name,
  const char* source,
  int priority
)

Description [src]

Creates a new command with given properties.

This is identical to purple_command_new() but allows you to control the id of the command.

Available since: 3.0

Parameters

id

Type: const char*

The id.

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

Type: const char*

The name.

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.

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

Type: int

The priority.

Return value

Type: PurpleCommand

The new command.

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