~ubuntu-branches/ubuntu/vivid/glib2.0/vivid-proposed

« back to all changes in this revision

Viewing changes to docs/reference/gio/html/GTestDBus.html

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2014-03-24 20:58:34 UTC
  • mfrom: (1.66.13)
  • Revision ID: package-import@ubuntu.com-20140324205834-8hsgok8k36ftocqa
Tags: 2.40.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
</td>
59
59
</tr>
60
60
<tr>
61
 
<td class="function_type">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
 
61
<td class="function_type">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
62
62
</td>
63
63
<td class="function_name">
64
64
<a class="link" href="GTestDBus.html#g-test-dbus-get-bus-address" title="g_test_dbus_get_bus_address ()">g_test_dbus_get_bus_address</a> <span class="c_punctuation">()</span>
143
143
</div>
144
144
<div class="refsect1">
145
145
<a name="GTestDBus.object-hierarchy"></a><h2>Object Hierarchy</h2>
146
 
<pre class="screen">    <a href="/home/desrt/.cache/jhbuild/install/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html">GFlags</a>
 
146
<pre class="screen">    <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Enumeration-and-Flag-Types.html">GFlags</a>
147
147
    <span class="lineart">╰──</span> GTestDBusFlags
148
 
    <a href="../gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
 
148
    <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
149
149
    <span class="lineart">╰──</span> GTestDBus
150
150
</pre>
151
151
</div>
312
312
<hr>
313
313
<div class="refsect2">
314
314
<a name="g-test-dbus-get-bus-address"></a><h3>g_test_dbus_get_bus_address ()</h3>
315
 
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
 
315
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
316
316
g_test_dbus_get_bus_address (<em class="parameter"><code><a class="link" href="GTestDBus.html" title="GTestDBus"><span class="type">GTestDBus</span></a> *self</code></em>);</pre>
317
317
<p>Get the address on which dbus-daemon is running. If <a class="link" href="GTestDBus.html#g-test-dbus-up" title="g_test_dbus_up ()"><code class="function">g_test_dbus_up()</code></a> has not
318
 
been called yet, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned. This can be used with
 
318
been called yet, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned. This can be used with
319
319
<a class="link" href="GDBusConnection.html#g-dbus-connection-new-for-address" title="g_dbus_connection_new_for_address ()"><code class="function">g_dbus_connection_new_for_address()</code></a>.</p>
320
320
<div class="refsect3">
321
321
<a name="id-1.4.25.2.9.4.5"></a><h4>Parameters</h4>
334
334
</div>
335
335
<div class="refsect3">
336
336
<a name="id-1.4.25.2.9.4.6"></a><h4>Returns</h4>
337
 
<p> the address of the bus, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p>
 
337
<p> the address of the bus, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p>
338
338
<p><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></p>
339
339
</div>
340
340
</div>
343
343
<a name="g-test-dbus-add-service-dir"></a><h3>g_test_dbus_add_service_dir ()</h3>
344
344
<pre class="programlisting"><span class="returnvalue">void</span>
345
345
g_test_dbus_add_service_dir (<em class="parameter"><code><a class="link" href="GTestDBus.html" title="GTestDBus"><span class="type">GTestDBus</span></a> *self</code></em>,
346
 
                             <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *path</code></em>);</pre>
 
346
                             <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *path</code></em>);</pre>
347
347
<p>Add a path where dbus-daemon will look up .service files. This can't be
348
348
called after <a class="link" href="GTestDBus.html#g-test-dbus-up" title="g_test_dbus_up ()"><code class="function">g_test_dbus_up()</code></a>.</p>
349
349
<div class="refsect3">
376
376
g_test_dbus_up (<em class="parameter"><code><a class="link" href="GTestDBus.html" title="GTestDBus"><span class="type">GTestDBus</span></a> *self</code></em>);</pre>
377
377
<p>Start a dbus-daemon instance and set DBUS_SESSION_BUS_ADDRESS. After this
378
378
call, it is safe for unit tests to start sending messages on the session bus.</p>
379
 
<p>If this function is called from setup callback of <a href="../glib/glib-Testing.html#g-test-add"><code class="function">g_test_add()</code></a>,
 
379
<p>If this function is called from setup callback of <a href="http://library.gnome.org/devel/glib/unstable/glib-Testing.html#g-test-add"><code class="function">g_test_add()</code></a>,
380
380
<a class="link" href="GTestDBus.html#g-test-dbus-down" title="g_test_dbus_down ()"><code class="function">g_test_dbus_down()</code></a> must be called in its teardown callback.</p>
381
381
<p>If this function is called from unit test's <code class="function">main()</code>, then <a class="link" href="GTestDBus.html#g-test-dbus-down" title="g_test_dbus_down ()"><code class="function">g_test_dbus_down()</code></a>
382
 
must be called after <a href="../glib/glib-Testing.html#g-test-run"><code class="function">g_test_run()</code></a>.</p>
 
382
must be called after <a href="http://library.gnome.org/devel/glib/unstable/glib-Testing.html#g-test-run"><code class="function">g_test_run()</code></a>.</p>
383
383
<div class="refsect3">
384
384
<a name="id-1.4.25.2.9.6.7"></a><h4>Parameters</h4>
385
385
<div class="informaltable"><table width="100%" border="0">