|
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 : /proc/21573/root/usr/share/devhelp/books/dbus/api/ |
Upload File : |
<!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: DBusConnection 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 Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
</ul></div>
<h1>DBusConnection implementation details<br>
<small>
[<a class="el" href="group__DBusInternals.html">D-Bus secret internal implementation details</a>]</small>
</h1>Implementation details of <a class="el" href="structDBusConnection.html">DBusConnection</a>.
<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 </td><td class="memItemRight" valign="bottom"><a class="el" href="structDBusMessageFilter.html">DBusMessageFilter</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Internal struct representing a message filter function. <a href="structDBusMessageFilter.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structDBusPreallocatedSend.html">DBusPreallocatedSend</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Internals of <a class="el" href="structDBusPreallocatedSend.html">DBusPreallocatedSend</a>. <a href="structDBusPreallocatedSend.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structDBusConnection.html">DBusConnection</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Implementation details of <a class="el" href="structDBusConnection.html">DBusConnection</a>. <a href="structDBusConnection.html#_details">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gec8158f55878d1a6459ebdc9950fa783"></a><!-- doxytag: member="DBusConnectionInternals::DBusMessageFilter" ref="gec8158f55878d1a6459ebdc9950fa783" args="" -->
typedef <a class="el" href="structDBusMessageFilter.html">DBusMessageFilter</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#gec8158f55878d1a6459ebdc9950fa783">DBusMessageFilter</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Internal struct representing a message filter function. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gc0512dbb099a3cb80f503a647328c369"></a><!-- doxytag: member="DBusConnectionInternals::DBusWatchAddFunction" ref="gc0512dbb099a3cb80f503a647328c369" args="(DBusWatchList *list, DBusWatch *watch)" -->
typedef <a class="el" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>(*) </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#gc0512dbb099a3cb80f503a647328c369">DBusWatchAddFunction</a> (<a class="el" href="structDBusWatchList.html">DBusWatchList</a> *list, <a class="el" href="structDBusWatch.html">DBusWatch</a> *watch)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Function to be called in protected_change_watch() with refcount held. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g219d92aa1ad72a99b4b6f610fb9a0cc6"></a><!-- doxytag: member="DBusConnectionInternals::DBusWatchRemoveFunction" ref="g219d92aa1ad72a99b4b6f610fb9a0cc6" args="(DBusWatchList *list, DBusWatch *watch)" -->
typedef void(*) </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g219d92aa1ad72a99b4b6f610fb9a0cc6">DBusWatchRemoveFunction</a> (<a class="el" href="structDBusWatchList.html">DBusWatchList</a> *list, <a class="el" href="structDBusWatch.html">DBusWatch</a> *watch)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Function to be called in protected_change_watch() with refcount held. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga7518254a3f5a36ee6dc00e4c21e7bff"></a><!-- doxytag: member="DBusConnectionInternals::DBusWatchToggleFunction" ref="ga7518254a3f5a36ee6dc00e4c21e7bff" args="(DBusWatchList *list, DBusWatch *watch, dbus_bool_t enabled)" -->
typedef void(*) </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#ga7518254a3f5a36ee6dc00e4c21e7bff">DBusWatchToggleFunction</a> (<a class="el" href="structDBusWatchList.html">DBusWatchList</a> *list, <a class="el" href="structDBusWatch.html">DBusWatch</a> *watch, <a class="el" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> enabled)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Function to be called in protected_change_watch() with refcount held. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gdfaf37b40bf7fb9025bcf99400306062"></a><!-- doxytag: member="DBusConnectionInternals::DBusTimeoutAddFunction" ref="gdfaf37b40bf7fb9025bcf99400306062" args="(DBusTimeoutList *list, DBusTimeout *timeout)" -->
typedef <a class="el" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>(*) </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#gdfaf37b40bf7fb9025bcf99400306062">DBusTimeoutAddFunction</a> (<a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a> *list, <a class="el" href="structDBusTimeout.html">DBusTimeout</a> *timeout)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Function to be called in protected_change_timeout() with refcount held. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gd5321323beee432e7d742a13f511eb9f"></a><!-- doxytag: member="DBusConnectionInternals::DBusTimeoutRemoveFunction" ref="gd5321323beee432e7d742a13f511eb9f" args="(DBusTimeoutList *list, DBusTimeout *timeout)" -->
typedef void(*) </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#gd5321323beee432e7d742a13f511eb9f">DBusTimeoutRemoveFunction</a> (<a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a> *list, <a class="el" href="structDBusTimeout.html">DBusTimeout</a> *timeout)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Function to be called in protected_change_timeout() with refcount held. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g110617d1769f3ca556737cbeae2f0427"></a><!-- doxytag: member="DBusConnectionInternals::DBusTimeoutToggleFunction" ref="g110617d1769f3ca556737cbeae2f0427" args="(DBusTimeoutList *list, DBusTimeout *timeout, dbus_bool_t enabled)" -->
typedef void(*) </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g110617d1769f3ca556737cbeae2f0427">DBusTimeoutToggleFunction</a> (<a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a> *list, <a class="el" href="structDBusTimeout.html">DBusTimeout</a> *timeout, <a class="el" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> enabled)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Function to be called in protected_change_timeout() with refcount held. <br></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g4fe0c8f7b72dc89b9e1a3110db2f778e">_dbus_connection_lock</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Acquires the connection lock. <a href="#g4fe0c8f7b72dc89b9e1a3110db2f778e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g3db10d48ec16e485d5a638aacebd4ad2">_dbus_connection_unlock</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Releases the connection lock. <a href="#g3db10d48ec16e485d5a638aacebd4ad2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#gc1b92eba0aeee294dc28fcc260c9b749">_dbus_connection_queue_received_message_link</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, <a class="el" href="structDBusList.html">DBusList</a> *link)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a message-containing list link to the incoming message queue, taking ownership of the link and the message's current refcount. <a href="#gc1b92eba0aeee294dc28fcc260c9b749"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#gdb7a525dc6b566b575ee4f9b20028b04">_dbus_connection_queue_synthesized_message_link</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, <a class="el" href="structDBusList.html">DBusList</a> *link)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a link + message to the incoming message queue. <a href="#gdb7a525dc6b566b575ee4f9b20028b04"></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> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g3d31a01751860b67f960dcaffb7bb4ef">_dbus_connection_has_messages_to_send_unlocked</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Checks whether there are messages in the outgoing message queue. <a href="#g3d31a01751860b67f960dcaffb7bb4ef"></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> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g2210bb5734c1a04d0d654b026f27d94e">dbus_connection_has_messages_to_send</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Checks whether there are messages in the outgoing message queue. <a href="#g2210bb5734c1a04d0d654b026f27d94e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structDBusMessage.html">DBusMessage</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g3955cd53ac4f671a5bb54019887389a7">_dbus_connection_get_message_to_send</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the next outgoing message. <a href="#g3955cd53ac4f671a5bb54019887389a7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g2d04df24d0f54a4e2dcfbede4ef50f09">_dbus_connection_message_sent</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, <a class="el" href="structDBusMessage.html">DBusMessage</a> *message)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Notifies the connection that a message has been sent, so the message can be removed from the outgoing queue. <a href="#g2d04df24d0f54a4e2dcfbede4ef50f09"></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> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g82adef36b4cd583bc1146eae5756c063">_dbus_connection_add_watch_unlocked</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, <a class="el" href="structDBusWatch.html">DBusWatch</a> *watch)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a watch using the connection's DBusAddWatchFunction if available. <a href="#g82adef36b4cd583bc1146eae5756c063"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g65fc02c0756d0c7caaa39cd60922c99b">_dbus_connection_remove_watch_unlocked</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, <a class="el" href="structDBusWatch.html">DBusWatch</a> *watch)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes a watch using the connection's DBusRemoveWatchFunction if available. <a href="#g65fc02c0756d0c7caaa39cd60922c99b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g6c00e2eaf225b154760976af5688d250">_dbus_connection_toggle_watch_unlocked</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, <a class="el" href="structDBusWatch.html">DBusWatch</a> *watch, <a class="el" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> enabled)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Toggles a watch and notifies app via connection's DBusWatchToggledFunction if available. <a href="#g6c00e2eaf225b154760976af5688d250"></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> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g69e87e3be94b8c681585ec870e39a64a">_dbus_connection_add_timeout_unlocked</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, <a class="el" href="structDBusTimeout.html">DBusTimeout</a> *timeout)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a timeout using the connection's DBusAddTimeoutFunction if available. <a href="#g69e87e3be94b8c681585ec870e39a64a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#gbaa6d26f6eca30782904af1ceb703bd1">_dbus_connection_remove_timeout_unlocked</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, <a class="el" href="structDBusTimeout.html">DBusTimeout</a> *timeout)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes a timeout using the connection's DBusRemoveTimeoutFunction if available. <a href="#gbaa6d26f6eca30782904af1ceb703bd1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g165dcfd8b995ff0edd19aebcf3e1a61a">_dbus_connection_toggle_timeout_unlocked</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, <a class="el" href="structDBusTimeout.html">DBusTimeout</a> *timeout, <a class="el" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> enabled)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Toggles a timeout and notifies app via connection's DBusTimeoutToggledFunction if available. <a href="#g165dcfd8b995ff0edd19aebcf3e1a61a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g968196bee49659e75c54b53d7c85fa51">_dbus_connection_remove_pending_call</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, <a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *pending)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes a pending call from the connection, such that the pending reply will be ignored. <a href="#g968196bee49659e75c54b53d7c85fa51"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g9349ea2fb5197925c420d26772eae769">_dbus_connection_do_iteration_unlocked</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, unsigned int flags, int timeout_milliseconds)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Queues incoming messages and sends outgoing messages for this connection, optionally blocking in the process. <a href="#g9349ea2fb5197925c420d26772eae769"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g2cdffe9215251b69cb39ff36b9f50e6c">_dbus_connection_new_for_transport</a> (<a class="el" href="structDBusTransport.html">DBusTransport</a> *transport)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new connection for the given transport. <a href="#g2cdffe9215251b69cb39ff36b9f50e6c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g7151f75b5d2308ec80cfe893aba72aa1">_dbus_connection_ref_unlocked</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Increments the reference count of a <a class="el" href="structDBusConnection.html">DBusConnection</a>. <a href="#g7151f75b5d2308ec80cfe893aba72aa1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g9ffbd9aa4f07cb30d92887e956a9fd43">_dbus_connection_unref_unlocked</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Decrements the reference count of a <a class="el" href="structDBusConnection.html">DBusConnection</a>. <a href="#g9ffbd9aa4f07cb30d92887e956a9fd43"></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> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g12756797bd5c1918aa065f9c37ed7bba">_dbus_connection_handle_watch</a> (<a class="el" href="structDBusWatch.html">DBusWatch</a> *watch, unsigned int condition, void *data)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A callback for use with dbus_watch_new() to create a <a class="el" href="structDBusWatch.html">DBusWatch</a>. <a href="#g12756797bd5c1918aa065f9c37ed7bba"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#gdc46f7abfe925f9860fc8c64aeb29ad2">_dbus_connection_close_possibly_shared</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Closes a shared OR private connection, while <a class="el" href="group__DBusConnection.html#ge130c33da29477897d362ab89f068191">dbus_connection_close()</a> can only be used on private connections. <a href="#gdc46f7abfe925f9860fc8c64aeb29ad2"></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> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g2974eb1c261305fafc635e14fc575d03">_dbus_connection_send_and_unlock</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, <a class="el" href="structDBusMessage.html">DBusMessage</a> *message, <a class="el" href="group__DBusTypes.html#gf513803b030613a669cc7ef199f90a8b">dbus_uint32_t</a> *client_serial)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Like <a class="el" href="group__DBusConnection.html#g579fe70c804800df3786e50319521970">dbus_connection_send()</a>, but assumes the connection is already locked on function entry, and unlocks before returning. <a href="#g2974eb1c261305fafc635e14fc575d03"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#g9f9665902c763bd1ddf9d9bc57d7a7ba">_dbus_connection_close_if_only_one_ref</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Used internally to handle the semantics of <a class="el" href="group__DBusServer.html#gcf6686c9b7d53124b7f2ef1349a30148">dbus_server_set_new_connection_function()</a>. <a href="#g9f9665902c763bd1ddf9d9bc57d7a7ba"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusConnectionInternals.html#gd5e725e66dc16a411544e25675fb9fba">_dbus_connection_block_pending_call</a> (<a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> *pending)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Blocks until a pending call times out or gets a reply. <a href="#gd5e725e66dc16a411544e25675fb9fba"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Implementation details of <a class="el" href="structDBusConnection.html">DBusConnection</a>.
<p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="g69e87e3be94b8c681585ec870e39a64a"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_add_timeout_unlocked" ref="g69e87e3be94b8c681585ec870e39a64a" args="(DBusConnection *connection, DBusTimeout *timeout)" -->
<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_connection_add_timeout_unlocked </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusTimeout.html">DBusTimeout</a> * </td>
<td class="paramname"> <em>timeout</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Adds a timeout using the connection's DBusAddTimeoutFunction if available.
<p>
Otherwise records the timeout to be added when said function is available. Also re-adds the timeout if the DBusAddTimeoutFunction changes. May fail due to lack of memory. The timeout will fire repeatedly until removed. Connection lock should be held when calling this.<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> </td><td>the connection. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>timeout</em> </td><td>the timeout to add. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a> on success. </dd></dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l00823">823</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-timeout_8c-source.html#l00309">_dbus_timeout_list_add_timeout()</a>, <a class="el" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>, and <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.
</div>
</div><p>
<a class="anchor" name="g82adef36b4cd583bc1146eae5756c063"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_add_watch_unlocked" ref="g82adef36b4cd583bc1146eae5756c063" args="(DBusConnection *connection, DBusWatch *watch)" -->
<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_connection_add_watch_unlocked </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusWatch.html">DBusWatch</a> * </td>
<td class="paramname"> <em>watch</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Adds a watch using the connection's DBusAddWatchFunction if available.
<p>
Otherwise records the watch to be added when said function is available. Also re-adds the watch if the DBusAddWatchFunction changes. May fail due to lack of memory. Connection lock should be held when calling this.<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> </td><td>the connection. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>watch</em> </td><td>the watch to add. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a> on success. </dd></dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l00702">702</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-watch_8c-source.html#l00351">_dbus_watch_list_add_watch()</a>, <a class="el" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>, and <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.
</div>
</div><p>
<a class="anchor" name="gd5e725e66dc16a411544e25675fb9fba"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_block_pending_call" ref="gd5e725e66dc16a411544e25675fb9fba" args="(DBusPendingCall *pending)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void _dbus_connection_block_pending_call </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> * </td>
<td class="paramname"> <em>pending</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Blocks until a pending call times out or gets a reply.
<p>
Does not re-enter the main loop or run filter/path-registered callbacks. The reply to the message will not be seen by filter callbacks.<p>
Returns immediately if pending call already got a reply.<p>
<dl compact><dt><b><a class="el" href="todo.html#_todo000008">Todo:</a></b></dt><dd>could use performance improvements (it keeps scanning the whole message queue for example)</dd></dl>
<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> </td><td>the pending call we block for a reply on </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l02218">2218</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.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#l01127">_dbus_connection_do_iteration_unlocked()</a>, <a class="el" href="dbus-sysdeps-unix_8c-source.html#l01925">_dbus_get_current_time()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00455">_dbus_pending_call_get_completed_unlocked()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00305">_dbus_pending_call_get_connection_and_lock()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00275">_dbus_pending_call_get_reply_serial_unlocked()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00261">_dbus_pending_call_get_timeout_unlocked()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00051">CONNECTION_LOCK</a>, <a class="el" href="group__DBusConnection.html#ggbf250a32ff740b2a8c99136e0142d8d2df8e8a594ab338cb9cf7855b19e37e93">DBUS_DISPATCH_DATA_REMAINS</a>, <a class="el" href="dbus-connection_8h-source.html#l00082">DBUS_DISPATCH_NEED_MEMORY</a>, <a class="el" href="dbus-protocol_8h-source.html#l00364">DBUS_ERROR_DISCONNECTED</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00646">dbus_pending_call_get_completed()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00532">dbus_pending_call_ref()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00559">dbus_pending_call_unref()</a>, <a class="el" href="dbus-timeout_8c-source.html#l00415">dbus_timeout_get_interval()</a>, and <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.
<p>
Referenced by <a class="el" href="dbus-pending-call_8c-source.html#l00703">dbus_pending_call_block()</a>.
</div>
</div><p>
<a class="anchor" name="g9f9665902c763bd1ddf9d9bc57d7a7ba"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_close_if_only_one_ref" ref="g9f9665902c763bd1ddf9d9bc57d7a7ba" args="(DBusConnection *connection)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void _dbus_connection_close_if_only_one_ref </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Used internally to handle the semantics of <a class="el" href="group__DBusServer.html#gcf6686c9b7d53124b7f2ef1349a30148">dbus_server_set_new_connection_function()</a>.
<p>
If the new connection function does not ref the connection, we want to close it.<p>
A bit of a hack, probably the new connection function should have returned a value for whether to close, or should have had to close the connection itself if it didn't want it.<p>
But, this works OK as long as the new connection function doesn't do anything crazy like keep the connection around without ref'ing it.<p>
We have to lock the connection across refcount check and close in case the new connection function spawns a thread that closes and unrefs. In that case, if the app thread closes and unrefs first, we'll harmlessly close again; if the app thread still has the ref, we'll close and then the app will close harmlessly. If the app unrefs without closing, the app is broken since if the app refs from the new connection function it is supposed to also close.<p>
If we didn't atomically check the refcount and close with the lock held though, we could screw this up.<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> </td><td>the connection </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l02017">2017</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.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#l00051">CONNECTION_LOCK</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00055">CONNECTION_UNLOCK</a>, <a class="el" href="dbus-connection_8c-source.html#l00233">DBusConnection::refcount</a>, and <a class="el" href="dbus-sysdeps_8h-source.html#l00198">DBusAtomic::value</a>.
</div>
</div><p>
<a class="anchor" name="gdc46f7abfe925f9860fc8c64aeb29ad2"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_close_possibly_shared" ref="gdc46f7abfe925f9860fc8c64aeb29ad2" args="(DBusConnection *connection)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void _dbus_connection_close_possibly_shared </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Closes a shared OR private connection, while <a class="el" href="group__DBusConnection.html#ge130c33da29477897d362ab89f068191">dbus_connection_close()</a> can only be used on private connections.
<p>
Should only be called by the dbus code that owns the connection - an owner must be known, the open/close state is like malloc/free, not like ref/unref.<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> </td><td>the connection </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l01801">1801</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00109">_dbus_assert</a>, <a class="el" href="dbus-memory_8c-source.html#l00687">_dbus_current_generation</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00051">CONNECTION_LOCK</a>, <a class="el" href="dbus-connection_8c-source.html#l00310">DBusConnection::generation</a>, and <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.
</div>
</div><p>
<a class="anchor" name="g9349ea2fb5197925c420d26772eae769"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_do_iteration_unlocked" ref="g9349ea2fb5197925c420d26772eae769" args="(DBusConnection *connection, unsigned int flags, int timeout_milliseconds)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void _dbus_connection_do_iteration_unlocked </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"> <em>flags</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>timeout_milliseconds</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Queues incoming messages and sends outgoing messages for this connection, optionally blocking in the process.
<p>
Each call to <a class="el" href="group__DBusConnectionInternals.html#g9349ea2fb5197925c420d26772eae769">_dbus_connection_do_iteration_unlocked()</a> will call select() or poll() one time and then read or write data if possible.<p>
The purpose of this function is to be able to flush outgoing messages or queue up incoming messages without returning control to the application and causing reentrancy weirdness.<p>
The flags parameter allows you to specify whether to read incoming messages, write outgoing messages, or both, and whether to block if no immediate action is possible.<p>
The timeout_milliseconds parameter does nothing unless the iteration is blocking.<p>
If there are no outgoing messages and DBUS_ITERATION_DO_READING wasn't specified, then it's impossible to block, even if you specify DBUS_ITERATION_BLOCK; in that case the function returns immediately.<p>
Called with connection lock 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>connection</em> </td><td>the connection. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>iteration flags. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>timeout_milliseconds</em> </td><td>maximum blocking time, or -1 for no limit. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l01127">1127</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-transport_8c-source.html#l00925">_dbus_transport_do_iteration()</a>, and <a class="el" href="dbus-connection_8c-source.html#l00249">DBusConnection::n_outgoing</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="g3955cd53ac4f671a5bb54019887389a7"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_get_message_to_send" ref="g3955cd53ac4f671a5bb54019887389a7" args="(DBusConnection *connection)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structDBusMessage.html">DBusMessage</a>* _dbus_connection_get_message_to_send </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Gets the next outgoing message.
<p>
The message remains in the queue, and the caller does not own a reference to it.<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> </td><td>the connection. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the message to be sent. </dd></dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l00569">569</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-list_8c-source.html#l00603">_dbus_list_get_last()</a>, and <a class="el" href="dbus-connection_8c-source.html#l00242">DBusConnection::outgoing_messages</a>.
</div>
</div><p>
<a class="anchor" name="g12756797bd5c1918aa065f9c37ed7bba"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_handle_watch" ref="g12756797bd5c1918aa065f9c37ed7bba" args="(DBusWatch *watch, unsigned int condition, void *data)" -->
<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_connection_handle_watch </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusWatch.html">DBusWatch</a> * </td>
<td class="paramname"> <em>watch</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"> <em>condition</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"> <em>data</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
A callback for use with dbus_watch_new() to create a <a class="el" href="structDBusWatch.html">DBusWatch</a>.
<p>
<dl compact><dt><b><a class="el" href="todo.html#_todo000007">Todo:</a></b></dt><dd>This is basically a hack - we could delete <a class="el" href="group__DBusTransport.html#g4a010098fe079eb6f201ff034d15fdff">_dbus_transport_handle_watch()</a> and the virtual handle_watch in <a class="el" href="structDBusTransport.html">DBusTransport</a> if we got rid of it. The reason this is some work is threading, see the <a class="el" href="group__DBusConnectionInternals.html#g12756797bd5c1918aa065f9c37ed7bba">_dbus_connection_handle_watch()</a> implementation.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>watch</em> </td><td>the watch. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>condition</em> </td><td>the current condition of the file descriptors being watched. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>must be a pointer to a <a class="el" href="structDBusConnection.html">DBusConnection</a> </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a> if the IO condition may not have been fully handled due to lack of memory </dd></dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l01405">1405</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-transport_8c-source.html#l00830">_dbus_transport_handle_watch()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00051">CONNECTION_LOCK</a>, and <a class="el" href="dbus-connection_8c-source.html#l00254">DBusConnection::transport</a>.
</div>
</div><p>
<a class="anchor" name="g3d31a01751860b67f960dcaffb7bb4ef"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_has_messages_to_send_unlocked" ref="g3d31a01751860b67f960dcaffb7bb4ef" args="(DBusConnection *connection)" -->
<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_connection_has_messages_to_send_unlocked </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Checks whether there are messages in the outgoing message queue.
<p>
Called with connection lock 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>connection</em> </td><td>the connection. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a> if the outgoing queue is non-empty. </dd></dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l00532">532</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-connection_8c-source.html#l00242">DBusConnection::outgoing_messages</a>.
<p>
Referenced by <a class="el" href="dbus-connection_8c-source.html#l00548">dbus_connection_has_messages_to_send()</a>.
</div>
</div><p>
<a class="anchor" name="g4fe0c8f7b72dc89b9e1a3110db2f778e"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_lock" ref="g4fe0c8f7b72dc89b9e1a3110db2f778e" args="(DBusConnection *connection)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void _dbus_connection_lock </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Acquires the connection lock.
<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> </td><td>the connection. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l00353">353</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-pending-call_8c-source.html#l00051">CONNECTION_LOCK</a>.
<p>
Referenced by <a class="el" href="dbus-object-tree_8c-source.html#l00731">_dbus_object_tree_dispatch_and_unlock()</a>.
</div>
</div><p>
<a class="anchor" name="g2d04df24d0f54a4e2dcfbede4ef50f09"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_message_sent" ref="g2d04df24d0f54a4e2dcfbede4ef50f09" args="(DBusConnection *connection, DBusMessage *message)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void _dbus_connection_message_sent </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusMessage.html">DBusMessage</a> * </td>
<td class="paramname"> <em>message</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Notifies the connection that a message has been sent, so the message can be removed from the outgoing queue.
<p>
Called with the connection lock 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>connection</em> </td><td>the connection. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>message</em> </td><td>the message that was sent. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l00585">585</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.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#l00587">_dbus_list_get_last_link()</a>, <a class="el" href="dbus-list_8c-source.html#l00309">_dbus_list_prepend_link()</a>, <a class="el" href="dbus-list_8c-source.html#l00506">_dbus_list_unlink()</a>, <a class="el" href="dbus-message_8c-source.html#l00253">_dbus_message_remove_size_counter()</a>, <a class="el" href="dbus-list_8h-source.html#l00038">DBusList::data</a>, <a class="el" href="dbus-message_8c-source.html#l02686">dbus_message_get_interface()</a>, <a class="el" href="dbus-message_8c-source.html#l02772">dbus_message_get_member()</a>, <a class="el" href="dbus-message_8c-source.html#l02555">dbus_message_get_path()</a>, <a class="el" href="dbus-message_8c-source.html#l03002">dbus_message_get_signature()</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#l01387">dbus_message_unref()</a>, <a class="el" href="dbus-connection_8c-source.html#l00277">DBusConnection::link_cache</a>, <a class="el" href="dbus-connection_8c-source.html#l00249">DBusConnection::n_outgoing</a>, <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-connection_8c-source.html#l00252">DBusConnection::outgoing_counter</a>, and <a class="el" href="dbus-connection_8c-source.html#l00242">DBusConnection::outgoing_messages</a>.
</div>
</div><p>
<a class="anchor" name="g2cdffe9215251b69cb39ff36b9f50e6c"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_new_for_transport" ref="g2cdffe9215251b69cb39ff36b9f50e6c" args="(DBusTransport *transport)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structDBusConnection.html">DBusConnection</a>* _dbus_connection_new_for_transport </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusTransport.html">DBusTransport</a> * </td>
<td class="paramname"> <em>transport</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a new connection for the given transport.
<p>
A transport represents a message stream that uses some concrete mechanism, such as UNIX domain sockets. May return <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> if insufficient memory exists to create the connection.<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>transport</em> </td><td>the transport. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the new connection, or <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> on failure. </dd></dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l01163">1163</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-threads_8c-source.html#l00232">_dbus_condvar_free_at_location()</a>, <a class="el" href="dbus-threads_8c-source.html#l00200">_dbus_condvar_new_at_location()</a>, <a class="el" href="dbus-resources_8c-source.html#l00077">_dbus_counter_new()</a>, <a class="el" href="dbus-resources_8c-source.html#l00118">_dbus_counter_unref()</a>, <a class="el" href="dbus-memory_8c-source.html#l00687">_dbus_current_generation</a>, <a class="el" href="dbus-dataslot_8c-source.html#l00211">_dbus_data_slot_list_init()</a>, <a class="el" href="dbus-sysdeps-unix_8c-source.html#l02496">_dbus_disable_sigpipe()</a>, <a class="el" href="dbus-hash_8c-source.html#l00292">_dbus_hash_table_new()</a>, <a class="el" href="dbus-hash_8c-source.html#l00374">_dbus_hash_table_unref()</a>, <a class="el" href="dbus-list_8c-source.html#l00218">_dbus_list_alloc_link()</a>, <a class="el" href="dbus-list_8c-source.html#l00230">_dbus_list_free_link()</a>, <a class="el" href="dbus-threads_8c-source.html#l00126">_dbus_mutex_free_at_location()</a>, <a class="el" href="dbus-threads_8c-source.html#l00088">_dbus_mutex_new_at_location()</a>, <a class="el" href="dbus-object-tree_8c-source.html#l00090">_dbus_object_tree_new()</a>, <a class="el" href="dbus-object-tree_8c-source.html#l00141">_dbus_object_tree_unref()</a>, <a class="el" href="dbus-timeout_8c-source.html#l00210">_dbus_timeout_list_free()</a>, <a class="el" href="dbus-timeout_8c-source.html#l00193">_dbus_timeout_list_new()</a>, <a class="el" href="dbus-transport_8c-source.html#l00429">_dbus_transport_ref()</a>, <a class="el" href="dbus-transport_8c-source.html#l00868">_dbus_transport_set_connection()</a>, <a class="el" href="dbus-watch_8c-source.html#l00225">_dbus_watch_list_free()</a>, <a class="el" href="dbus-watch_8c-source.html#l00208">_dbus_watch_list_new()</a>, <a class="el" href="dbus-connection_8c-source.html#l00264">DBusConnection::client_serial</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>, <a class="el" href="group__DBusConnection.html#ggbf250a32ff740b2a8c99136e0142d8d2cb9bb9daa90f520d5fc9e84de3c5f017">DBUS_DISPATCH_COMPLETE</a>, <a class="el" href="dbus-memory_8c-source.html#l00617">dbus_free()</a>, <a class="el" href="group__DBusHashTable.html#ggb0ab9767ffa5b6720a13b3d74163085226446bd9fbb15c6c381b35a810207141">DBUS_HASH_INT</a>, <a class="el" href="dbus-shared_8h-source.html#l00100">DBUS_INTERFACE_LOCAL</a>, <a class="el" href="dbus-message_8c-source.html#l01152">dbus_message_new_signal()</a>, <a class="el" href="dbus-message_8c-source.html#l01387">dbus_message_unref()</a>, <a class="el" href="dbus-memory_8h-source.html#l00047">dbus_new0</a>, <a class="el" href="dbus-shared_8h-source.html#l00082">DBUS_PATH_LOCAL</a>, <a class="el" href="dbus-connection_8c-source.html#l00265">DBusConnection::disconnect_message_link</a>, <a class="el" href="dbus-connection_8c-source.html#l00297">DBusConnection::disconnected_message_arrived</a>, <a class="el" href="dbus-connection_8c-source.html#l00301">DBusConnection::disconnected_message_processed</a>, <a class="el" href="dbus-connection_8c-source.html#l00238">DBusConnection::dispatch_cond</a>, <a class="el" href="dbus-connection_8c-source.html#l00237">DBusConnection::dispatch_mutex</a>, <a class="el" href="dbus-connection_8c-source.html#l00293">DBusConnection::exit_on_disconnect</a>, <a class="el" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="dbus-connection_8c-source.html#l00258">DBusConnection::filter_list</a>, <a class="el" href="dbus-connection_8c-source.html#l00310">DBusConnection::generation</a>, <a class="el" href="dbus-connection_8c-source.html#l00240">DBusConnection::io_path_cond</a>, <a class="el" href="dbus-connection_8c-source.html#l00239">DBusConnection::io_path_mutex</a>, <a class="el" href="dbus-connection_8c-source.html#l00275">DBusConnection::last_dispatch_status</a>, <a class="el" href="dbus-connection_8c-source.html#l00235">DBusConnection::mutex</a>, <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-connection_8c-source.html#l00280">DBusConnection::objects</a>, <a class="el" href="dbus-connection_8c-source.html#l00252">DBusConnection::outgoing_counter</a>, <a class="el" href="dbus-connection_8c-source.html#l00262">DBusConnection::pending_replies</a>, <a class="el" href="dbus-connection_8c-source.html#l00233">DBusConnection::refcount</a>, <a class="el" href="dbus-connection_8c-source.html#l00295">DBusConnection::route_peer_messages</a>, <a class="el" href="dbus-connection_8c-source.html#l00291">DBusConnection::shareable</a>, <a class="el" href="dbus-connection_8c-source.html#l00260">DBusConnection::slot_list</a>, <a class="el" href="dbus-connection_8c-source.html#l00256">DBusConnection::timeouts</a>, <a class="el" href="dbus-connection_8c-source.html#l00254">DBusConnection::transport</a>, <a class="el" href="dbus-sysdeps_8h-source.html#l00198">DBusAtomic::value</a>, and <a class="el" href="dbus-connection_8c-source.html#l00255">DBusConnection::watches</a>.
</div>
</div><p>
<a class="anchor" name="gc1b92eba0aeee294dc28fcc260c9b749"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_queue_received_message_link" ref="gc1b92eba0aeee294dc28fcc260c9b749" args="(DBusConnection *connection, DBusList *link)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void _dbus_connection_queue_received_message_link </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusList.html">DBusList</a> * </td>
<td class="paramname"> <em>link</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Adds a message-containing list link to the incoming message queue, taking ownership of the link and the message's current refcount.
<p>
Cannot fail due to lack of memory.<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> </td><td>the connection. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>link</em> </td><td>the message link to queue. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l00447">447</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.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#l00841">_dbus_connection_remove_timeout_unlocked()</a>, <a class="el" href="dbus-hash_8c-source.html#l01202">_dbus_hash_table_lookup_int()</a>, <a class="el" href="dbus-list_8c-source.html#l00291">_dbus_list_append_link()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00261">_dbus_pending_call_get_timeout_unlocked()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00230">_dbus_pending_call_is_timeout_added_unlocked()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00245">_dbus_pending_call_set_timeout_added_unlocked()</a>, <a class="el" href="dbus-transport_8c-source.html#l00668">_dbus_transport_get_is_authenticated()</a>, <a class="el" href="dbus-list_8h-source.html#l00038">DBusList::data</a>, <a class="el" href="dbus-message_8c-source.html#l02686">dbus_message_get_interface()</a>, <a class="el" href="dbus-message_8c-source.html#l02772">dbus_message_get_member()</a>, <a class="el" href="dbus-message_8c-source.html#l02555">dbus_message_get_path()</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#l03002">dbus_message_get_signature()</a>, <a class="el" href="dbus-message_8c-source.html#l01417">dbus_message_get_type()</a>, <a class="el" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="dbus-connection_8c-source.html#l00243">DBusConnection::incoming_messages</a>, <a class="el" href="dbus-connection_8c-source.html#l00250">DBusConnection::n_incoming</a>, <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-connection_8c-source.html#l00262">DBusConnection::pending_replies</a>, and <a class="el" href="dbus-connection_8c-source.html#l00254">DBusConnection::transport</a>.
<p>
Referenced by <a class="el" href="dbus-transport_8c-source.html#l01084">_dbus_transport_queue_messages()</a>.
</div>
</div><p>
<a class="anchor" name="gdb7a525dc6b566b575ee4f9b20028b04"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_queue_synthesized_message_link" ref="gdb7a525dc6b566b575ee4f9b20028b04" args="(DBusConnection *connection, DBusList *link)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void _dbus_connection_queue_synthesized_message_link </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusList.html">DBusList</a> * </td>
<td class="paramname"> <em>link</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Adds a link + message to the incoming message queue.
<p>
Can't fail. Takes ownership of both link and message.<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> </td><td>the connection. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>link</em> </td><td>the list node and message to queue. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l00508">508</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-list_8c-source.html#l00291">_dbus_list_append_link()</a>, <a class="el" href="dbus-list_8h-source.html#l00038">DBusList::data</a>, <a class="el" href="dbus-connection_8c-source.html#l00243">DBusConnection::incoming_messages</a>, and <a class="el" href="dbus-connection_8c-source.html#l00250">DBusConnection::n_incoming</a>.
<p>
Referenced by <a class="el" href="dbus-pending-call_8c-source.html#l00210">_dbus_pending_call_queue_timeout_error_unlocked()</a>.
</div>
</div><p>
<a class="anchor" name="g7151f75b5d2308ec80cfe893aba72aa1"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_ref_unlocked" ref="g7151f75b5d2308ec80cfe893aba72aa1" args="(DBusConnection *connection)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structDBusConnection.html">DBusConnection</a>* _dbus_connection_ref_unlocked </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Increments the reference count of a <a class="el" href="structDBusConnection.html">DBusConnection</a>.
<p>
Requires that the caller already holds the connection lock.<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> </td><td>the connection. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the connection. </dd></dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l01326">1326</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00109">_dbus_assert</a>, <a class="el" href="dbus-sysdeps-unix_8c-source.html#l01769">_dbus_atomic_inc()</a>, <a class="el" href="dbus-memory_8c-source.html#l00687">_dbus_current_generation</a>, <a class="el" href="dbus-connection_8c-source.html#l00310">DBusConnection::generation</a>, <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-connection_8c-source.html#l00233">DBusConnection::refcount</a>, and <a class="el" href="dbus-sysdeps_8h-source.html#l00198">DBusAtomic::value</a>.
<p>
Referenced by <a class="el" href="dbus-object-tree_8c-source.html#l00428">_dbus_object_tree_unregister_and_unlock()</a>, <a class="el" href="dbus-pending-call_8c-source.html#l00091">_dbus_pending_call_new_unlocked()</a>, <a class="el" href="dbus-transport_8c-source.html#l00668">_dbus_transport_get_is_authenticated()</a>, <a class="el" href="dbus-connection_8c-source.html#l04220">dbus_connection_dispatch()</a>, <a class="el" href="dbus-connection_8c-source.html#l04649">dbus_connection_set_timeout_functions()</a>, and <a class="el" href="dbus-connection_8c-source.html#l04567">dbus_connection_set_watch_functions()</a>.
</div>
</div><p>
<a class="anchor" name="g968196bee49659e75c54b53d7c85fa51"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_remove_pending_call" ref="g968196bee49659e75c54b53d7c85fa51" args="(DBusConnection *connection, DBusPendingCall *pending)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void _dbus_connection_remove_pending_call </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusPendingCall.html">DBusPendingCall</a> * </td>
<td class="paramname"> <em>pending</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Removes a pending call from the connection, such that the pending reply will be ignored.
<p>
May drop the last reference to 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>connection</em> </td><td>the connection </td></tr>
<tr><td valign="top"></td><td valign="top"><em>pending</em> </td><td>the pending call </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l00980">980</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-pending-call_8c-source.html#l00051">CONNECTION_LOCK</a>.
<p>
Referenced by <a class="el" href="dbus-pending-call_8c-source.html#l00630">dbus_pending_call_cancel()</a>.
</div>
</div><p>
<a class="anchor" name="gbaa6d26f6eca30782904af1ceb703bd1"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_remove_timeout_unlocked" ref="gbaa6d26f6eca30782904af1ceb703bd1" args="(DBusConnection *connection, DBusTimeout *timeout)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void _dbus_connection_remove_timeout_unlocked </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusTimeout.html">DBusTimeout</a> * </td>
<td class="paramname"> <em>timeout</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Removes a timeout using the connection's DBusRemoveTimeoutFunction if available.
<p>
It's an error to call this function on a timeout that was not previously added. Connection lock should be held when calling this.<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> </td><td>the connection. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>timeout</em> </td><td>the timeout to remove. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l00841">841</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-timeout_8c-source.html#l00339">_dbus_timeout_list_remove_timeout()</a>, <a class="el" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>, and <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</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="g65fc02c0756d0c7caaa39cd60922c99b"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_remove_watch_unlocked" ref="g65fc02c0756d0c7caaa39cd60922c99b" args="(DBusConnection *connection, DBusWatch *watch)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void _dbus_connection_remove_watch_unlocked </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusWatch.html">DBusWatch</a> * </td>
<td class="paramname"> <em>watch</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Removes a watch using the connection's DBusRemoveWatchFunction if available.
<p>
It's an error to call this function on a watch that was not previously added. Connection lock should be held when calling this.<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> </td><td>the connection. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>watch</em> </td><td>the watch to remove. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l00720">720</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-watch_8c-source.html#l00384">_dbus_watch_list_remove_watch()</a>, <a class="el" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>, and <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.
</div>
</div><p>
<a class="anchor" name="g2974eb1c261305fafc635e14fc575d03"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_send_and_unlock" ref="g2974eb1c261305fafc635e14fc575d03" args="(DBusConnection *connection, DBusMessage *message, dbus_uint32_t *client_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_connection_send_and_unlock </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusMessage.html">DBusMessage</a> * </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> * </td>
<td class="paramname"> <em>client_serial</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Like <a class="el" href="group__DBusConnection.html#g579fe70c804800df3786e50319521970">dbus_connection_send()</a>, but assumes the connection is already locked on function entry, and unlocks before returning.
<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> </td><td>the connection </td></tr>
<tr><td valign="top"></td><td valign="top"><em>message</em> </td><td>the message to send </td></tr>
<tr><td valign="top"></td><td valign="top"><em>client_serial</em> </td><td>return location for client serial of sent message </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a> on out-of-memory </dd></dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l01969">1969</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.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#l00055">CONNECTION_UNLOCK</a>, <a class="el" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>.
<p>
Referenced by <a class="el" href="dbus-connection_8c-source.html#l03046">dbus_connection_send()</a>.
</div>
</div><p>
<a class="anchor" name="g165dcfd8b995ff0edd19aebcf3e1a61a"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_toggle_timeout_unlocked" ref="g165dcfd8b995ff0edd19aebcf3e1a61a" args="(DBusConnection *connection, DBusTimeout *timeout, dbus_bool_t enabled)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void _dbus_connection_toggle_timeout_unlocked </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusTimeout.html">DBusTimeout</a> * </td>
<td class="paramname"> <em>timeout</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> </td>
<td class="paramname"> <em>enabled</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Toggles a timeout and notifies app via connection's DBusTimeoutToggledFunction if available.
<p>
It's an error to call this function on a timeout that was not previously added. Connection lock should be held when calling this.<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> </td><td>the connection. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>timeout</em> </td><td>the timeout to toggle. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>enabled</em> </td><td>whether to enable or disable </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l00861">861</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-timeout_8c-source.html#l00361">_dbus_timeout_list_toggle_timeout()</a>, and <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.
</div>
</div><p>
<a class="anchor" name="g6c00e2eaf225b154760976af5688d250"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_toggle_watch_unlocked" ref="g6c00e2eaf225b154760976af5688d250" args="(DBusConnection *connection, DBusWatch *watch, dbus_bool_t enabled)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void _dbus_connection_toggle_watch_unlocked </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusWatch.html">DBusWatch</a> * </td>
<td class="paramname"> <em>watch</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> </td>
<td class="paramname"> <em>enabled</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Toggles a watch and notifies app via connection's DBusWatchToggledFunction if available.
<p>
It's an error to call this function on a watch that was not previously added. Connection lock should be held when calling this.<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> </td><td>the connection. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>watch</em> </td><td>the watch to toggle. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>enabled</em> </td><td>whether to enable or disable </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l00740">740</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00109">_dbus_assert</a>, <a class="el" href="dbus-watch_8c-source.html#l00411">_dbus_watch_list_toggle_watch()</a>, and <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.
</div>
</div><p>
<a class="anchor" name="g3db10d48ec16e485d5a638aacebd4ad2"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_unlock" ref="g3db10d48ec16e485d5a638aacebd4ad2" args="(DBusConnection *connection)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void _dbus_connection_unlock </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Releases the connection lock.
<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> </td><td>the connection. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l00364">364</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-pending-call_8c-source.html#l00055">CONNECTION_UNLOCK</a>.
<p>
Referenced by <a class="el" href="dbus-object-tree_8c-source.html#l00731">_dbus_object_tree_dispatch_and_unlock()</a>, <a class="el" href="dbus-object-tree_8c-source.html#l01022">_dbus_object_tree_list_registered_and_unlock()</a>, and <a class="el" href="dbus-object-tree_8c-source.html#l00428">_dbus_object_tree_unregister_and_unlock()</a>.
</div>
</div><p>
<a class="anchor" name="g9ffbd9aa4f07cb30d92887e956a9fd43"></a><!-- doxytag: member="dbus-connection.c::_dbus_connection_unref_unlocked" ref="g9ffbd9aa4f07cb30d92887e956a9fd43" args="(DBusConnection *connection)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void _dbus_connection_unref_unlocked </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Decrements the reference count of a <a class="el" href="structDBusConnection.html">DBusConnection</a>.
<p>
Requires that the caller already holds the connection lock.<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> </td><td>the connection. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l01350">1350</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00109">_dbus_assert</a>, <a class="el" href="dbus-sysdeps-unix_8c-source.html#l01792">_dbus_atomic_dec()</a>, <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-connection_8c-source.html#l00233">DBusConnection::refcount</a>, and <a class="el" href="dbus-sysdeps_8h-source.html#l00198">DBusAtomic::value</a>.
<p>
Referenced by <a class="el" href="dbus-transport_8c-source.html#l00668">_dbus_transport_get_is_authenticated()</a>.
</div>
</div><p>
<a class="anchor" name="g2210bb5734c1a04d0d654b026f27d94e"></a><!-- doxytag: member="dbus-connection.c::dbus_connection_has_messages_to_send" ref="g2210bb5734c1a04d0d654b026f27d94e" args="(DBusConnection *connection)" -->
<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_connection_has_messages_to_send </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusConnection.html">DBusConnection</a> * </td>
<td class="paramname"> <em>connection</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Checks whether there are messages in the outgoing message queue.
<p>
Use <a class="el" href="group__DBusConnection.html#g93aed4ba4a2a22d9bdc63a5732dd41dd">dbus_connection_flush()</a> to block until all outgoing messages have been written to the underlying transport (such as a socket).<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> </td><td>the connection. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a> if the outgoing queue is non-empty. </dd></dl>
<p>
Definition at line <a class="el" href="dbus-connection_8c-source.html#l00548">548</a> of file <a class="el" href="dbus-connection_8c-source.html">dbus-connection.c</a>.
<p>
References <a class="el" href="dbus-connection_8c-source.html#l00532">_dbus_connection_has_messages_to_send_unlocked()</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>, <a class="el" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>, and <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 14 22:26:13 2009 for D-Bus by
<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>