KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/share/devhelp/books/dbus/api/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/devhelp/books/dbus/api/group__DBusPendingCallInternals.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>D-Bus: DBusPendingCall implementation details</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul></div>
<h1>DBusPendingCall implementation details<br>
<small>
[<a class="el" href="group__DBusInternals.html">D-Bus secret internal implementation details</a>]</small>
</h1><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> private implementation details.  
<a href="#_details">More...</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Implementation details of <a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> - all fields are private.  <a href="structDBusPendingCall.html#_details">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g99fcbae5b8f2ed2cc019cab85f63d4e4"></a><!-- doxytag: member="DBusPendingCallInternals::CONNECTION_LOCK" ref="g99fcbae5b8f2ed2cc019cab85f63d4e4" args="(connection)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#g99fcbae5b8f2ed2cc019cab85f63d4e4">CONNECTION_LOCK</a>(connection)&nbsp;&nbsp;&nbsp;_dbus_connection_lock(connection)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">shorter and more visible way to write <a class="el" href="group__DBusConnectionInternals.html#g4fe0c8f7b72dc89b9e1a3110db2f778e">_dbus_connection_lock()</a> <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gb21a3014fa3cacf2a580e079321abc33"></a><!-- doxytag: member="DBusPendingCallInternals::CONNECTION_UNLOCK" ref="gb21a3014fa3cacf2a580e079321abc33" args="(connection)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#gb21a3014fa3cacf2a580e079321abc33">CONNECTION_UNLOCK</a>(connection)&nbsp;&nbsp;&nbsp;_dbus_connection_unlock(connection)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">shorter and more visible way to write <a class="el" href="group__DBusConnectionInternals.html#g3db10d48ec16e485d5a638aacebd4ad2">_dbus_connection_unlock()</a> <br></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#g3f2300d7a768783bc2fae0991bcc55df">_dbus_pending_call_new_unlocked</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, int timeout_milliseconds, <a class="el" href="group__DBusTimeoutInternals.html#gd0b4e101391bd7f0a42f951178cdb090">DBusTimeoutHandler</a> timeout_handler)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new pending reply object.  <a href="#g3f2300d7a768783bc2fae0991bcc55df"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#g4b8cc560549160aecd924037a872009d">_dbus_pending_call_set_reply_unlocked</a> (<a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *pending, <a class="el" href="structDBusMessage.html">DBusMessage</a> *message)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the reply of a pending call with the given message, or if the message is <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, by timing out the pending call.  <a href="#g4b8cc560549160aecd924037a872009d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#g6b10d157242e540fd18bd3db733dab5c">_dbus_pending_call_complete</a> (<a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *pending)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Calls notifier function for the pending call and sets the call to completed.  <a href="#g6b10d157242e540fd18bd3db733dab5c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#g1bc4de7652108d0629522a4e3adffcab">_dbus_pending_call_queue_timeout_error_unlocked</a> (<a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *pending, <a class="el" href="structDBusConnection.html">DBusConnection</a> *connection)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">If the pending call hasn't been timed out, add its timeout error reply to the connection's incoming message queue.  <a href="#g1bc4de7652108d0629522a4e3adffcab"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#gf1e630b966722af540502329ed028254">_dbus_pending_call_is_timeout_added_unlocked</a> (<a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *pending)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Checks to see if a timeout has been added.  <a href="#gf1e630b966722af540502329ed028254"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#gfea13f8b9977d341e41201c407adea2a">_dbus_pending_call_set_timeout_added_unlocked</a> (<a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *pending, <a class="el" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> is_added)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets wether the timeout has been added.  <a href="#gfea13f8b9977d341e41201c407adea2a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structDBusTimeout.html">DBusTimeout</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#ga9acac047b61c9a0eaff1977151e9e08">_dbus_pending_call_get_timeout_unlocked</a> (<a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *pending)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrives the timeout.  <a href="#ga9acac047b61c9a0eaff1977151e9e08"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__DBusTypes.html#gf513803b030613a669cc7ef199f90a8b">dbus_uint32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#gf5f3df36149bfe55d824eb08d00768fc">_dbus_pending_call_get_reply_serial_unlocked</a> (<a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *pending)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the reply's serial number.  <a href="#gf5f3df36149bfe55d824eb08d00768fc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#g4c0325356df50a5dc103bdab3e7148f3">_dbus_pending_call_set_reply_serial_unlocked</a> (<a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *pending, <a class="el" href="group__DBusTypes.html#gf513803b030613a669cc7ef199f90a8b">dbus_uint32_t</a> serial)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the reply's serial number.  <a href="#g4c0325356df50a5dc103bdab3e7148f3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structDBusConnection.html">DBusConnection</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#g68e5ff616e6a6563d83966c3d88b9b32">_dbus_pending_call_get_connection_and_lock</a> (<a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *pending)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the connection associated with this pending call.  <a href="#g68e5ff616e6a6563d83966c3d88b9b32"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structDBusConnection.html">DBusConnection</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#ge725060aa80d9df58dcee4f1fa108784">_dbus_pending_call_get_connection_unlocked</a> (<a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *pending)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the connection associated with this pending call.  <a href="#ge725060aa80d9df58dcee4f1fa108784"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#g9901fc4c5fd2db9bf1ce2dcc9abf55fc">_dbus_pending_call_set_timeout_error_unlocked</a> (<a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *pending, <a class="el" href="structDBusMessage.html">DBusMessage</a> *message, <a class="el" href="group__DBusTypes.html#gf513803b030613a669cc7ef199f90a8b">dbus_uint32_t</a> serial)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the reply message associated with the pending call to a timeout error.  <a href="#g9901fc4c5fd2db9bf1ce2dcc9abf55fc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#g9d8987da3747604d370ffec2c5e1e10a">_dbus_pending_call_ref_unlocked</a> (<a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *pending)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Increments the reference count on a pending call, while the lock on its connection is already held.  <a href="#g9d8987da3747604d370ffec2c5e1e10a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#g26f09beed0dd6323cca0452abf344567">_dbus_pending_call_unref_and_unlock</a> (<a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *pending)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Decrements the reference count on a pending call, freeing it if the count reaches 0.  <a href="#g26f09beed0dd6323cca0452abf344567"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#g37bef4359b3c29629a57f5fe480690a1">_dbus_pending_call_get_completed_unlocked</a> (<a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *pending)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Checks whether the pending call has received a reply yet, or not.  <a href="#g37bef4359b3c29629a57f5fe480690a1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusPendingCallInternals.html#g7d4196ca35b8df842c05a02dbb71c269">_dbus_pending_call_set_data_unlocked</a> (<a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *pending, <a class="el" href="group__DBusTypes.html#gb18afa60e9b17b6e322735bda3d863d8">dbus_int32_t</a> slot, void *data, <a class="el" href="group__DBusMemory.html#g8792ec2b2b8626ca28022faf51ec415a">DBusFreeFunction</a> free_data_func)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Stores a pointer on a <a class="el" href="structDBusPendingCall.html">DBusPendingCall</a>, along with an optional function to be used for freeing the data when the data is set again, or when the pending call is finalized.  <a href="#g7d4196ca35b8df842c05a02dbb71c269"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> private implementation details. 
<p>
The guts of <a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> and its methods. <hr><h2>Function Documentation</h2>
<a class="anchor" name="g6b10d157242e540fd18bd3db733dab5c"></a><!-- doxytag: member="dbus-pending-call.c::_dbus_pending_call_complete" ref="g6b10d157242e540fd18bd3db733dab5c" args="(DBusPendingCall *pending)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void _dbus_pending_call_complete           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *&nbsp;</td>
          <td class="paramname"> <em>pending</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Calls notifier function for the pending call and sets the call to completed. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pending</em>&nbsp;</td><td>the pending call </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="dbus-pending-call_8c-source.html#l00186">186</a> of file <a class="el" href="dbus-pending-call_8c-source.html">dbus-pending-call.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00109">_dbus_assert</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00076">DBusPendingCall::completed</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00794">dbus_pending_call_get_data()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00066">DBusPendingCall::function</a>, and <a class="el" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>.
</div>
</div><p>
<a class="anchor" name="g37bef4359b3c29629a57f5fe480690a1"></a><!-- doxytag: member="dbus-pending-call.c::_dbus_pending_call_get_completed_unlocked" ref="g37bef4359b3c29629a57f5fe480690a1" args="(DBusPendingCall *pending)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> _dbus_pending_call_get_completed_unlocked           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *&nbsp;</td>
          <td class="paramname"> <em>pending</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Checks whether the pending call has received a reply yet, or not. 
<p>
Assumes connection lock is held.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pending</em>&nbsp;</td><td>the pending call </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a> if a reply has been received </dd></dl>

<p>
Definition at line <a class="el" href="dbus-pending-call_8c-source.html#l00455">455</a> of file <a class="el" href="dbus-pending-call_8c-source.html">dbus-pending-call.c</a>.
<p>
References <a class="el" href="dbus-pending-call_8c-source.html#l00076">DBusPendingCall::completed</a>.
<p>
Referenced by <a class="el" href="dbus-connection_8c-source.html#l02218">_dbus_connection_block_pending_call()</a>.
</div>
</div><p>
<a class="anchor" name="g68e5ff616e6a6563d83966c3d88b9b32"></a><!-- doxytag: member="dbus-pending-call.c::_dbus_pending_call_get_connection_and_lock" ref="g68e5ff616e6a6563d83966c3d88b9b32" args="(DBusPendingCall *pending)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structDBusConnection.html">DBusConnection</a>* _dbus_pending_call_get_connection_and_lock           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *&nbsp;</td>
          <td class="paramname"> <em>pending</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the connection associated with this pending call. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pending</em>&nbsp;</td><td>the pending_call </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the connection associated with the pending call </dd></dl>

<p>
Definition at line <a class="el" href="dbus-pending-call_8c-source.html#l00305">305</a> of file <a class="el" href="dbus-pending-call_8c-source.html">dbus-pending-call.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00109">_dbus_assert</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00068">DBusPendingCall::connection</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00051">CONNECTION_LOCK</a>, and <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.
<p>
Referenced by <a class="el" href="dbus-connection_8c-source.html#l02218">_dbus_connection_block_pending_call()</a>.
</div>
</div><p>
<a class="anchor" name="ge725060aa80d9df58dcee4f1fa108784"></a><!-- doxytag: member="dbus-pending-call.c::_dbus_pending_call_get_connection_unlocked" ref="ge725060aa80d9df58dcee4f1fa108784" args="(DBusPendingCall *pending)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structDBusConnection.html">DBusConnection</a>* _dbus_pending_call_get_connection_unlocked           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *&nbsp;</td>
          <td class="paramname"> <em>pending</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the connection associated with this pending call. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pending</em>&nbsp;</td><td>the pending_call </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the connection associated with the pending call </dd></dl>

<p>
Definition at line <a class="el" href="dbus-pending-call_8c-source.html#l00320">320</a> of file <a class="el" href="dbus-pending-call_8c-source.html">dbus-pending-call.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00109">_dbus_assert</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00068">DBusPendingCall::connection</a>, and <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.
</div>
</div><p>
<a class="anchor" name="gf5f3df36149bfe55d824eb08d00768fc"></a><!-- doxytag: member="dbus-pending-call.c::_dbus_pending_call_get_reply_serial_unlocked" ref="gf5f3df36149bfe55d824eb08d00768fc" args="(DBusPendingCall *pending)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__DBusTypes.html#gf513803b030613a669cc7ef199f90a8b">dbus_uint32_t</a> _dbus_pending_call_get_reply_serial_unlocked           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *&nbsp;</td>
          <td class="paramname"> <em>pending</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the reply's serial number. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pending</em>&nbsp;</td><td>the pending_call </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a serial number for the reply or 0 </dd></dl>

<p>
Definition at line <a class="el" href="dbus-pending-call_8c-source.html#l00275">275</a> of file <a class="el" href="dbus-pending-call_8c-source.html">dbus-pending-call.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00109">_dbus_assert</a>, <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-pending-call_8c-source.html#l00074">DBusPendingCall::reply_serial</a>.
<p>
Referenced by <a class="el" href="dbus-connection_8c-source.html#l02218">_dbus_connection_block_pending_call()</a>.
</div>
</div><p>
<a class="anchor" name="ga9acac047b61c9a0eaff1977151e9e08"></a><!-- doxytag: member="dbus-pending-call.c::_dbus_pending_call_get_timeout_unlocked" ref="ga9acac047b61c9a0eaff1977151e9e08" args="(DBusPendingCall *pending)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structDBusTimeout.html">DBusTimeout</a>* _dbus_pending_call_get_timeout_unlocked           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *&nbsp;</td>
          <td class="paramname"> <em>pending</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrives the timeout. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pending</em>&nbsp;</td><td>the pending_call </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a timeout object </dd></dl>

<p>
Definition at line <a class="el" href="dbus-pending-call_8c-source.html#l00261">261</a> of file <a class="el" href="dbus-pending-call_8c-source.html">dbus-pending-call.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00109">_dbus_assert</a>, <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-pending-call_8c-source.html#l00070">DBusPendingCall::timeout</a>.
<p>
Referenced by <a class="el" href="dbus-connection_8c-source.html#l02218">_dbus_connection_block_pending_call()</a>, and <a class="el" href="dbus-connection_8c-source.html#l00447">_dbus_connection_queue_received_message_link()</a>.
</div>
</div><p>
<a class="anchor" name="gf1e630b966722af540502329ed028254"></a><!-- doxytag: member="dbus-pending-call.c::_dbus_pending_call_is_timeout_added_unlocked" ref="gf1e630b966722af540502329ed028254" args="(DBusPendingCall *pending)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> _dbus_pending_call_is_timeout_added_unlocked           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *&nbsp;</td>
          <td class="paramname"> <em>pending</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Checks to see if a timeout has been added. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pending</em>&nbsp;</td><td>the pending_call </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a> if there is a timeout or <a class="el" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a> if not </dd></dl>

<p>
Definition at line <a class="el" href="dbus-pending-call_8c-source.html#l00230">230</a> of file <a class="el" href="dbus-pending-call_8c-source.html">dbus-pending-call.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00109">_dbus_assert</a>, <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-pending-call_8c-source.html#l00077">DBusPendingCall::timeout_added</a>.
<p>
Referenced by <a class="el" href="dbus-connection_8c-source.html#l00447">_dbus_connection_queue_received_message_link()</a>.
</div>
</div><p>
<a class="anchor" name="g3f2300d7a768783bc2fae0991bcc55df"></a><!-- doxytag: member="dbus-pending-call.c::_dbus_pending_call_new_unlocked" ref="g3f2300d7a768783bc2fae0991bcc55df" args="(DBusConnection *connection, int timeout_milliseconds, DBusTimeoutHandler timeout_handler)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a>* _dbus_pending_call_new_unlocked           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> *&nbsp;</td>
          <td class="paramname"> <em>connection</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>timeout_milliseconds</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__DBusTimeoutInternals.html#gd0b4e101391bd7f0a42f951178cdb090">DBusTimeoutHandler</a>&nbsp;</td>
          <td class="paramname"> <em>timeout_handler</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a new pending reply object. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>connection</em>&nbsp;</td><td>connection where reply will arrive </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>timeout_milliseconds</em>&nbsp;</td><td>length of timeout, -1 for default </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>timeout_handler</em>&nbsp;</td><td>timeout handler, takes pending call as data </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a new <a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> or <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> if no memory. </dd></dl>

<p>
Definition at line <a class="el" href="dbus-pending-call_8c-source.html#l00091">91</a> of file <a class="el" href="dbus-pending-call_8c-source.html">dbus-pending-call.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00109">_dbus_assert</a>, <a class="el" href="dbus-connection_8c-source.html#l01326">_dbus_connection_ref_unlocked()</a>, <a class="el" href="dbus-dataslot_8c-source.html#l00211">_dbus_data_slot_list_init()</a>, <a class="el" href="dbus-timeout_8c-source.html#l00062">_dbus_timeout_new()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00068">DBusPendingCall::connection</a>, <a class="el" href="dbus-memory_8c-source.html#l00617">dbus_free()</a>, <a class="el" href="dbus-memory_8h-source.html#l00047">dbus_new0</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00725">dbus_pending_call_allocate_data_slot()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00746">dbus_pending_call_free_data_slot()</a>, <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00062">DBusPendingCall::refcount</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00064">DBusPendingCall::slot_list</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00070">DBusPendingCall::timeout</a>, and <a class="el" href="dbus-sysdeps_8h-source.html#l00198">DBusAtomic::value</a>.
<p>
Referenced by <a class="el" href="dbus-connection_8c-source.html#l03122">dbus_connection_send_with_reply()</a>.
</div>
</div><p>
<a class="anchor" name="g1bc4de7652108d0629522a4e3adffcab"></a><!-- doxytag: member="dbus-pending-call.c::_dbus_pending_call_queue_timeout_error_unlocked" ref="g1bc4de7652108d0629522a4e3adffcab" args="(DBusPendingCall *pending, DBusConnection *connection)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void _dbus_pending_call_queue_timeout_error_unlocked           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *&nbsp;</td>
          <td class="paramname"> <em>pending</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> *&nbsp;</td>
          <td class="paramname"> <em>connection</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
If the pending call hasn't been timed out, add its timeout error reply to the connection's incoming message queue. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pending</em>&nbsp;</td><td>the pending call </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>connection</em>&nbsp;</td><td>the connection the call was sent to </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="dbus-pending-call_8c-source.html#l00210">210</a> of file <a class="el" href="dbus-pending-call_8c-source.html">dbus-pending-call.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00109">_dbus_assert</a>, <a class="el" href="dbus-connection_8c-source.html#l00508">_dbus_connection_queue_synthesized_message_link()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00068">DBusPendingCall::connection</a>, <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-pending-call_8c-source.html#l00072">DBusPendingCall::timeout_link</a>.
</div>
</div><p>
<a class="anchor" name="g9d8987da3747604d370ffec2c5e1e10a"></a><!-- doxytag: member="dbus-pending-call.c::_dbus_pending_call_ref_unlocked" ref="g9d8987da3747604d370ffec2c5e1e10a" args="(DBusPendingCall *pending)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a>* _dbus_pending_call_ref_unlocked           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *&nbsp;</td>
          <td class="paramname"> <em>pending</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Increments the reference count on a pending call, while the lock on its connection is already held. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pending</em>&nbsp;</td><td>the pending call object </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the pending call object </dd></dl>

<p>
Definition at line <a class="el" href="dbus-pending-call_8c-source.html#l00374">374</a> of file <a class="el" href="dbus-pending-call_8c-source.html">dbus-pending-call.c</a>.
<p>
References <a class="el" href="dbus-pending-call_8c-source.html#l00062">DBusPendingCall::refcount</a>, and <a class="el" href="dbus-sysdeps_8h-source.html#l00198">DBusAtomic::value</a>.
</div>
</div><p>
<a class="anchor" name="g7d4196ca35b8df842c05a02dbb71c269"></a><!-- doxytag: member="dbus-pending-call.c::_dbus_pending_call_set_data_unlocked" ref="g7d4196ca35b8df842c05a02dbb71c269" args="(DBusPendingCall *pending, dbus_int32_t slot, void *data, DBusFreeFunction free_data_func)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> _dbus_pending_call_set_data_unlocked           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *&nbsp;</td>
          <td class="paramname"> <em>pending</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__DBusTypes.html#gb18afa60e9b17b6e322735bda3d863d8">dbus_int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>slot</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__DBusMemory.html#g8792ec2b2b8626ca28022faf51ec415a">DBusFreeFunction</a>&nbsp;</td>
          <td class="paramname"> <em>free_data_func</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Stores a pointer on a <a class="el" href="structDBusPendingCall.html">DBusPendingCall</a>, along with an optional function to be used for freeing the data when the data is set again, or when the pending call is finalized. 
<p>
The slot number must have been allocated with <a class="el" href="group__DBusPendingCall.html#g58770c3dacc0a7640bcd56522dc2ebf1">dbus_pending_call_allocate_data_slot()</a>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pending</em>&nbsp;</td><td>the pending_call </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>slot</em>&nbsp;</td><td>the slot number </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>data</em>&nbsp;</td><td>the data to store </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>free_data_func</em>&nbsp;</td><td>finalizer function for the data </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a> if there was enough memory to store the data </dd></dl>

<p>
Definition at line <a class="el" href="dbus-pending-call_8c-source.html#l00477">477</a> of file <a class="el" href="dbus-pending-call_8c-source.html">dbus-pending-call.c</a>.
<p>
References <a class="el" href="dbus-dataslot_8c-source.html#l00235">_dbus_data_slot_list_set()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00068">DBusPendingCall::connection</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00051">CONNECTION_LOCK</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00055">CONNECTION_UNLOCK</a>, and <a class="el" href="dbus-pending-call_8c-source.html#l00064">DBusPendingCall::slot_list</a>.
<p>
Referenced by <a class="el" href="dbus-pending-call_8c-source.html#l00768">dbus_pending_call_set_data()</a>, and <a class="el" href="dbus-pending-call_8c-source.html#l00593">dbus_pending_call_set_notify()</a>.
</div>
</div><p>
<a class="anchor" name="g4c0325356df50a5dc103bdab3e7148f3"></a><!-- doxytag: member="dbus-pending-call.c::_dbus_pending_call_set_reply_serial_unlocked" ref="g4c0325356df50a5dc103bdab3e7148f3" args="(DBusPendingCall *pending, dbus_uint32_t serial)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void _dbus_pending_call_set_reply_serial_unlocked           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *&nbsp;</td>
          <td class="paramname"> <em>pending</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__DBusTypes.html#gf513803b030613a669cc7ef199f90a8b">dbus_uint32_t</a>&nbsp;</td>
          <td class="paramname"> <em>serial</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the reply's serial number. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pending</em>&nbsp;</td><td>the pending_call </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>serial</em>&nbsp;</td><td>the serial number </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="dbus-pending-call_8c-source.html#l00289">289</a> of file <a class="el" href="dbus-pending-call_8c-source.html">dbus-pending-call.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00109">_dbus_assert</a>, <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-pending-call_8c-source.html#l00074">DBusPendingCall::reply_serial</a>.
<p>
Referenced by <a class="el" href="dbus-pending-call_8c-source.html#l00336">_dbus_pending_call_set_timeout_error_unlocked()</a>.
</div>
</div><p>
<a class="anchor" name="g4b8cc560549160aecd924037a872009d"></a><!-- doxytag: member="dbus-pending-call.c::_dbus_pending_call_set_reply_unlocked" ref="g4b8cc560549160aecd924037a872009d" args="(DBusPendingCall *pending, DBusMessage *message)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void _dbus_pending_call_set_reply_unlocked           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *&nbsp;</td>
          <td class="paramname"> <em>pending</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structDBusMessage.html">DBusMessage</a> *&nbsp;</td>
          <td class="paramname"> <em>message</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the reply of a pending call with the given message, or if the message is <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, by timing out the pending call. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pending</em>&nbsp;</td><td>the pending call </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>message</em>&nbsp;</td><td>the message to complete the call with, or <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> to time out the call </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="dbus-pending-call_8c-source.html#l00154">154</a> of file <a class="el" href="dbus-pending-call_8c-source.html">dbus-pending-call.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00109">_dbus_assert</a>, <a class="el" href="dbus-list_8c-source.html#l00549">_dbus_list_clear()</a>, <a class="el" href="dbus-list_8h-source.html#l00038">DBusList::data</a>, <a class="el" href="dbus-message_8c-source.html#l00912">dbus_message_get_reply_serial()</a>, <a class="el" href="dbus-message_8c-source.html#l01417">dbus_message_get_type()</a>, <a class="el" href="dbus-message_8c-source.html#l01365">dbus_message_ref()</a>, <a class="el" href="dbus-protocol_8h-source.html#l00226">DBUS_MESSAGE_TYPE_ERROR</a>, <a class="el" href="dbus-protocol_8h-source.html#l00224">DBUS_MESSAGE_TYPE_METHOD_RETURN</a>, <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00069">DBusPendingCall::reply</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00074">DBusPendingCall::reply_serial</a>, and <a class="el" href="dbus-pending-call_8c-source.html#l00072">DBusPendingCall::timeout_link</a>.
</div>
</div><p>
<a class="anchor" name="gfea13f8b9977d341e41201c407adea2a"></a><!-- doxytag: member="dbus-pending-call.c::_dbus_pending_call_set_timeout_added_unlocked" ref="gfea13f8b9977d341e41201c407adea2a" args="(DBusPendingCall *pending, dbus_bool_t is_added)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void _dbus_pending_call_set_timeout_added_unlocked           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *&nbsp;</td>
          <td class="paramname"> <em>pending</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>&nbsp;</td>
          <td class="paramname"> <em>is_added</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets wether the timeout has been added. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pending</em>&nbsp;</td><td>the pending_call </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>is_added</em>&nbsp;</td><td>whether or not a timeout is added </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="dbus-pending-call_8c-source.html#l00245">245</a> of file <a class="el" href="dbus-pending-call_8c-source.html">dbus-pending-call.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00109">_dbus_assert</a>, <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-pending-call_8c-source.html#l00077">DBusPendingCall::timeout_added</a>.
<p>
Referenced by <a class="el" href="dbus-connection_8c-source.html#l00447">_dbus_connection_queue_received_message_link()</a>.
</div>
</div><p>
<a class="anchor" name="g9901fc4c5fd2db9bf1ce2dcc9abf55fc"></a><!-- doxytag: member="dbus-pending-call.c::_dbus_pending_call_set_timeout_error_unlocked" ref="g9901fc4c5fd2db9bf1ce2dcc9abf55fc" args="(DBusPendingCall *pending, DBusMessage *message, dbus_uint32_t serial)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> _dbus_pending_call_set_timeout_error_unlocked           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *&nbsp;</td>
          <td class="paramname"> <em>pending</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structDBusMessage.html">DBusMessage</a> *&nbsp;</td>
          <td class="paramname"> <em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__DBusTypes.html#gf513803b030613a669cc7ef199f90a8b">dbus_uint32_t</a>&nbsp;</td>
          <td class="paramname"> <em>serial</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the reply message associated with the pending call to a timeout error. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pending</em>&nbsp;</td><td>the pending_call </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>message</em>&nbsp;</td><td>the message we are sending the error reply to </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>serial</em>&nbsp;</td><td>serial number for the reply </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a> on OOM </dd></dl>

<p>
Definition at line <a class="el" href="dbus-pending-call_8c-source.html#l00336">336</a> of file <a class="el" href="dbus-pending-call_8c-source.html">dbus-pending-call.c</a>.
<p>
References <a class="el" href="dbus-list_8c-source.html#l00218">_dbus_list_alloc_link()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00289">_dbus_pending_call_set_reply_serial_unlocked()</a>, <a class="el" href="dbus-protocol_8h-source.html#l00338">DBUS_ERROR_NO_REPLY</a>, <a class="el" href="dbus-message_8c-source.html#l01197">dbus_message_new_error()</a>, <a class="el" href="dbus-message_8c-source.html#l01387">dbus_message_unref()</a>, <a class="el" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00072">DBusPendingCall::timeout_link</a>, and <a class="el" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>.
<p>
Referenced by <a class="el" href="dbus-connection_8c-source.html#l03122">dbus_connection_send_with_reply()</a>.
</div>
</div><p>
<a class="anchor" name="g26f09beed0dd6323cca0452abf344567"></a><!-- doxytag: member="dbus-pending-call.c::_dbus_pending_call_unref_and_unlock" ref="g26f09beed0dd6323cca0452abf344567" args="(DBusPendingCall *pending)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void _dbus_pending_call_unref_and_unlock           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *&nbsp;</td>
          <td class="paramname"> <em>pending</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Decrements the reference count on a pending call, freeing it if the count reaches 0. 
<p>
Assumes connection lock is already held.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pending</em>&nbsp;</td><td>the pending call object </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="dbus-pending-call_8c-source.html#l00433">433</a> of file <a class="el" href="dbus-pending-call_8c-source.html">dbus-pending-call.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00109">_dbus_assert</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00068">DBusPendingCall::connection</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00055">CONNECTION_UNLOCK</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00062">DBusPendingCall::refcount</a>, and <a class="el" href="dbus-sysdeps_8h-source.html#l00198">DBusAtomic::value</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 14 22:26:14 2009 for D-Bus by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

Anon7 - 2021