/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGConnection.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 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DBusGConnection: 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="ch02.html" title="API Reference">
<link rel="next" href="dbus-glib-DBus-GObject-related-functions.html" title="DBus GObject related functions">
<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-DBusGConnection.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="ch02.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="dbus-glib-DBus-GObject-related-functions.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="dbus-glib-DBusGConnection"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="dbus-glib-DBusGConnection.top_of_page"></a>DBusGConnection</span></h2>
<p>DBusGConnection — DBus Connection</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="dbus-glib-DBusGConnection.stability-level"></a><h2>Stability Level</h2>
<a href="http://foldoc.org/Stable"><span class="acronym">Stable</span></a>, unless otherwise indicated
</div>
<div class="refsect1">
<a name="dbus-glib-DBusGConnection.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="define_keyword">#define</td>
<td class="function_name"><a class="link" href="dbus-glib-DBusGConnection.html#DBUS-TYPE-G-CONNECTION:CAPS" title="DBUS_TYPE_G_CONNECTION">DBUS_TYPE_G_CONNECTION</a></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-DBusGConnection.html#dbus-g-bus-get" title="dbus_g_bus_get ()">dbus_g_bus_get</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-DBusGConnection.html#dbus-g-bus-get-private" title="dbus_g_bus_get_private ()">dbus_g_bus_get_private</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-DBusGConnection.html#dbus-g-thread-init" title="dbus_g_thread_init ()">dbus_g_thread_init</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-DBusGConnection.html#dbus-g-connection-open" title="dbus_g_connection_open ()">dbus_g_connection_open</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-DBusGConnection.html#dbus-g-connection-ref" title="dbus_g_connection_ref ()">dbus_g_connection_ref</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-DBusGConnection.html#dbus-g-connection-unref" title="dbus_g_connection_unref ()">dbus_g_connection_unref</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-DBusGConnection.html#dbus-g-connection-flush" title="dbus_g_connection_flush ()">dbus_g_connection_flush</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">DBusConnection</span> *
</td>
<td class="function_name">
<a class="link" href="dbus-glib-DBusGConnection.html#dbus-g-connection-get-connection" title="dbus_g_connection_get_connection ()">dbus_g_connection_get_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-DBusGConnection.html#dbus-g-connection-register-g-object" title="dbus_g_connection_register_g_object ()">dbus_g_connection_register_g_object</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-DBusGConnection.html#dbus-g-connection-unregister-g-object" title="dbus_g_connection_unregister_g_object ()">dbus_g_connection_unregister_g_object</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GObject</span> *
</td>
<td class="function_name">
<a class="link" href="dbus-glib-DBusGConnection.html#dbus-g-connection-lookup-g-object" title="dbus_g_connection_lookup_g_object ()">dbus_g_connection_lookup_g_object</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="dbus-glib-DBusGConnection.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody><tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection">DBusGConnection</a></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="dbus-glib-DBusGConnection.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include <dbus/dbus-glib.h>
</pre>
</div>
<div class="refsect1">
<a name="dbus-glib-DBusGConnection.description"></a><h2>Description</h2>
<p>A <a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a> is a boxed type abstracting a DBusConnection.</p>
</div>
<div class="refsect1">
<a name="dbus-glib-DBusGConnection.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="DBUS-TYPE-G-CONNECTION:CAPS"></a><h3>DBUS_TYPE_G_CONNECTION</h3>
<pre class="programlisting">#define DBUS_TYPE_G_CONNECTION (dbus_g_connection_get_g_type ())
</pre>
<div class="warning">
<p><code class="literal">DBUS_TYPE_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>Expands to a function call returning the boxed <span class="type">GType</span> of a <a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a>.</p>
<div class="refsect3">
<a name="id-1.4.2.8.2.6"></a><h4>Returns</h4>
<p> the GLib type</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dbus-g-bus-get"></a><h3>dbus_g_bus_get ()</h3>
<pre class="programlisting"><a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="returnvalue">DBusGConnection</span></a> *
dbus_g_bus_get (<em class="parameter"><code><span class="type">DBusBusType</span> type</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<div class="warning">
<p><code class="literal">dbus_g_bus_get</code> is deprecated and should not be used in newly-written code.</p>
<p>New code should use GDBus instead. The closest equivalent
is <code class="function">g_bus_get_sync()</code>.</p>
</div>
<p>Returns a connection to the given bus. The connection is a global variable
shared with other callers of this function.</p>
<p>(Internally, calls <code class="function">dbus_bus_get()</code> then calls
<a class="link" href="dbus-glib-DBus-GLib-low-level.html#dbus-connection-setup-with-g-main" title="dbus_connection_setup_with_g_main ()"><code class="function">dbus_connection_setup_with_g_main()</code></a> on the result.)</p>
<div class="refsect3">
<a name="id-1.4.2.8.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>type</p></td>
<td class="parameter_description"><p>bus type</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>address where an error can be returned.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.2.8.3.8"></a><h4>Returns</h4>
<p> a DBusConnection</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dbus-g-bus-get-private"></a><h3>dbus_g_bus_get_private ()</h3>
<pre class="programlisting"><a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="returnvalue">DBusGConnection</span></a> *
dbus_g_bus_get_private (<em class="parameter"><code><span class="type">DBusBusType</span> type</code></em>,
<em class="parameter"><code><span class="type">GMainContext</span> *context</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<div class="warning">
<p><code class="literal">dbus_g_bus_get_private</code> is deprecated and should not be used in newly-written code.</p>
<p>New code should use GDBus instead. The closest equivalent
is <code class="function">g_bus_get_sync()</code>.</p>
</div>
<p>Returns a connection to the given bus. The connection will be a private
non-shared connection and should be closed when usage is complete.</p>
<p>Internally this function calls <code class="function">dbus_bus_get_private()</code> then calls
<a class="link" href="dbus-glib-DBus-GLib-low-level.html#dbus-connection-setup-with-g-main" title="dbus_connection_setup_with_g_main ()"><code class="function">dbus_connection_setup_with_g_main()</code></a> on the result; see the documentation
of the former function for more information on private connections.</p>
<div class="refsect3">
<a name="id-1.4.2.8.4.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>type</p></td>
<td class="parameter_description"><p>bus type</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>Mainloop context to attach to</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>address where an error can be returned.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.2.8.4.8"></a><h4>Returns</h4>
<p> a DBusConnection</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dbus-g-thread-init"></a><h3>dbus_g_thread_init ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dbus_g_thread_init (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<div class="warning">
<p><code class="literal">dbus_g_thread_init</code> is deprecated and should not be used in newly-written code.</p>
<p>New code should use GDBus instead. GDBus is always
thread-safe, whereas dbus-glib is never thread-safe.</p>
</div>
<p>Initializes the D-BUS thread system.
This function may only be called
once and must be called prior to calling any
other function in the D-BUS API.</p>
<p>Equivalent to <code class="function">dbus_threads_init_default()</code>, which does nothing.
dbus-glib requires dbus >= 1.8, which is thread-safe by default.</p>
<p>Note that dbus-glib's GObject mapping is explicitly *not* thread-safe.</p>
</div>
<hr>
<div class="refsect2">
<a name="dbus-g-connection-open"></a><h3>dbus_g_connection_open ()</h3>
<pre class="programlisting"><a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="returnvalue">DBusGConnection</span></a> *
dbus_g_connection_open (<em class="parameter"><code>const <span class="type">gchar</span> *address</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<div class="warning">
<p><code class="literal">dbus_g_connection_open</code> is deprecated and should not be used in newly-written code.</p>
<p>New code should use GDBus instead. The closest equivalent
is <code class="function">g_dbus_connection_new_for_address_sync()</code>.</p>
</div>
<p>Returns a connection to the given address.</p>
<p>(Internally, calls <code class="function">dbus_connection_open()</code> then calls
<a class="link" href="dbus-glib-DBus-GLib-low-level.html#dbus-connection-setup-with-g-main" title="dbus_connection_setup_with_g_main ()"><code class="function">dbus_connection_setup_with_g_main()</code></a> on the result.)</p>
<div class="refsect3">
<a name="id-1.4.2.8.6.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>address</p></td>
<td class="parameter_description"><p>address of the connection to open</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>address where an error can be returned.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.2.8.6.8"></a><h4>Returns</h4>
<p> a DBusConnection</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dbus-g-connection-ref"></a><h3>dbus_g_connection_ref ()</h3>
<pre class="programlisting"><a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="returnvalue">DBusGConnection</span></a> *
dbus_g_connection_ref (<em class="parameter"><code><a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a> *connection</code></em>);</pre>
<div class="warning">
<p><code class="literal">dbus_g_connection_ref</code> is deprecated and should not be used in newly-written code.</p>
<p>New code should use <span class="type">GDBusConnection</span> instead.</p>
</div>
<p>Increment refcount on a <a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a></p>
<div class="refsect3">
<a name="id-1.4.2.8.7.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>the <a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a> to ref</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.2.8.7.7"></a><h4>Returns</h4>
<p> the connection that was ref'd</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dbus-g-connection-unref"></a><h3>dbus_g_connection_unref ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dbus_g_connection_unref (<em class="parameter"><code><a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a> *connection</code></em>);</pre>
<div class="warning">
<p><code class="literal">dbus_g_connection_unref</code> is deprecated and should not be used in newly-written code.</p>
<p>New code should use <span class="type">GDBusConnection</span> instead.</p>
</div>
<p>Decrement refcount on a <a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a></p>
<div class="refsect3">
<a name="id-1.4.2.8.8.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>the connection to unref</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dbus-g-connection-flush"></a><h3>dbus_g_connection_flush ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dbus_g_connection_flush (<em class="parameter"><code><a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a> *connection</code></em>);</pre>
<div class="warning">
<p><code class="literal">dbus_g_connection_flush</code> is deprecated and should not be used in newly-written code.</p>
<p>The closest equivalent in GDBus is
<code class="function"><GTKDOCLINK HREF="g-dbus-connection-flush-sync"><code class="function">g_dbus_connection_flush_sync()</code></code></GTKDOCLINK>.</p>
</div>
<p>Blocks until outgoing calls and signal emissions have been sent.</p>
<div class="refsect3">
<a name="id-1.4.2.8.9.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>the <a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a> to flush</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dbus-g-connection-get-connection"></a><h3>dbus_g_connection_get_connection ()</h3>
<pre class="programlisting"><span class="returnvalue">DBusConnection</span> *
dbus_g_connection_get_connection (<em class="parameter"><code><a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a> *gconnection</code></em>);</pre>
<div class="warning">
<p><code class="literal">dbus_g_connection_get_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 <span class="type">DBusConnection</span> corresponding to this <a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a>.
The return value does not have its refcount incremented.</p>
<div class="refsect3">
<a name="id-1.4.2.8.10.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>gconnection</p></td>
<td class="parameter_description"><p>a <a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.2.8.10.7"></a><h4>Returns</h4>
<p> <span class="type">DBusConnection</span> </p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dbus-g-connection-register-g-object"></a><h3>dbus_g_connection_register_g_object ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dbus_g_connection_register_g_object (<em class="parameter"><code><a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a> *connection</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *at_path</code></em>,
<em class="parameter"><code><span class="type">GObject</span> *object</code></em>);</pre>
<div class="warning">
<p><code class="literal">dbus_g_connection_register_g_object</code> is deprecated and should not be used in newly-written code.</p>
<p>New code should use GDBus instead.
The closest equivalent is <code class="function">g_dbus_connection_register_object()</code>,
but <span class="type">GDBusObjectManagerServer</span> and <span class="type">GDBusObjectSkeleton</span> provide
a higher-level API.</p>
</div>
<p>Registers a <span class="type">GObject</span> at the given path. Properties, methods, and signals
of the object can then be accessed remotely. Methods are only available
if method introspection data has been added to the object's class
with <a class="link" href="dbus-glib-DBus-GObject-related-functions.html#dbus-g-object-type-install-info" title="dbus_g_object_type_install_info ()"><code class="function">dbus_g_object_type_install_info()</code></a>.</p>
<p>The registration will be cancelled if either the <span class="type">DBusConnection</span> or
the <span class="type">GObject</span> gets finalized, or if <a class="link" href="dbus-glib-DBusGConnection.html#dbus-g-connection-unregister-g-object" title="dbus_g_connection_unregister_g_object ()"><code class="function">dbus_g_connection_unregister_g_object()</code></a>
is used.</p>
<p>Note: If an object is registered multiple times, the first registration
takes priority for cases such as turning an object into an object path.</p>
<div class="refsect3">
<a name="id-1.4.2.8.11.8"></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 D-BUS connection</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>at_path</p></td>
<td class="parameter_description"><p>the path where the object will live (the object's name)</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>object</p></td>
<td class="parameter_description"><p>the object</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dbus-g-connection-unregister-g-object"></a><h3>dbus_g_connection_unregister_g_object ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
dbus_g_connection_unregister_g_object (<em class="parameter"><code><a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a> *connection</code></em>,
<em class="parameter"><code><span class="type">GObject</span> *object</code></em>);</pre>
<div class="warning">
<p><code class="literal">dbus_g_connection_unregister_g_object</code> is deprecated and should not be used in newly-written code.</p>
<p>New code should use GDBus instead.
The closest equivalent is <code class="function">g_dbus_connection_unregister_object()</code>.</p>
</div>
<p>Removes <em class="parameter"><code>object</code></em>
from any object paths at which it is exported on
<em class="parameter"><code>connection</code></em>
. Properties, methods, and signals
of the object can no longer be accessed remotely.</p>
<div class="refsect3">
<a name="id-1.4.2.8.12.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>the D-BUS connection</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>object</p></td>
<td class="parameter_description"><p>the object</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="dbus-g-connection-lookup-g-object"></a><h3>dbus_g_connection_lookup_g_object ()</h3>
<pre class="programlisting"><span class="returnvalue">GObject</span> *
dbus_g_connection_lookup_g_object (<em class="parameter"><code><a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a> *connection</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *at_path</code></em>);</pre>
<div class="warning">
<p><code class="literal">dbus_g_connection_lookup_g_object</code> is deprecated and should not be used in newly-written code.</p>
<p>New code should use GDBus instead. There is no direct
equivalent for this function.</p>
</div>
<p>FIXME</p>
<div class="refsect3">
<a name="id-1.4.2.8.13.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 <a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>at_path</p></td>
<td class="parameter_description"><p>path</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.2.8.13.7"></a><h4>Returns</h4>
<p> the object at path <em class="parameter"><code>at_path</code></em>
</p>
</div>
</div>
</div>
<div class="refsect1">
<a name="dbus-glib-DBusGConnection.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="DBusGConnection"></a><h3>DBusGConnection</h3>
<pre class="programlisting">typedef struct _DBusGConnection DBusGConnection;</pre>
<div class="warning">
<p><code class="literal">DBusGConnection</code> is deprecated and should not be used in newly-written code.</p>
<p>New code should use <span class="type">GDBusConnection</span> from the GIO library,
which is not based on libdbus or dbus-glib.</p>
</div>
<p>A <a class="link" href="dbus-glib-DBusGConnection.html#DBusGConnection" title="DBusGConnection"><span class="type">DBusGConnection</span></a> is a boxed type abstracting a DBusConnection from
libdbus.</p>
</div>
</div>
<div class="refsect1">
<a name="dbus-glib-DBusGConnection.see-also"></a><h2>See Also</h2>
<p><span class="type">DBusConnection</span></p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.24</div>
</body>
</html>
|