1 <?xml version='1.0' encoding="ISO-8859-1"?>
2 <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
5 <chapter id="chapter-signals-cmd">
6 <title>Command signals</title>
8 <refsect1 id="cmds.signals" role="signal_proto">
9 <title role="signal_proto.title">List of signals</title>
11 "<link linkend="cmds-cmd-added">cmd-added</link>"
12 "<link linkend="cmds-cmd-removed">cmd-removed</link>"
16 <refsect1 id="cmds.signal-details" role="signals">
17 <title role="signals.title">Signal details</title>
19 <refsect2 id="cmds-cmd-added" role="signal">
20 <title>The <literal>"cmd-added"</literal> signal</title>
22 void user_function (const char *command,
23 PurpleCmdPriority priority,
28 Emitted when a new command is added.
30 <variablelist role="params">
32 <term><parameter>command</parameter> :</term>
33 <listitem><simpara>The new command.</simpara></listitem>
36 <term><parameter>priority</parameter> :</term>
37 <listitem><simpara>The priority of the new command.</simpara></listitem>
40 <term><parameter>flag</parameter> :</term>
41 <listitem><simpara>The command flags.</simpara></listitem>
44 <term><parameter>user_data</parameter> :</term>
45 <listitem><simpara>user data set when the signal handler was connected.</simpara></listitem>
50 <refsect2 id="cmds-cmd-removed" role="signal">
51 <title>The <literal>"cmd-removed"</literal> signal</title>
53 void user_function (const char *command,
57 Emitted when a command is removed.
59 <variablelist role="params">
61 <term><parameter>command</parameter> :</term>
62 <listitem><simpara>The removed command.</simpara></listitem>
65 <term><parameter>user_data</parameter> :</term>
66 <listitem><simpara>user data set when the signal handler was connected.</simpara></listitem>