doc/reference/libpurple/signals_cmd.md

Mon, 13 Nov 2023 21:40:33 -0600

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Mon, 13 Nov 2023 21:40:33 -0600
changeset 42489
0edea2beaa95
parent 41164
d861b10105fb
permissions
-rw-r--r--

Use libraries when generating pkgconfig files

This argument magically Does The Right Thing for both external and subproject
requirements, [though the docs are missing that](https://github.com/mesonbuild/meson/issues/6037#issuecomment-543938956).

Testing Done:
Compiled and checked the `meson-private/*.pc` files seemed alright still.

Reviewed at https://reviews.imfreedom.org/r/2804/

Title: Command Signals
Slug: command-signals

## Command Signals

### Signal List

* [cmd-added](#cmd-added)
* [cmd-removed](#cmd-removed)

### Signal Details

#### cmd-added

```c
void user_function(const gchar *command,
                   PurpleCmdPriority priority,
                   PurpleCmdFlag flag,
                   gpointer user_data);
```

Emitted when a new command is added.

**Parameters:**

**command**
: The new command.

**priority**
: The priority of the new command.

**flag**
: The command flags.

**user_data**
: User data set when the signal handler was connected.

----

#### cmd-removed

```c
void user_function(const gchar *command, gpointer user_data);
```

Emitted when a command is removed.

**Parameters:**

**command**
: The removed command.

**user_data**
: User data set when the signal handler was connected.

mercurial