2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
4 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
6 <refentry id="sd_bus_pending_method_calls"
7 xmlns:xi="http://www.w3.org/2001/XInclude">
10 <title>sd_bus_pending_method_calls</title>
11 <productname>systemd</productname>
15 <refentrytitle>sd_bus_pending_method_calls</refentrytitle>
16 <manvolnum>3</manvolnum>
20 <refname>sd_bus_pending_method_calls</refname>
22 <refpurpose>Return the number of currently pending, outgoing method calls</refpurpose>
27 <funcsynopsisinfo>#include <systemd/sd-bus.h></funcsynopsisinfo>
30 <funcdef>int <function>sd_bus_pending_method_calls</function></funcdef>
31 <paramdef>sd_bus *<parameter>bus</parameter></paramdef>
38 <title>Description</title>
40 <para><function>sd_bus_pending_method_calls()</function> returns the number of currently pending outgoing
41 method calls, i.e. method calls enqueued with
42 <citerefentry><refentrytitle>sd_bus_call_async</refentrytitle><manvolnum>3</manvolnum></citerefentry> for
43 which no reply has been received yet, and which have not reached a timeout yet.</para>
45 <para>The <parameter>bus</parameter> argument may be <constant>NULL</constant>, in which case zero is
51 <title>Return Value</title>
53 <para>This function returns 0 if there are no pending method calls, or a <constant>NULL</constant> bus
54 object was specified. On failure, a negative errno-style error code is returned.</para>
59 <para>Returned errors may indicate the following problems:</para>
63 <term><constant>-ECHILD</constant></term>
65 <listitem><para>The bus connection has been created in a different process, library or module instance.</para></listitem>
71 <xi:include href="libsystemd-pkgconfig.xml" />
74 <title>History</title>
75 <para><function>sd_bus_pending_method_calls()</function> was added in version 257.</para>
79 <title>See Also</title>
81 <para><simplelist type="inline">
82 <member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
83 <member><citerefentry><refentrytitle>sd-bus</refentrytitle><manvolnum>3</manvolnum></citerefentry></member>
84 <member><citerefentry><refentrytitle>sd_bus_call_async</refentrytitle><manvolnum>3</manvolnum></citerefentry></member>