4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>DBus GLib low level</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.71.0">
7
7
<link rel="start" href="index.html" title="D-Bus GLib bindings - Reference Manual">
8
8
<link rel="up" href="ch02.html" title="API Reference">
9
<link rel="prev" href="dbus-glib-GType-utility-functions.html" title="GType utility functions">
9
<link rel="prev" href="dbus-glib-Specializable-GType-System.html" title="Specializable GType System">
10
10
<link rel="next" href="ch03.html" title="Tools Reference">
11
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="chapter" href="ch01.html" title="Introduction">
14
14
<link rel="chapter" href="ch02.html" title="API Reference">
17
17
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
18
18
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
19
19
<tr valign="middle">
20
<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>
20
<td><a accesskey="p" href="dbus-glib-Specializable-GType-System.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
21
21
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
22
22
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
23
23
<th width="100%" align="center">D-Bus GLib bindings - Reference Manual</th>
24
24
<td><a accesskey="n" href="ch03.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
26
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2540600" class="shortcut">Top</a>
26
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2578309" class="shortcut">Top</a>
28
<a href="#id2530689" class="shortcut">Description</a></nobr></td></tr>
28
<a href="#id2594973" class="shortcut">Description</a></nobr></td></tr>
30
30
<div class="refentry" lang="en">
31
31
<a name="dbus-glib-DBus-GLib-low-level"></a><div class="titlepage"></div>
32
32
<div class="refnamediv"><table width="100%"><tr>
35
<a name="id2540600"></a><span class="refentrytitle">DBus GLib low level</span>
35
<a name="id2578309"></a><span class="refentrytitle">DBus GLib low level</span>
37
37
<p>DBus GLib low level — DBus lower level functions</p>
39
39
<td valign="top" align="right"></td>
40
40
</tr></table></div>
41
41
<div class="refsect1" lang="en">
42
<a name="id2540869"></a><h2>Stability Level</h2>
42
<a name="id2550900"></a><h2>Stability Level</h2>
43
43
Unstable, unless otherwise indicated
45
45
<div class="refsynopsisdiv">
51
void <a href="dbus-glib-DBus-GLib-low-level.html#dbus-set-g-error">dbus_set_g_error</a> (GError **gerror,
53
void <a href="dbus-glib-DBus-GLib-low-level.html#dbus-connection-setup-with-g-main">dbus_connection_setup_with_g_main</a>
54
(DBusConnection *connection,
55
GMainContext *context);
56
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,
57
GMainContext *context);
51
void <a href="dbus-glib-DBus-GLib-low-level.html#dbus-set-g-error">dbus_set_g_error</a> (GError **gerror,
53
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,
54
GMainContext *context);
55
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,
56
GMainContext *context);
61
60
<div class="refsect1" lang="en">
62
<a name="id2530689"></a><h2>Description</h2>
61
<a name="id2594973"></a><h2>Description</h2>
64
63
These functions can be used to access lower level of DBus.</p>
69
68
<div class="refsect1" lang="en">
70
<a name="id2571951"></a><h2>Details</h2>
69
<a name="id2593367"></a><h2>Details</h2>
71
70
<div class="refsect2" lang="en">
72
<a name="id2571962"></a><h3>
71
<a name="id2593378"></a><h3>
73
72
<a name="dbus-set-g-error"></a>dbus_set_g_error ()</h3>
74
<a class="indexterm" name="id2571975"></a><pre class="programlisting">void dbus_set_g_error (GError **gerror,
75
DBusError *derror);</pre>
73
<a class="indexterm" name="id2593390"></a><pre class="programlisting">void dbus_set_g_error (GError **gerror,
74
DBusError *derror);</pre>
82
81
<col align="left" valign="top">
86
<span class="term"><em class="parameter"><code>gerror</code></em> :</span></td>
84
<td><span class="term"><em class="parameter"><code>gerror</code></em> :</span></td>
92
<span class="term"><em class="parameter"><code>derror</code></em> :</span></td>
89
<td><span class="term"><em class="parameter"><code>derror</code></em> :</span></td>
102
99
<div class="refsect2" lang="en">
103
<a name="id2572044"></a><h3>
100
<a name="id2593461"></a><h3>
104
101
<a name="dbus-connection-setup-with-g-main"></a>dbus_connection_setup_with_g_main ()</h3>
105
<a class="indexterm" name="id2572056"></a><pre class="programlisting">void dbus_connection_setup_with_g_main
106
(DBusConnection *connection,
107
GMainContext *context);</pre>
102
<a class="indexterm" name="id2589058"></a><pre class="programlisting">void dbus_connection_setup_with_g_main (DBusConnection *connection,
103
GMainContext *context);</pre>
109
105
Sets the watch and timeout functions of a <span class="type">DBusConnection</span>
110
106
to integrate the connection with the GLib main loop.
123
119
<col align="left" valign="top">
127
<span class="term"><em class="parameter"><code>connection</code></em> :</span></td>
122
<td><span class="term"><em class="parameter"><code>connection</code></em> :</span></td>
128
123
<td> the connection
133
<span class="term"><em class="parameter"><code>context</code></em> :</span></td>
127
<td><span class="term"><em class="parameter"><code>context</code></em> :</span></td>
134
128
<td> the <span class="type">GMainContext</span> or <span class="type">NULL</span> for default context
141
135
<div class="refsect2" lang="en">
142
<a name="id2525479"></a><h3>
136
<a name="id2569737"></a><h3>
143
137
<a name="dbus-server-setup-with-g-main"></a>dbus_server_setup_with_g_main ()</h3>
144
<a class="indexterm" name="id2525490"></a><pre class="programlisting">void dbus_server_setup_with_g_main (DBusServer *server,
145
GMainContext *context);</pre>
138
<a class="indexterm" name="id2569748"></a><pre class="programlisting">void dbus_server_setup_with_g_main (DBusServer *server,
139
GMainContext *context);</pre>
147
141
Sets the watch and timeout functions of a <span class="type">DBusServer</span>
148
142
to integrate the server with the GLib main loop.
160
154
<col align="left" valign="top">
164
<span class="term"><em class="parameter"><code>server</code></em> :</span></td>
157
<td><span class="term"><em class="parameter"><code>server</code></em> :</span></td>
170
<span class="term"><em class="parameter"><code>context</code></em> :</span></td>
162
<td><span class="term"><em class="parameter"><code>context</code></em> :</span></td>
171
163
<td> the <span class="type">GMainContext</span> or <span class="type">NULL</span> for default