pidgin/pidgin

Use ZSubscription_t in zephyr_triple

2021-01-25, Arkadiy Illarionov
1bad06536f81
Use ZSubscription_t in zephyr_triple

* Change some functions to use `ZSubscription_t`
* Cleanup redundant `zephyr_triple` allocations
* Inline `zephyr_subscribe_failed`
* Replace `find_sub_by_sub` and `find_sub_by_id` with `g_slist_find_custom`
* Rename functions related to `zephyr_triple`

Testing Done:
Compile.

Reviewed at https://reviews.imfreedom.org/r/450/
<?xml version='1.0' encoding="ISO-8859-1"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
]>
<chapter id="chapter-signals-gtkaccount">
<title>Account signals</title>
<refsect1 id="gtkaccounts.signals" role="signal_proto">
<title role="signal_proto.title">List of signals</title>
<synopsis>
&quot;<link linkend="gtkaccounts-account-modified">account-modified</link>&quot;
</synopsis>
</refsect1>
<refsect1 id="gtkaccounts.signal-details" role="signals">
<title role="signals.title">Signal details</title>
<refsect2 id="gtkaccounts-account-modified" role="signal">
<title>The <literal>&quot;account-modified&quot;</literal> signal</title>
<programlisting>
void user_function (PurpleAccount *account,
gpointer user_data)
</programlisting>
<para>
Emitted when the settings for an account have been changed and saved.
</para>
<variablelist role="params">
<varlistentry>
<term><parameter>account</parameter>&#160;:</term>
<listitem><simpara>The account that has been modified.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem>
</varlistentry>
</variablelist>
</refsect2>
</refsect1>
</chapter>