|
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 : |
<!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: Message bus APIs</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>Message bus APIs<br>
<small>
[<a class="el" href="group__DBus.html">D-Bus low-level public API</a>]</small>
</h1>Functions for communicating with the message bus.
<a href="#_details">More...</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></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="structDBusConnection.html">DBusConnection</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusBus.html#g1d29aa7e5337a792a40d91aba81f2f0c">dbus_bus_get</a> (<a class="el" href="group__DBusShared.html#g980320deb96476bee7555edcdebc3528">DBusBusType</a> type, <a class="el" href="structDBusError.html">DBusError</a> *error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Connects to a bus daemon and registers the client with it. <a href="#g1d29aa7e5337a792a40d91aba81f2f0c"></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__DBusBus.html#gfc938ab933f260763e93e1e8feea31f0">dbus_bus_get_private</a> (<a class="el" href="group__DBusShared.html#g980320deb96476bee7555edcdebc3528">DBusBusType</a> type, <a class="el" href="structDBusError.html">DBusError</a> *error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Connects to a bus daemon and registers the client with it as with <a class="el" href="group__DBusBus.html#g12ee703b8342cb7313bb1f9de4457a42">dbus_bus_register()</a>. <a href="#gfc938ab933f260763e93e1e8feea31f0"></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__DBusBus.html#g12ee703b8342cb7313bb1f9de4457a42">dbus_bus_register</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, <a class="el" href="structDBusError.html">DBusError</a> *error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Registers a connection with the bus. <a href="#g12ee703b8342cb7313bb1f9de4457a42"></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__DBusBus.html#gdabd7b8bdbe1c17765b8b117ab0c90ca">dbus_bus_set_unique_name</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, const char *unique_name)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the unique name of the connection, as assigned by the message bus. <a href="#gdabd7b8bdbe1c17765b8b117ab0c90ca"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusBus.html#g96e47216f5bd1dac22d18e05653bcedc">dbus_bus_get_unique_name</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the unique name of the connection as assigned by the message bus. <a href="#g96e47216f5bd1dac22d18e05653bcedc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusBus.html#g3233d29e4495f8bffffe360581e330ec">dbus_bus_get_unix_user</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, const char *name, <a class="el" href="structDBusError.html">DBusError</a> *error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Asks the bus to return the UID the named connection authenticated as, if any. <a href="#g3233d29e4495f8bffffe360581e330ec"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusBus.html#gf85a162b35ea9be7f00a8dd24e3a2ee4">dbus_bus_get_id</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, <a class="el" href="structDBusError.html">DBusError</a> *error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Asks the bus to return its globally unique ID, as described in the D-Bus specification. <a href="#gf85a162b35ea9be7f00a8dd24e3a2ee4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusBus.html#gecebc2e12d4bac3602948da32ecc35cd">dbus_bus_request_name</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, const char *name, unsigned int flags, <a class="el" href="structDBusError.html">DBusError</a> *error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Asks the bus to assign the given name to this connection by invoking the RequestName method on the bus. <a href="#gecebc2e12d4bac3602948da32ecc35cd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusBus.html#g1491574f9ae51697dd85f57f48d98128">dbus_bus_release_name</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, const char *name, <a class="el" href="structDBusError.html">DBusError</a> *error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Asks the bus to unassign the given name from this connection by invoking the ReleaseName method on the bus. <a href="#g1491574f9ae51697dd85f57f48d98128"></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__DBusBus.html#g6e0f62c7b7608c5ab8d4a91904845693">dbus_bus_name_has_owner</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, const char *name, <a class="el" href="structDBusError.html">DBusError</a> *error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Asks the bus whether a certain name has an owner. <a href="#g6e0f62c7b7608c5ab8d4a91904845693"></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__DBusBus.html#g10b11a2c5437e8c4a052f5e09c311195">dbus_bus_start_service_by_name</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, const char *name, <a class="el" href="group__DBusTypes.html#gf513803b030613a669cc7ef199f90a8b">dbus_uint32_t</a> flags, <a class="el" href="group__DBusTypes.html#gf513803b030613a669cc7ef199f90a8b">dbus_uint32_t</a> *result, <a class="el" href="structDBusError.html">DBusError</a> *error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Starts a service that will request ownership of the given name. <a href="#g10b11a2c5437e8c4a052f5e09c311195"></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__DBusBus.html#g41973ba3a5450be798cdbba345b33fb4">dbus_bus_add_match</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, const char *rule, <a class="el" href="structDBusError.html">DBusError</a> *error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a match rule to match messages going through the message bus. <a href="#g41973ba3a5450be798cdbba345b33fb4"></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__DBusBus.html#gd1949f0d733bc02b9f909fdb64d96ae6">dbus_bus_remove_match</a> (<a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, const char *rule, <a class="el" href="structDBusError.html">DBusError</a> *error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes a previously-added match rule "by value" (the most recently-added identical rule gets removed). <a href="#gd1949f0d733bc02b9f909fdb64d96ae6"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Functions for communicating with the message bus.
<p>
<a class="el" href="group__DBusBus.html#g1d29aa7e5337a792a40d91aba81f2f0c">dbus_bus_get()</a> allows all modules and libraries in a given process to share the same connection to the bus daemon by storing the connection globally.<p>
All other functions in this module are just convenience functions; most of them invoke methods on the bus daemon, by sending method call messages to <a class="el" href="group__DBusShared.html#g9e017e829e575bdc5c554fd4d07d7355">DBUS_SERVICE_DBUS</a>. These convenience functions often make blocking method calls. If you don't want to block, you can send the method call messages manually in the same way you would any other method call message.<p>
This module is the only one in libdbus that's specific to communicating with the message bus daemon. The rest of the API can also be used for connecting to another application directly.<p>
<dl compact><dt><b><a class="el" href="todo.html#_todo000006">Todo:</a></b></dt><dd>right now the default address of the system bus is hardcoded, so if you change it in the global config file suddenly you have to set DBUS_SYSTEM_BUS_ADDRESS env variable. Might be nice if the client lib somehow read the config file, or if the bus on startup somehow wrote out its address to a well-known spot, but might also not be worth it. </dd></dl>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="g41973ba3a5450be798cdbba345b33fb4"></a><!-- doxytag: member="dbus-bus.c::dbus_bus_add_match" ref="g41973ba3a5450be798cdbba345b33fb4" args="(DBusConnection *connection, const char *rule, DBusError *error)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void dbus_bus_add_match </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">const char * </td>
<td class="paramname"> <em>rule</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusError.html">DBusError</a> * </td>
<td class="paramname"> <em>error</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 match rule to match messages going through the message bus.
<p>
The "rule" argument is the string form of a match rule.<p>
If you pass <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> for the error, this function will not block; the match thus won't be added until you flush the connection, and if there's an error adding the match (only possible error is lack of resources in the bus), you won't find out about it.<p>
If you pass non-<a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> for the error this function will block until it gets a reply.<p>
Normal API conventions would have the function return a boolean value indicating whether the error was set, but that would require blocking always to determine the return value.<p>
The AddMatch method is fully documented in the D-Bus specification. For quick reference, the format of the match rules is discussed here, but the specification is the canonical version of this information.<p>
Rules are specified as a string of comma separated key/value pairs. An example is "type='signal',sender='org.freedesktop.DBus', interface='org.freedesktop.DBus',member='Foo', path='/bar/foo',destination=':452345.34'"<p>
Possible keys you can match on are type, sender, interface, member, path, destination and numbered keys to match message args (keys are 'arg0', 'arg1', etc.). Omitting a key from the rule indicates a wildcard match. For instance omitting the member from a match rule but adding a sender would let all messages from that sender through regardless of the member.<p>
Matches are inclusive not exclusive so as long as one rule matches the message will get through. It is important to note this because every time a message is received the application will be paged into memory to process it. This can cause performance problems such as draining batteries on embedded platforms.<p>
If you match message args ('arg0', 'arg1', and so forth) only string arguments will match. That is, arg0='5' means match the string "5" not the integer 5.<p>
Currently there is no way to match against non-string arguments.<p>
Matching on interface is tricky because method call messages only optionally specify the interface. If a message omits the interface, then it will NOT match if the rule specifies an interface name. This means match rules on method calls should not usually give an interface.<p>
However, signal messages are required to include the interface so when matching signals usually you should specify the interface in the match rule.<p>
For security reasons, you can match arguments only up to <a class="el" href="group__DBusProtocol.html#gefeb44421a66e8184d70aae52918b101">DBUS_MAXIMUM_MATCH_RULE_ARG_NUMBER</a>.<p>
Match rules have a maximum length of <a class="el" href="group__DBusProtocol.html#gca161f9a67ce5adf617476c1956d4ee1">DBUS_MAXIMUM_MATCH_RULE_LENGTH</a> bytes.<p>
Both of these maximums are much higher than you're likely to need, they only exist because the D-Bus bus daemon has fixed limits on all resource usage.<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>connection to the message bus </td></tr>
<tr><td valign="top"></td><td valign="top"><em>rule</em> </td><td>textual form of match rule </td></tr>
<tr><td valign="top"></td><td valign="top"><em>error</em> </td><td>location to store any errors </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-bus_8c-source.html#l01452">1452</a> of file <a class="el" href="dbus-bus_8c-source.html">dbus-bus.c</a>.
<p>
References <a class="el" href="dbus-shared_8h-source.html#l00088">DBUS_INTERFACE_DBUS</a>, <a class="el" href="dbus-message_8c-source.html#l01482">dbus_message_append_args()</a>, <a class="el" href="dbus-message_8c-source.html#l01063">dbus_message_new_method_call()</a>, <a class="el" href="dbus-message_8c-source.html#l01387">dbus_message_unref()</a>, <a class="el" href="dbus-shared_8h-source.html#l00080">DBUS_PATH_DBUS</a>, <a class="el" href="dbus-shared_8h-source.html#l00076">DBUS_SERVICE_DBUS</a>, <a class="el" href="dbus-protocol_8h-source.html#l00060">DBUS_TYPE_INVALID</a>, <a class="el" href="dbus-protocol_8h-source.html#l00102">DBUS_TYPE_STRING</a>, and <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.
</div>
</div><p>
<a class="anchor" name="g1d29aa7e5337a792a40d91aba81f2f0c"></a><!-- doxytag: member="dbus-bus.c::dbus_bus_get" ref="g1d29aa7e5337a792a40d91aba81f2f0c" args="(DBusBusType type, DBusError *error)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structDBusConnection.html">DBusConnection</a> * dbus_bus_get </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__DBusShared.html#g980320deb96476bee7555edcdebc3528">DBusBusType</a> </td>
<td class="paramname"> <em>type</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusError.html">DBusError</a> * </td>
<td class="paramname"> <em>error</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>
Connects to a bus daemon and registers the client with it.
<p>
If a connection to the bus already exists, then that connection is returned. The caller of this function owns a reference to the bus.<p>
The caller may NOT call <a class="el" href="group__DBusConnection.html#ge130c33da29477897d362ab89f068191">dbus_connection_close()</a> on this connection; see <a class="el" href="group__DBusConnection.html#gc6bc8680215ed6e3b526903736f4edde">dbus_connection_open()</a> and <a class="el" href="group__DBusConnection.html#ge130c33da29477897d362ab89f068191">dbus_connection_close()</a> for details on that.<p>
If this function obtains a new connection object never before returned from <a class="el" href="group__DBusBus.html#g1d29aa7e5337a792a40d91aba81f2f0c">dbus_bus_get()</a>, it will call <a class="el" href="group__DBusConnection.html#g0d3f6cc49cf2d9135f44e4490688ebe5">dbus_connection_set_exit_on_disconnect()</a>, so the application will exit if the connection closes. You can undo this by calling <a class="el" href="group__DBusConnection.html#g0d3f6cc49cf2d9135f44e4490688ebe5">dbus_connection_set_exit_on_disconnect()</a> yourself after you get the connection.<p>
<a class="el" href="group__DBusBus.html#g1d29aa7e5337a792a40d91aba81f2f0c">dbus_bus_get()</a> calls <a class="el" href="group__DBusBus.html#g12ee703b8342cb7313bb1f9de4457a42">dbus_bus_register()</a> for you.<p>
If returning a newly-created connection, this function will block until authentication and bus registration are complete.<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>type</em> </td><td>bus type </td></tr>
<tr><td valign="top"></td><td valign="top"><em>error</em> </td><td>address where an error can be returned. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a <a class="el" href="structDBusConnection.html">DBusConnection</a> with new ref </dd></dl>
<p>
Definition at line <a class="el" href="dbus-bus_8c-source.html#l00512">512</a> of file <a class="el" href="dbus-bus_8c-source.html">dbus-bus.c</a>.
<p>
References <a class="el" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>.
</div>
</div><p>
<a class="anchor" name="gf85a162b35ea9be7f00a8dd24e3a2ee4"></a><!-- doxytag: member="dbus-bus.c::dbus_bus_get_id" ref="gf85a162b35ea9be7f00a8dd24e3a2ee4" args="(DBusConnection *connection, DBusError *error)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char * dbus_bus_get_id </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="structDBusError.html">DBusError</a> * </td>
<td class="paramname"> <em>error</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>
Asks the bus to return its globally unique ID, as described in the D-Bus specification.
<p>
For the session bus, this is useful as a way to uniquely identify each user session. For the system bus, probably the bus ID is not useful; instead, use the machine ID since it's accessible without necessarily connecting to the bus and may be persistent beyond a single bus instance (across reboots for example). See <a class="el" href="group__DBusMisc.html#g67af2ecc0bacf9a35818d2f881233088">dbus_get_local_machine_id()</a>.<p>
In addition to an ID for each bus and an ID for each machine, there is an ID for each address that the bus is listening on; that can be retrieved with <a class="el" href="group__DBusConnection.html#g6fed11dcbcd1c9a6f053b04ddafb402c">dbus_connection_get_server_id()</a>, though it is probably not very useful.<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>error</em> </td><td>location to store the error </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the bus ID or <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> if error is set </dd></dl>
<p>
Definition at line <a class="el" href="dbus-bus_8c-source.html#l00887">887</a> of file <a class="el" href="dbus-bus_8c-source.html">dbus-bus.c</a>.
<p>
References <a class="el" href="dbus-internals_8c-source.html#l00396">_dbus_strdup()</a>, <a class="el" href="dbus-connection_8c-source.html#l03243">dbus_connection_send_with_reply_and_block()</a>, <a class="el" href="dbus-shared_8h-source.html#l00088">DBUS_INTERFACE_DBUS</a>, <a class="el" href="dbus-message_8c-source.html#l01658">dbus_message_get_args()</a>, <a class="el" href="dbus-message_8c-source.html#l01063">dbus_message_new_method_call()</a>, <a class="el" href="dbus-message_8c-source.html#l01387">dbus_message_unref()</a>, <a class="el" href="dbus-shared_8h-source.html#l00080">DBUS_PATH_DBUS</a>, <a class="el" href="dbus-shared_8h-source.html#l00076">DBUS_SERVICE_DBUS</a>, <a class="el" href="dbus-message_8c-source.html#l03255">dbus_set_error_from_message()</a>, <a class="el" href="dbus-protocol_8h-source.html#l00060">DBUS_TYPE_INVALID</a>, <a class="el" href="dbus-protocol_8h-source.html#l00102">DBUS_TYPE_STRING</a>, and <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.
</div>
</div><p>
<a class="anchor" name="gfc938ab933f260763e93e1e8feea31f0"></a><!-- doxytag: member="dbus-bus.c::dbus_bus_get_private" ref="gfc938ab933f260763e93e1e8feea31f0" args="(DBusBusType type, DBusError *error)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structDBusConnection.html">DBusConnection</a> * dbus_bus_get_private </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__DBusShared.html#g980320deb96476bee7555edcdebc3528">DBusBusType</a> </td>
<td class="paramname"> <em>type</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusError.html">DBusError</a> * </td>
<td class="paramname"> <em>error</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>
Connects to a bus daemon and registers the client with it as with <a class="el" href="group__DBusBus.html#g12ee703b8342cb7313bb1f9de4457a42">dbus_bus_register()</a>.
<p>
Unlike <a class="el" href="group__DBusBus.html#g1d29aa7e5337a792a40d91aba81f2f0c">dbus_bus_get()</a>, always creates a new connection. This connection will not be saved or recycled by libdbus. Caller owns a reference to the bus and must either close it or know it to be closed prior to releasing this reference.<p>
See <a class="el" href="group__DBusConnection.html#gce3add3e44f74a7f60ee2b102264c48d">dbus_connection_open_private()</a> for more details on when to close and unref this connection.<p>
This function calls <a class="el" href="group__DBusConnection.html#g0d3f6cc49cf2d9135f44e4490688ebe5">dbus_connection_set_exit_on_disconnect()</a> on the new connection, so the application will exit if the connection closes. You can undo this by calling <a class="el" href="group__DBusConnection.html#g0d3f6cc49cf2d9135f44e4490688ebe5">dbus_connection_set_exit_on_disconnect()</a> yourself after you get the connection.<p>
<a class="el" href="group__DBusBus.html#gfc938ab933f260763e93e1e8feea31f0">dbus_bus_get_private()</a> calls <a class="el" href="group__DBusBus.html#g12ee703b8342cb7313bb1f9de4457a42">dbus_bus_register()</a> for you.<p>
This function will block until authentication and bus registration are complete.<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>type</em> </td><td>bus type </td></tr>
<tr><td valign="top"></td><td valign="top"><em>error</em> </td><td>address where an error can be returned. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a <a class="el" href="structDBusConnection.html">DBusConnection</a> with new ref </dd></dl>
<p>
Definition at line <a class="el" href="dbus-bus_8c-source.html#l00544">544</a> of file <a class="el" href="dbus-bus_8c-source.html">dbus-bus.c</a>.
<p>
References <a class="el" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>.
</div>
</div><p>
<a class="anchor" name="g96e47216f5bd1dac22d18e05653bcedc"></a><!-- doxytag: member="dbus-bus.c::dbus_bus_get_unique_name" ref="g96e47216f5bd1dac22d18e05653bcedc" args="(DBusConnection *connection)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const char * dbus_bus_get_unique_name </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 unique name of the connection as assigned by the message bus.
<p>
Only possible after the connection has been registered with the message bus. All connections returned by <a class="el" href="group__DBusBus.html#g1d29aa7e5337a792a40d91aba81f2f0c">dbus_bus_get()</a> or <a class="el" href="group__DBusBus.html#gfc938ab933f260763e93e1e8feea31f0">dbus_bus_get_private()</a> have been successfully registered.<p>
The name remains valid until the connection is freed, and should not be freed by the caller.<p>
Other than <a class="el" href="group__DBusBus.html#g1d29aa7e5337a792a40d91aba81f2f0c">dbus_bus_get()</a>, there are two ways to set the unique name; one is <a class="el" href="group__DBusBus.html#g12ee703b8342cb7313bb1f9de4457a42">dbus_bus_register()</a>, the other is <a class="el" href="group__DBusBus.html#gdabd7b8bdbe1c17765b8b117ab0c90ca">dbus_bus_set_unique_name()</a>. You are responsible for calling <a class="el" href="group__DBusBus.html#gdabd7b8bdbe1c17765b8b117ab0c90ca">dbus_bus_set_unique_name()</a> if you register by hand instead of using <a class="el" href="group__DBusBus.html#g12ee703b8342cb7313bb1f9de4457a42">dbus_bus_register()</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>connection</em> </td><td>the connection </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the unique name or <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> on error </dd></dl>
<p>
Definition at line <a class="el" href="dbus-bus_8c-source.html#l00760">760</a> of file <a class="el" href="dbus-bus_8c-source.html">dbus-bus.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00287">_DBUS_LOCK</a>, <a class="el" href="dbus-internals_8h-source.html#l00288">_DBUS_UNLOCK</a>, <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-bus_8c-source.html#l00078">BusData::unique_name</a>.
</div>
</div><p>
<a class="anchor" name="g3233d29e4495f8bffffe360581e330ec"></a><!-- doxytag: member="dbus-bus.c::dbus_bus_get_unix_user" ref="g3233d29e4495f8bffffe360581e330ec" args="(DBusConnection *connection, const char *name, DBusError *error)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned long dbus_bus_get_unix_user </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">const char * </td>
<td class="paramname"> <em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusError.html">DBusError</a> * </td>
<td class="paramname"> <em>error</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>
Asks the bus to return the UID the named connection authenticated as, if any.
<p>
Only works on UNIX; only works for connections on the same machine as the bus. If you are not on the same machine as the bus, then calling this is probably a bad idea, since the UID will mean little to your application.<p>
For the system message bus you're guaranteed to be on the same machine since it only listens on a UNIX domain socket (at least, as shipped by default).<p>
This function only works for connections that authenticated as a UNIX user, right now that includes all bus connections, but it's very possible to have connections with no associated UID. So check for errors and do something sensible if they happen.<p>
This function will always return an error on Windows.<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>name</em> </td><td>a name owned by the connection </td></tr>
<tr><td valign="top"></td><td valign="top"><em>error</em> </td><td>location to store the error </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the unix user id, or ((unsigned)-1) if error is set </dd></dl>
<p>
Definition at line <a class="el" href="dbus-bus_8c-source.html#l00804">804</a> of file <a class="el" href="dbus-bus_8c-source.html">dbus-bus.c</a>.
<p>
References <a class="el" href="dbus-connection_8c-source.html#l03243">dbus_connection_send_with_reply_and_block()</a>, <a class="el" href="dbus-shared_8h-source.html#l00088">DBUS_INTERFACE_DBUS</a>, <a class="el" href="dbus-message_8c-source.html#l01482">dbus_message_append_args()</a>, <a class="el" href="dbus-message_8c-source.html#l01658">dbus_message_get_args()</a>, <a class="el" href="dbus-message_8c-source.html#l01063">dbus_message_new_method_call()</a>, <a class="el" href="dbus-message_8c-source.html#l01387">dbus_message_unref()</a>, <a class="el" href="dbus-shared_8h-source.html#l00080">DBUS_PATH_DBUS</a>, <a class="el" href="dbus-shared_8h-source.html#l00076">DBUS_SERVICE_DBUS</a>, <a class="el" href="dbus-message_8c-source.html#l03255">dbus_set_error_from_message()</a>, <a class="el" href="dbus-protocol_8h-source.html#l00060">DBUS_TYPE_INVALID</a>, <a class="el" href="dbus-protocol_8h-source.html#l00102">DBUS_TYPE_STRING</a>, <a class="el" href="dbus-protocol_8h-source.html#l00086">DBUS_TYPE_UINT32</a>, <a class="el" href="dbus-sysdeps_8h-source.html#l00106">DBUS_UID_UNSET</a>, and <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.
</div>
</div><p>
<a class="anchor" name="g6e0f62c7b7608c5ab8d4a91904845693"></a><!-- doxytag: member="dbus-bus.c::dbus_bus_name_has_owner" ref="g6e0f62c7b7608c5ab8d4a91904845693" args="(DBusConnection *connection, const char *name, DBusError *error)" -->
<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_bus_name_has_owner </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">const char * </td>
<td class="paramname"> <em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusError.html">DBusError</a> * </td>
<td class="paramname"> <em>error</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>
Asks the bus whether a certain name has an owner.
<p>
Using this can easily result in a race condition, since an owner can appear or disappear after you call this.<p>
If you want to request a name, just request it; if you want to avoid replacing a current owner, don't specify <a class="el" href="group__DBusShared.html#g0f16ed23be47eb22a37a227a6e39597b">DBUS_NAME_FLAG_REPLACE_EXISTING</a> and you will get an error if there's already an owner.<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>name</em> </td><td>the name </td></tr>
<tr><td valign="top"></td><td valign="top"><em>error</em> </td><td>location to store any errors </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a> if the name exists, <a class="el" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a> if not or on error </dd></dl>
<p>
Definition at line <a class="el" href="dbus-bus_8c-source.html#l01219">1219</a> of file <a class="el" href="dbus-bus_8c-source.html">dbus-bus.c</a>.
<p>
References <a class="el" href="dbus-connection_8c-source.html#l03243">dbus_connection_send_with_reply_and_block()</a>, <a class="el" href="dbus-shared_8h-source.html#l00088">DBUS_INTERFACE_DBUS</a>, <a class="el" href="dbus-message_8c-source.html#l01482">dbus_message_append_args()</a>, <a class="el" href="dbus-message_8c-source.html#l01658">dbus_message_get_args()</a>, <a class="el" href="dbus-message_8c-source.html#l01063">dbus_message_new_method_call()</a>, <a class="el" href="dbus-message_8c-source.html#l01387">dbus_message_unref()</a>, <a class="el" href="dbus-shared_8h-source.html#l00080">DBUS_PATH_DBUS</a>, <a class="el" href="dbus-shared_8h-source.html#l00076">DBUS_SERVICE_DBUS</a>, <a class="el" href="dbus-protocol_8h-source.html#l00070">DBUS_TYPE_BOOLEAN</a>, <a class="el" href="dbus-protocol_8h-source.html#l00060">DBUS_TYPE_INVALID</a>, <a class="el" href="dbus-protocol_8h-source.html#l00102">DBUS_TYPE_STRING</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="g12ee703b8342cb7313bb1f9de4457a42"></a><!-- doxytag: member="dbus-bus.c::dbus_bus_register" ref="g12ee703b8342cb7313bb1f9de4457a42" args="(DBusConnection *connection, DBusError *error)" -->
<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_bus_register </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="structDBusError.html">DBusError</a> * </td>
<td class="paramname"> <em>error</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>
Registers a connection with the bus.
<p>
This must be the first thing an application does when connecting to the message bus. If registration succeeds, the unique name will be set, and can be obtained using <a class="el" href="group__DBusBus.html#g96e47216f5bd1dac22d18e05653bcedc">dbus_bus_get_unique_name()</a>.<p>
This function will block until registration is complete.<p>
If the connection has already registered with the bus (determined by checking whether <a class="el" href="group__DBusBus.html#g96e47216f5bd1dac22d18e05653bcedc">dbus_bus_get_unique_name()</a> returns a non-<a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> value), then this function does nothing.<p>
If you use <a class="el" href="group__DBusBus.html#g1d29aa7e5337a792a40d91aba81f2f0c">dbus_bus_get()</a> or <a class="el" href="group__DBusBus.html#gfc938ab933f260763e93e1e8feea31f0">dbus_bus_get_private()</a> this function will be called for you.<p>
<dl compact><dt><b>Note:</b></dt><dd>Just use <a class="el" href="group__DBusBus.html#g1d29aa7e5337a792a40d91aba81f2f0c">dbus_bus_get()</a> or <a class="el" href="group__DBusBus.html#gfc938ab933f260763e93e1e8feea31f0">dbus_bus_get_private()</a> instead of <a class="el" href="group__DBusBus.html#g12ee703b8342cb7313bb1f9de4457a42">dbus_bus_register()</a> and save yourself some pain. Using <a class="el" href="group__DBusBus.html#g12ee703b8342cb7313bb1f9de4457a42">dbus_bus_register()</a> manually is only useful if you have your own custom message bus not found in <a class="el" href="group__DBusShared.html#g980320deb96476bee7555edcdebc3528">DBusBusType</a>.</dd></dl>
If you open a bus connection with <a class="el" href="group__DBusConnection.html#gc6bc8680215ed6e3b526903736f4edde">dbus_connection_open()</a> or <a class="el" href="group__DBusConnection.html#gce3add3e44f74a7f60ee2b102264c48d">dbus_connection_open_private()</a> you will have to <a class="el" href="group__DBusBus.html#g12ee703b8342cb7313bb1f9de4457a42">dbus_bus_register()</a> yourself, or make the appropriate registration method calls yourself. If you send the method calls yourself, call <a class="el" href="group__DBusBus.html#gdabd7b8bdbe1c17765b8b117ab0c90ca">dbus_bus_set_unique_name()</a> with the unique bus name you get from the bus.<p>
For shared connections (created with <a class="el" href="group__DBusConnection.html#gc6bc8680215ed6e3b526903736f4edde">dbus_connection_open()</a>) in a multithreaded application, you can't really make the registration calls yourself, because you don't know whether some other thread is also registering, and the bus will kick you off if you send two registration messages.<p>
If you use <a class="el" href="group__DBusBus.html#g12ee703b8342cb7313bb1f9de4457a42">dbus_bus_register()</a> however, there is a lock that keeps both apps from registering at the same time.<p>
The rule in a multithreaded app, then, is that <a class="el" href="group__DBusBus.html#g12ee703b8342cb7313bb1f9de4457a42">dbus_bus_register()</a> must be used to register, or you need to have your own locks that all threads in the app will respect.<p>
In a single-threaded application you can register by hand instead of using <a class="el" href="group__DBusBus.html#g12ee703b8342cb7313bb1f9de4457a42">dbus_bus_register()</a>, as long as you check <a class="el" href="group__DBusBus.html#g96e47216f5bd1dac22d18e05653bcedc">dbus_bus_get_unique_name()</a> to see if a unique name has already been stored by another thread before you send the registration messages.<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>error</em> </td><td>place to store errors </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-bus_8c-source.html#l00600">600</a> of file <a class="el" href="dbus-bus_8c-source.html">dbus-bus.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00287">_DBUS_LOCK</a>, <a class="el" href="dbus-internals_8c-source.html#l00396">_dbus_strdup()</a>, <a class="el" href="dbus-internals_8h-source.html#l00288">_DBUS_UNLOCK</a>, <a class="el" href="dbus-connection_8c-source.html#l03243">dbus_connection_send_with_reply_and_block()</a>, <a class="el" href="dbus-shared_8h-source.html#l00088">DBUS_INTERFACE_DBUS</a>, <a class="el" href="dbus-message_8c-source.html#l01658">dbus_message_get_args()</a>, <a class="el" href="dbus-message_8c-source.html#l01063">dbus_message_new_method_call()</a>, <a class="el" href="dbus-message_8c-source.html#l01387">dbus_message_unref()</a>, <a class="el" href="dbus-shared_8h-source.html#l00080">DBUS_PATH_DBUS</a>, <a class="el" href="dbus-shared_8h-source.html#l00076">DBUS_SERVICE_DBUS</a>, <a class="el" href="dbus-message_8c-source.html#l03255">dbus_set_error_from_message()</a>, <a class="el" href="dbus-protocol_8h-source.html#l00060">DBUS_TYPE_INVALID</a>, <a class="el" href="dbus-protocol_8h-source.html#l00102">DBUS_TYPE_STRING</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="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>, and <a class="el" href="dbus-bus_8c-source.html#l00078">BusData::unique_name</a>.
</div>
</div><p>
<a class="anchor" name="g1491574f9ae51697dd85f57f48d98128"></a><!-- doxytag: member="dbus-bus.c::dbus_bus_release_name" ref="g1491574f9ae51697dd85f57f48d98128" args="(DBusConnection *connection, const char *name, DBusError *error)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int dbus_bus_release_name </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">const char * </td>
<td class="paramname"> <em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusError.html">DBusError</a> * </td>
<td class="paramname"> <em>error</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>
Asks the bus to unassign the given name from this connection by invoking the ReleaseName method on the bus.
<p>
The "ReleaseName" method is canonically documented in the D-Bus specification.<p>
Possible results are: <a class="el" href="group__DBusShared.html#gf51666b3db57bfc94f0fef7604ba35e2">DBUS_RELEASE_NAME_REPLY_RELEASED</a> which means you owned the name or were in the queue to own it, and and now you don't own it and aren't in the queue. <a class="el" href="group__DBusShared.html#g994df340fa233202857ea9358b935aac">DBUS_RELEASE_NAME_REPLY_NOT_OWNER</a> which means someone else owns the name so you can't release it. <a class="el" href="group__DBusShared.html#g2aebb664a3c1ea2c08740139f44c386a">DBUS_RELEASE_NAME_REPLY_NON_EXISTENT</a> which means nobody owned the name.<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>name</em> </td><td>the name to remove </td></tr>
<tr><td valign="top"></td><td valign="top"><em>error</em> </td><td>location to store the error </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a result code, -1 if error is set </dd></dl>
<p>
Definition at line <a class="el" href="dbus-bus_8c-source.html#l01137">1137</a> of file <a class="el" href="dbus-bus_8c-source.html">dbus-bus.c</a>.
<p>
References <a class="el" href="dbus-connection_8c-source.html#l03243">dbus_connection_send_with_reply_and_block()</a>, <a class="el" href="dbus-shared_8h-source.html#l00088">DBUS_INTERFACE_DBUS</a>, <a class="el" href="dbus-message_8c-source.html#l01482">dbus_message_append_args()</a>, <a class="el" href="dbus-message_8c-source.html#l01658">dbus_message_get_args()</a>, <a class="el" href="dbus-message_8c-source.html#l01063">dbus_message_new_method_call()</a>, <a class="el" href="dbus-message_8c-source.html#l01387">dbus_message_unref()</a>, <a class="el" href="dbus-shared_8h-source.html#l00080">DBUS_PATH_DBUS</a>, <a class="el" href="dbus-shared_8h-source.html#l00076">DBUS_SERVICE_DBUS</a>, <a class="el" href="dbus-message_8c-source.html#l03255">dbus_set_error_from_message()</a>, <a class="el" href="dbus-protocol_8h-source.html#l00060">DBUS_TYPE_INVALID</a>, <a class="el" href="dbus-protocol_8h-source.html#l00102">DBUS_TYPE_STRING</a>, <a class="el" href="dbus-protocol_8h-source.html#l00086">DBUS_TYPE_UINT32</a>, and <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.
</div>
</div><p>
<a class="anchor" name="gd1949f0d733bc02b9f909fdb64d96ae6"></a><!-- doxytag: member="dbus-bus.c::dbus_bus_remove_match" ref="gd1949f0d733bc02b9f909fdb64d96ae6" args="(DBusConnection *connection, const char *rule, DBusError *error)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void dbus_bus_remove_match </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">const char * </td>
<td class="paramname"> <em>rule</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusError.html">DBusError</a> * </td>
<td class="paramname"> <em>error</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 previously-added match rule "by value" (the most recently-added identical rule gets removed).
<p>
The "rule" argument is the string form of a match rule.<p>
The bus compares match rules semantically, not textually, so whitespace and ordering don't have to be identical to the rule you passed to <a class="el" href="group__DBusBus.html#g41973ba3a5450be798cdbba345b33fb4">dbus_bus_add_match()</a>.<p>
If you pass <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> for the error, this function will not block; otherwise it will. See detailed explanation in docs for <a class="el" href="group__DBusBus.html#g41973ba3a5450be798cdbba345b33fb4">dbus_bus_add_match()</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>connection</em> </td><td>connection to the message bus </td></tr>
<tr><td valign="top"></td><td valign="top"><em>rule</em> </td><td>textual form of match rule </td></tr>
<tr><td valign="top"></td><td valign="top"><em>error</em> </td><td>location to store any errors </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-bus_8c-source.html#l01502">1502</a> of file <a class="el" href="dbus-bus_8c-source.html">dbus-bus.c</a>.
<p>
References <a class="el" href="dbus-shared_8h-source.html#l00088">DBUS_INTERFACE_DBUS</a>, <a class="el" href="dbus-message_8c-source.html#l01482">dbus_message_append_args()</a>, <a class="el" href="dbus-message_8c-source.html#l01063">dbus_message_new_method_call()</a>, <a class="el" href="dbus-message_8c-source.html#l01387">dbus_message_unref()</a>, <a class="el" href="dbus-shared_8h-source.html#l00080">DBUS_PATH_DBUS</a>, <a class="el" href="dbus-shared_8h-source.html#l00076">DBUS_SERVICE_DBUS</a>, <a class="el" href="dbus-protocol_8h-source.html#l00060">DBUS_TYPE_INVALID</a>, <a class="el" href="dbus-protocol_8h-source.html#l00102">DBUS_TYPE_STRING</a>, and <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.
</div>
</div><p>
<a class="anchor" name="gecebc2e12d4bac3602948da32ecc35cd"></a><!-- doxytag: member="dbus-bus.c::dbus_bus_request_name" ref="gecebc2e12d4bac3602948da32ecc35cd" args="(DBusConnection *connection, const char *name, unsigned int flags, DBusError *error)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int dbus_bus_request_name </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">const char * </td>
<td class="paramname"> <em>name</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"><a class="el" href="structDBusError.html">DBusError</a> * </td>
<td class="paramname"> <em>error</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>
Asks the bus to assign the given name to this connection by invoking the RequestName method on the bus.
<p>
This method is fully documented in the D-Bus specification. For quick reference, the flags and result codes are discussed here, but the specification is the canonical version of this information.<p>
First you should know that for each bus name, the bus stores a queue of connections that would like to own it. Only one owns it at a time - called the primary owner. If the primary owner releases the name or disconnects, then the next owner in the queue atomically takes over.<p>
So for example if you have an application org.freedesktop.TextEditor and multiple instances of it can be run, you can have all of them sitting in the queue. The first one to start up will receive messages sent to org.freedesktop.TextEditor, but if that one exits another will become the primary owner and receive messages.<p>
The queue means you don't need to manually watch for the current owner to disappear and then request the name again.<p>
When requesting a name, you can specify several flags.<p>
<a class="el" href="group__DBusShared.html#g40b7a263caf8d6e39b39a8c7350a084f">DBUS_NAME_FLAG_ALLOW_REPLACEMENT</a> and <a class="el" href="group__DBusShared.html#g3c18c35e4c2dfbe9a0a5be47f4b4b6e9">DBUS_NAME_FLAG_DO_NOT_QUEUE</a> are properties stored by the bus for this connection with respect to each requested bus name. These properties are stored even if the connection is queued and does not become the primary owner. You can update these flags by calling RequestName again (even if you already own the name).<p>
<a class="el" href="group__DBusShared.html#g40b7a263caf8d6e39b39a8c7350a084f">DBUS_NAME_FLAG_ALLOW_REPLACEMENT</a> means that another requestor of the name can take it away from you by specifying <a class="el" href="group__DBusShared.html#g0f16ed23be47eb22a37a227a6e39597b">DBUS_NAME_FLAG_REPLACE_EXISTING</a>.<p>
<a class="el" href="group__DBusShared.html#g3c18c35e4c2dfbe9a0a5be47f4b4b6e9">DBUS_NAME_FLAG_DO_NOT_QUEUE</a> means that if you aren't the primary owner, you don't want to be queued up - you only care about being the primary owner.<p>
Unlike the other two flags, <a class="el" href="group__DBusShared.html#g0f16ed23be47eb22a37a227a6e39597b">DBUS_NAME_FLAG_REPLACE_EXISTING</a> is a property of the individual RequestName call, i.e. the bus does not persistently associate it with the connection-name pair. If a RequestName call includes the <a class="el" href="group__DBusShared.html#g0f16ed23be47eb22a37a227a6e39597b">DBUS_NAME_FLAG_REPLACE_EXISTING</a> flag, and the current primary owner has <a class="el" href="group__DBusShared.html#g40b7a263caf8d6e39b39a8c7350a084f">DBUS_NAME_FLAG_ALLOW_REPLACEMENT</a> set, then the current primary owner will be kicked off.<p>
If no flags are given, an application will receive the requested name only if the name is currently unowned; and it will NOT give up the name if another application asks to take it over using <a class="el" href="group__DBusShared.html#g0f16ed23be47eb22a37a227a6e39597b">DBUS_NAME_FLAG_REPLACE_EXISTING</a>.<p>
This function returns a result code. The possible result codes are as follows.<p>
<a class="el" href="group__DBusShared.html#g37a9bc7c6eb11d212bf8d5e5ff3b50f9">DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER</a> means that the name had no existing owner, and the caller is now the primary owner; or that the name had an owner, and the caller specified <a class="el" href="group__DBusShared.html#g0f16ed23be47eb22a37a227a6e39597b">DBUS_NAME_FLAG_REPLACE_EXISTING</a>, and the current owner specified <a class="el" href="group__DBusShared.html#g40b7a263caf8d6e39b39a8c7350a084f">DBUS_NAME_FLAG_ALLOW_REPLACEMENT</a>.<p>
<a class="el" href="group__DBusShared.html#gee62d7003ea4ed8c1957e9a072c7b16a">DBUS_REQUEST_NAME_REPLY_IN_QUEUE</a> happens only if the caller does NOT specify <a class="el" href="group__DBusShared.html#g3c18c35e4c2dfbe9a0a5be47f4b4b6e9">DBUS_NAME_FLAG_DO_NOT_QUEUE</a> and either the current owner did NOT specify <a class="el" href="group__DBusShared.html#g40b7a263caf8d6e39b39a8c7350a084f">DBUS_NAME_FLAG_ALLOW_REPLACEMENT</a> or the caller did NOT specify <a class="el" href="group__DBusShared.html#g0f16ed23be47eb22a37a227a6e39597b">DBUS_NAME_FLAG_REPLACE_EXISTING</a>. In this case the caller ends up in a queue to own the name after the current owner gives it up.<p>
<a class="el" href="group__DBusShared.html#gc5e749f4dfcc3adcdb714ece3c1be1c7">DBUS_REQUEST_NAME_REPLY_EXISTS</a> happens if the name has an owner already and the caller specifies <a class="el" href="group__DBusShared.html#g3c18c35e4c2dfbe9a0a5be47f4b4b6e9">DBUS_NAME_FLAG_DO_NOT_QUEUE</a> and either the current owner has NOT specified <a class="el" href="group__DBusShared.html#g40b7a263caf8d6e39b39a8c7350a084f">DBUS_NAME_FLAG_ALLOW_REPLACEMENT</a> or the caller did NOT specify <a class="el" href="group__DBusShared.html#g0f16ed23be47eb22a37a227a6e39597b">DBUS_NAME_FLAG_REPLACE_EXISTING</a>.<p>
<a class="el" href="group__DBusShared.html#gefd5513d0d448f6c106202ebde26f969">DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER</a> happens if an application requests a name it already owns. (Re-requesting a name is useful if you want to change the <a class="el" href="group__DBusShared.html#g40b7a263caf8d6e39b39a8c7350a084f">DBUS_NAME_FLAG_ALLOW_REPLACEMENT</a> or <a class="el" href="group__DBusShared.html#g3c18c35e4c2dfbe9a0a5be47f4b4b6e9">DBUS_NAME_FLAG_DO_NOT_QUEUE</a> settings.)<p>
When a service represents an application, say "text editor," then it should specify <a class="el" href="group__DBusShared.html#g40b7a263caf8d6e39b39a8c7350a084f">DBUS_NAME_FLAG_ALLOW_REPLACEMENT</a> if it wants the last editor started to be the user's editor vs. the first one started. Then any editor that can be the user's editor should specify <a class="el" href="group__DBusShared.html#g0f16ed23be47eb22a37a227a6e39597b">DBUS_NAME_FLAG_REPLACE_EXISTING</a> to either take over (last-started-wins) or be queued up (first-started-wins) according to whether <a class="el" href="group__DBusShared.html#g40b7a263caf8d6e39b39a8c7350a084f">DBUS_NAME_FLAG_ALLOW_REPLACEMENT</a> was given.<p>
Conventionally, single-instance applications often offer a command line option called --replace which means to replace the current instance. To implement this, always set <a class="el" href="group__DBusShared.html#g40b7a263caf8d6e39b39a8c7350a084f">DBUS_NAME_FLAG_ALLOW_REPLACEMENT</a> when you request your application's bus name. When you lose ownership of your bus name, you need to exit. Look for the signal "NameLost" from <a class="el" href="group__DBusShared.html#g9e017e829e575bdc5c554fd4d07d7355">DBUS_SERVICE_DBUS</a> and <a class="el" href="group__DBusShared.html#ga34514374bb61b8222a670a3d0b3fdc4">DBUS_INTERFACE_DBUS</a> (the signal's first argument is the bus name that was lost). If starting up without --replace, do not specify <a class="el" href="group__DBusShared.html#g0f16ed23be47eb22a37a227a6e39597b">DBUS_NAME_FLAG_REPLACE_EXISTING</a>, and exit if you fail to become the bus name owner. If --replace is given, ask to replace the old owner.<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>name</em> </td><td>the name to request </td></tr>
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>flags </td></tr>
<tr><td valign="top"></td><td valign="top"><em>error</em> </td><td>location to store the error </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a result code, -1 if error is set </dd></dl>
<p>
Definition at line <a class="el" href="dbus-bus_8c-source.html#l01051">1051</a> of file <a class="el" href="dbus-bus_8c-source.html">dbus-bus.c</a>.
<p>
References <a class="el" href="dbus-connection_8c-source.html#l03243">dbus_connection_send_with_reply_and_block()</a>, <a class="el" href="dbus-shared_8h-source.html#l00088">DBUS_INTERFACE_DBUS</a>, <a class="el" href="dbus-message_8c-source.html#l01482">dbus_message_append_args()</a>, <a class="el" href="dbus-message_8c-source.html#l01658">dbus_message_get_args()</a>, <a class="el" href="dbus-message_8c-source.html#l01063">dbus_message_new_method_call()</a>, <a class="el" href="dbus-message_8c-source.html#l01387">dbus_message_unref()</a>, <a class="el" href="dbus-shared_8h-source.html#l00080">DBUS_PATH_DBUS</a>, <a class="el" href="dbus-shared_8h-source.html#l00076">DBUS_SERVICE_DBUS</a>, <a class="el" href="dbus-message_8c-source.html#l03255">dbus_set_error_from_message()</a>, <a class="el" href="dbus-protocol_8h-source.html#l00060">DBUS_TYPE_INVALID</a>, <a class="el" href="dbus-protocol_8h-source.html#l00102">DBUS_TYPE_STRING</a>, <a class="el" href="dbus-protocol_8h-source.html#l00086">DBUS_TYPE_UINT32</a>, and <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.
</div>
</div><p>
<a class="anchor" name="gdabd7b8bdbe1c17765b8b117ab0c90ca"></a><!-- doxytag: member="dbus-bus.c::dbus_bus_set_unique_name" ref="gdabd7b8bdbe1c17765b8b117ab0c90ca" args="(DBusConnection *connection, const char *unique_name)" -->
<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_bus_set_unique_name </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">const char * </td>
<td class="paramname"> <em>unique_name</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>
Sets the unique name of the connection, as assigned by the message bus.
<p>
Can only be used if you registered with the bus manually (i.e. if you did not call <a class="el" href="group__DBusBus.html#g12ee703b8342cb7313bb1f9de4457a42">dbus_bus_register()</a>). Can only be called once per connection. After the unique name is set, you can get it with <a class="el" href="group__DBusBus.html#g96e47216f5bd1dac22d18e05653bcedc">dbus_bus_get_unique_name()</a>.<p>
The only reason to use this function is to re-implement the equivalent of <a class="el" href="group__DBusBus.html#g12ee703b8342cb7313bb1f9de4457a42">dbus_bus_register()</a> yourself. One (probably unusual) reason to do that might be to do the bus registration call asynchronously instead of synchronously.<p>
<dl compact><dt><b>Note:</b></dt><dd>Just use <a class="el" href="group__DBusBus.html#g1d29aa7e5337a792a40d91aba81f2f0c">dbus_bus_get()</a> or <a class="el" href="group__DBusBus.html#gfc938ab933f260763e93e1e8feea31f0">dbus_bus_get_private()</a>, or worst case <a class="el" href="group__DBusBus.html#g12ee703b8342cb7313bb1f9de4457a42">dbus_bus_register()</a>, instead of messing with this function. There's really no point creating pain for yourself by doing things manually.</dd></dl>
It's hard to use this function safely on shared connections (created by <a class="el" href="group__DBusConnection.html#gc6bc8680215ed6e3b526903736f4edde">dbus_connection_open()</a>) in a multithreaded application, because only one registration attempt can be sent to the bus. If two threads are both sending the registration message, there is no mechanism in libdbus itself to avoid sending it twice.<p>
Thus, you need a way to coordinate which thread sends the registration attempt; which also means you know which thread will call <a class="el" href="group__DBusBus.html#gdabd7b8bdbe1c17765b8b117ab0c90ca">dbus_bus_set_unique_name()</a>. If you don't know about all threads in the app (for example, if some libraries you're using might start libdbus-using threads), then you need to avoid using this function on shared connections.<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>unique_name</em> </td><td>the unique name </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a> if not enough memory </dd></dl>
<p>
Definition at line <a class="el" href="dbus-bus_8c-source.html#l00716">716</a> of file <a class="el" href="dbus-bus_8c-source.html">dbus-bus.c</a>.
<p>
References <a class="el" href="dbus-internals_8h-source.html#l00109">_dbus_assert</a>, <a class="el" href="dbus-internals_8h-source.html#l00287">_DBUS_LOCK</a>, <a class="el" href="dbus-internals_8c-source.html#l00396">_dbus_strdup()</a>, <a class="el" href="dbus-internals_8h-source.html#l00288">_DBUS_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="dbus-bus_8c-source.html#l00078">BusData::unique_name</a>.
</div>
</div><p>
<a class="anchor" name="g10b11a2c5437e8c4a052f5e09c311195"></a><!-- doxytag: member="dbus-bus.c::dbus_bus_start_service_by_name" ref="g10b11a2c5437e8c4a052f5e09c311195" args="(DBusConnection *connection, const char *name, dbus_uint32_t flags, dbus_uint32_t *result, DBusError *error)" -->
<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_bus_start_service_by_name </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">const char * </td>
<td class="paramname"> <em>name</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>flags</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>result</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusError.html">DBusError</a> * </td>
<td class="paramname"> <em>error</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>
Starts a service that will request ownership of the given name.
<p>
The returned result will be one of be one of <a class="el" href="group__DBusShared.html#g375114145e2eb43473fb778cc603f08b">DBUS_START_REPLY_SUCCESS</a> or <a class="el" href="group__DBusShared.html#gd6de6047e398631e590cdae679f044c5">DBUS_START_REPLY_ALREADY_RUNNING</a> if successful. Pass <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> if you don't care about the result.<p>
The flags parameter is for future expansion, currently you should specify 0.<p>
It's often easier to avoid explicitly starting services, and just send a method call to the service's bus name instead. Method calls start a service to handle them by default unless you call <a class="el" href="group__DBusMessage.html#g4661483ba92680738ae2cdf6f21cbccf">dbus_message_set_auto_start()</a> to disable this behavior.<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>name</em> </td><td>the name we want the new service to request </td></tr>
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>the flags (should always be 0 for now) </td></tr>
<tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>a place to store the result or <a class="el" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a> </td></tr>
<tr><td valign="top"></td><td valign="top"><em>error</em> </td><td>location to store any errors </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a> if the activation succeeded, <a class="el" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a> if not </dd></dl>
<p>
Definition at line <a class="el" href="dbus-bus_8c-source.html#l01295">1295</a> of file <a class="el" href="dbus-bus_8c-source.html">dbus-bus.c</a>.
<p>
References <a class="el" href="dbus-connection_8c-source.html#l03243">dbus_connection_send_with_reply_and_block()</a>, <a class="el" href="dbus-shared_8h-source.html#l00088">DBUS_INTERFACE_DBUS</a>, <a class="el" href="dbus-message_8c-source.html#l01482">dbus_message_append_args()</a>, <a class="el" href="dbus-message_8c-source.html#l01658">dbus_message_get_args()</a>, <a class="el" href="dbus-message_8c-source.html#l01063">dbus_message_new_method_call()</a>, <a class="el" href="dbus-message_8c-source.html#l01387">dbus_message_unref()</a>, <a class="el" href="dbus-shared_8h-source.html#l00080">DBUS_PATH_DBUS</a>, <a class="el" href="dbus-shared_8h-source.html#l00076">DBUS_SERVICE_DBUS</a>, <a class="el" href="dbus-message_8c-source.html#l03255">dbus_set_error_from_message()</a>, <a class="el" href="dbus-protocol_8h-source.html#l00060">DBUS_TYPE_INVALID</a>, <a class="el" href="dbus-protocol_8h-source.html#l00102">DBUS_TYPE_STRING</a>, <a class="el" href="dbus-protocol_8h-source.html#l00086">DBUS_TYPE_UINT32</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>.
</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>