/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBus-GLib-low-level.html is in libdbus-glib-1-doc 0.106-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DBus GLib low level: D-Bus GLib bindings - Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="D-Bus GLib bindings - Reference Manual">
<link rel="up" href="ch02.html" title="API Reference">
<link rel="prev" href="dbus-glib-Specializable-GType-System.html" title="Specializable GType System">
<link rel="next" href="ch03.html" title="Tools Reference">
<meta name="generator" content="GTK-Doc V1.24 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#dbus-glib-DBus-GLib-low-level.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="dbus-glib-Specializable-GType-System.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="ch03.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="dbus-glib-DBus-GLib-low-level"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="dbus-glib-DBus-GLib-low-level.top_of_page"></a>DBus GLib low level</span></h2>
<p>DBus GLib low level — DBus lower level functions</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="dbus-glib-DBus-GLib-low-level.stability-level"></a><h2>Stability Level</h2>
<a href="http://foldoc.org/Unstable"><span class="acronym">Unstable</span></a>, unless otherwise indicated
</div>
<div class="refsect1">
<a name="dbus-glib-DBus-GLib-low-level.functions"></a><h2>Functions</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="dbus-glib-DBus-GLib-low-level.html#dbus-set-g-error" title="dbus_set_g_error ()">dbus_set_g_error</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="dbus-glib-DBus-GLib-low-level.html#dbus-connection-setup-with-g-main" title="dbus_connection_setup_with_g_main ()">dbus_connection_setup_with_g_main</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="returnvalue">DBusGConnection</span></a> *
</td>
<td class="function_name">
<a class="link" href="dbus-glib-DBus-GLib-low-level.html#dbus-connection-get-g-connection" title="dbus_connection_get_g_connection ()">dbus_connection_get_g_connection</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="dbus-glib-DBus-GLib-low-level.html#dbus-server-setup-with-g-main" title="dbus_server_setup_with_g_main ()">dbus_server_setup_with_g_main</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="dbus-glib-DBus-GLib-low-level.html#DBUS-TYPE-CONNECTION:CAPS" title="DBUS_TYPE_CONNECTION">DBUS_TYPE_CONNECTION</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="dbus-glib-DBus-GLib-low-level.html#DBUS-TYPE-MESSAGE:CAPS" title="DBUS_TYPE_MESSAGE">DBUS_TYPE_MESSAGE</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="dbus-glib-DBus-GLib-low-level.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include <dbus/dbus-glib-lowlevel.h>
</pre>
</div>
<div class="refsect1">
<a name="dbus-glib-DBus-GLib-low-level.description"></a><h2>Description</h2>
<p>These functions can be used to access lower level of DBus.</p>
</div>
<div class="refsect1">
<a name="dbus-glib-DBus-GLib-low-level.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="dbus-set-g-error"></a><h3>dbus_set_g_error ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dbus_set_g_error (<em class="parameter"><code><span class="type">GError</span> **gerror</code></em>,
<em class="parameter"><code><span class="type">DBusError</span> *derror</code></em>);</pre>
<div class="warning">
<p><code class="literal">dbus_set_g_error</code> is deprecated and should not be used in newly-written code.</p>
<p>New code should use GDBus instead. GDBus' error encoding
is much simpler and more reliable, and the closest equivalent
is <code class="function">g_dbus_error_new_for_dbus_error()</code>.</p>
</div>
<p>Store the information from a DBus method error return into a
GError. For the normal case of an arbitrary remote process,
the error code will be DBUS_GERROR_REMOTE_EXCEPTION. Now,
DBus errors have two components; a message and a "name".
The former is an arbitrary (normally American English) string.
The second is a string like com.example.FooFailure which
programs can use as a conditional source. Because a GError
only has one string, we use a hack to encode both values:</p>
<p><human readable string><null><error name><null></p>
<p>You can use the following code to retrieve both values:</p>
<div class="informalexample"><pre class="programlisting">
size_t len = strlen(msg);
const char *error_name = msg+len+1;]|
</pre></div>
<div class="refsect3">
<a name="id-1.4.9.7.2.9"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>gerror</p></td>
<td class="parameter_description"><p>an error</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>derror</p></td>
<td class="parameter_description"><p>a <span class="type">DBusError</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dbus-connection-setup-with-g-main"></a><h3>dbus_connection_setup_with_g_main ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dbus_connection_setup_with_g_main (<em class="parameter"><code><span class="type">DBusConnection</span> *connection</code></em>,
<em class="parameter"><code><span class="type">GMainContext</span> *context</code></em>);</pre>
<div class="warning">
<p><code class="literal">dbus_connection_setup_with_g_main</code> is deprecated and should not be used in newly-written code.</p>
<p>New code should use GDBus instead.</p>
</div>
<p>Sets the watch and timeout functions of a <span class="type">DBusConnection</span>
to integrate the connection with the GLib main loop.
Pass in <code class="literal">NULL</code> for the <span class="type">GMainContext</span> unless you're
doing something specialized.</p>
<p>If called twice for the same context, does nothing the second
time. If called once with context A and once with context B,
context B replaces context A as the context monitoring the
connection.</p>
<div class="refsect3">
<a name="id-1.4.9.7.3.7"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>connection</p></td>
<td class="parameter_description"><p>the connection</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>the <span class="type">GMainContext</span> or <code class="literal">NULL</code> for default context</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dbus-connection-get-g-connection"></a><h3>dbus_connection_get_g_connection ()</h3>
<pre class="programlisting"><a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="returnvalue">DBusGConnection</span></a> *
dbus_connection_get_g_connection (<em class="parameter"><code><span class="type">DBusConnection</span> *connection</code></em>);</pre>
<div class="warning">
<p><code class="literal">dbus_connection_get_g_connection</code> is deprecated and should not be used in newly-written code.</p>
<p>New code should use GDBus instead.</p>
</div>
<p>Get the <a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a> corresponding to this <span class="type">DBusConnection</span>. This only
makes sense if the <span class="type">DBusConnection</span> was originally a <a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a> that was
registered with the GLib main loop. The return value does not have its
refcount incremented.</p>
<div class="refsect3">
<a name="id-1.4.9.7.4.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>connection</p></td>
<td class="parameter_description"><p>a <span class="type">DBusConnection</span></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.9.7.4.7"></a><h4>Returns</h4>
<p> <a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a> </p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dbus-server-setup-with-g-main"></a><h3>dbus_server_setup_with_g_main ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dbus_server_setup_with_g_main (<em class="parameter"><code><span class="type">DBusServer</span> *server</code></em>,
<em class="parameter"><code><span class="type">GMainContext</span> *context</code></em>);</pre>
<div class="warning">
<p><code class="literal">dbus_server_setup_with_g_main</code> is deprecated and should not be used in newly-written code.</p>
<p>New code should use GDBus instead.</p>
</div>
<p>Sets the watch and timeout functions of a <span class="type">DBusServer</span>
to integrate the server with the GLib main loop.
In most cases the context argument should be <code class="literal">NULL</code>.</p>
<p>If called twice for the same context, does nothing the second
time. If called once with context A and once with context B,
context B replaces context A as the context monitoring the
connection.</p>
<div class="refsect3">
<a name="id-1.4.9.7.5.7"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>server</p></td>
<td class="parameter_description"><p>the server</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>the <span class="type">GMainContext</span> or <code class="literal">NULL</code> for default</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="DBUS-TYPE-CONNECTION:CAPS"></a><h3>DBUS_TYPE_CONNECTION</h3>
<pre class="programlisting">#define DBUS_TYPE_CONNECTION (dbus_connection_get_g_type ())
</pre>
<div class="warning">
<p><code class="literal">DBUS_TYPE_CONNECTION</code> is deprecated and should not be used in newly-written code.</p>
<p>New code should use GDBus instead.</p>
</div>
<p>Expands to a function call returning a boxed <span class="type">GType</span> representing a
<span class="type">DBusConnection</span> pointer from libdbus. Not to be confused with
<a class="link" href="dbus-glib-DBusGConnection.html#DBUS-TYPE-G-CONNECTION:CAPS" title="DBUS_TYPE_G_CONNECTION"><code class="literal">DBUS_TYPE_G_CONNECTION</code></a>, which you should usually use instead.</p>
<div class="refsect3">
<a name="id-1.4.9.7.6.6"></a><h4>Returns</h4>
<p> the GLib type</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="DBUS-TYPE-MESSAGE:CAPS"></a><h3>DBUS_TYPE_MESSAGE</h3>
<pre class="programlisting">#define DBUS_TYPE_MESSAGE (dbus_message_get_g_type ())
</pre>
<div class="warning">
<p><code class="literal">DBUS_TYPE_MESSAGE</code> is deprecated and should not be used in newly-written code.</p>
<p>New code should use GDBus instead.</p>
</div>
<p>Expands to a function call returning a boxed <span class="type">GType</span> representing a
<span class="type">DBusMessage</span> pointer from libdbus. Not to be confused with
<a class="link" href="dbus-glib-DBusGMessage.html#DBUS-TYPE-G-MESSAGE:CAPS" title="DBUS_TYPE_G_MESSAGE"><code class="literal">DBUS_TYPE_G_MESSAGE</code></a>, which you should usually use instead.</p>
<div class="refsect3">
<a name="id-1.4.9.7.7.6"></a><h4>Returns</h4>
<p> the GLib type</p>
</div>
</div>
</div>
<div class="refsect1">
<a name="dbus-glib-DBus-GLib-low-level.other_details"></a><h2>Types and Values</h2>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.24</div>
</body>
</html>
|