1/* GIO testing utilities
2 *
3 * Copyright (C) 2008-2010 Red Hat, Inc.
4 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General
17 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 *
19 * Authors: David Zeuthen <davidz@redhat.com>
20 * Xavier Claessens <xavier.claessens@collabora.co.uk>
21 */
22
23#ifndef __G_TEST_DBUS_H__
24#define __G_TEST_DBUS_H__
25
26#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
27#error "Only <gio/gio.h> can be included directly."
28#endif
29
30#include <gio/giotypes.h>
31
32G_BEGIN_DECLS
33
34#define G_TYPE_TEST_DBUS \
35 (g_test_dbus_get_type ())
36#define G_TEST_DBUS(obj) \
37 (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_TEST_DBUS, \
38 GTestDBus))
39#define G_IS_TEST_DBUS(obj) \
40 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_TEST_DBUS))
41
42GLIB_AVAILABLE_IN_2_34
43GType g_test_dbus_get_type (void) G_GNUC_CONST;
44
45GLIB_AVAILABLE_IN_2_34
46GTestDBus * g_test_dbus_new (GTestDBusFlags flags);
47
48GLIB_AVAILABLE_IN_2_34
49GTestDBusFlags g_test_dbus_get_flags (GTestDBus *self);
50
51GLIB_AVAILABLE_IN_2_34
52const gchar * g_test_dbus_get_bus_address (GTestDBus *self);
53
54GLIB_AVAILABLE_IN_2_34
55void g_test_dbus_add_service_dir (GTestDBus *self,
56 const gchar *path);
57
58GLIB_AVAILABLE_IN_2_34
59void g_test_dbus_up (GTestDBus *self);
60
61GLIB_AVAILABLE_IN_2_34
62void g_test_dbus_stop (GTestDBus *self);
63
64GLIB_AVAILABLE_IN_2_34
65void g_test_dbus_down (GTestDBus *self);
66
67GLIB_AVAILABLE_IN_2_34
68void g_test_dbus_unset (void);
69
70G_END_DECLS
71
72#endif /* __G_TEST_DBUS_H__ */
73

source code of gtk/subprojects/glib/gio/gtestdbus.h