doc/reference/libpurple/signals_cmd.md

Fri, 29 Jul 2022 04:07:20 -0500

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Fri, 29 Jul 2022 04:07:20 -0500
changeset 41468
ff4332b17f80
parent 41164
d861b10105fb
permissions
-rw-r--r--

Fix Meson deprecation from Facebook docs

Fixes this deprecation:
```
../doc/reference/protocols/facebook/meson.build:25: WARNING: Project targeting '>=0.58.0' but tried to use feature deprecated since '0.56.0': meson.build_root. use meson.project_build_root() or meson.global_build_root() instead.
```

Testing Done:
Reconfigured and saw no warning.

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

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