File: //usr/local/ssl/share/gtk-doc/html/dbus-glib/dbus-glib-DBus-GLib-low-level.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>DBus GLib low level</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" 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-GType-utility-functions.html" title="GType utility functions">
<link rel="next" href="ch03.html" title="Tools Reference">
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="ch01.html" title="Introduction">
<link rel="chapter" href="ch02.html" title="API Reference">
<link rel="chapter" href="ch03.html" title="Tools Reference">
</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="2">
<tr valign="middle">
<td><a accesskey="p" href="dbus-glib-GType-utility-functions.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">D-Bus GLib bindings - Reference Manual</th>
<td><a accesskey="n" href="ch03.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2540600" class="shortcut">Top</a>
 | 
<a href="#id2530689" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="dbus-glib-DBus-GLib-low-level"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2540600"></a><span class="refentrytitle">DBus GLib low level</span>
</h2>
<p>DBus GLib low level — DBus lower level functions</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1" lang="en">
<a name="id2540869"></a><h2>Stability Level</h2>
Unstable, unless otherwise indicated
</div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">
void <a href="dbus-glib-DBus-GLib-low-level.html#dbus-set-g-error">dbus_set_g_error</a> (GError **gerror,
DBusError *derror);
void <a href="dbus-glib-DBus-GLib-low-level.html#dbus-connection-setup-with-g-main">dbus_connection_setup_with_g_main</a>
(DBusConnection *connection,
GMainContext *context);
void <a href="dbus-glib-DBus-GLib-low-level.html#dbus-server-setup-with-g-main">dbus_server_setup_with_g_main</a> (DBusServer *server,
GMainContext *context);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2530689"></a><h2>Description</h2>
<p>
These functions can be used to access lower level of DBus.</p>
<p>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2571951"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2571962"></a><h3>
<a name="dbus-set-g-error"></a>dbus_set_g_error ()</h3>
<a class="indexterm" name="id2571975"></a><pre class="programlisting">void dbus_set_g_error (GError **gerror,
DBusError *derror);</pre>
<p>
FIXME</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>gerror</code></em> :</span></td>
<td> an error
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>derror</code></em> :</span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2572044"></a><h3>
<a name="dbus-connection-setup-with-g-main"></a>dbus_connection_setup_with_g_main ()</h3>
<a class="indexterm" name="id2572056"></a><pre class="programlisting">void dbus_connection_setup_with_g_main
(DBusConnection *connection,
GMainContext *context);</pre>
<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 <span class="type">NULL</span> 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>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>connection</code></em> :</span></td>
<td> the connection
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>context</code></em> :</span></td>
<td> the <span class="type">GMainContext</span> or <span class="type">NULL</span> for default context
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2525479"></a><h3>
<a name="dbus-server-setup-with-g-main"></a>dbus_server_setup_with_g_main ()</h3>
<a class="indexterm" name="id2525490"></a><pre class="programlisting">void dbus_server_setup_with_g_main (DBusServer *server,
GMainContext *context);</pre>
<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 <span class="type">NULL</span>.
</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>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>server</code></em> :</span></td>
<td> the server
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>context</code></em> :</span></td>
<td> the <span class="type">GMainContext</span> or <span class="type">NULL</span> for default
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
</body>
</html>