1 /* GIO testing utilities
3 * Copyright (C) 2008-2010 Red Hat, Inc.
4 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
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 of the License, or (at your option) any later version.
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.
16 * You should have received a copy of the GNU Lesser General
17 * Public License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
19 * Boston, MA 02111-1307, USA.
21 * Authors: David Zeuthen <davidz@redhat.com>
22 * Xavier Claessens <xavier.claessens@collabora.co.uk>
25 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
26 #error "Only <gio/gio.h> can be included directly."
29 #ifndef __G_TEST_DBUS_H__
30 #define __G_TEST_DBUS_H__
32 #include <gio/giotypes.h>
36 #define G_TYPE_TEST_DBUS \
37 (g_test_dbus_get_type ())
38 #define G_TEST_DBUS(obj) \
39 (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_TEST_DBUS, \
41 #define G_TEST_DBUS_CLASS(klass) \
42 (G_TYPE_CHECK_CLASS_CAST ((klass), G_TYPE_TEST_DBUS, \
44 #define G_IS_TEST_DBUS(obj) \
45 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_TEST_DBUS))
46 #define G_IS_TEST_DBUS_CLASS(klass) \
47 (G_TYPE_CHECK_CLASS_TYPE ((klass), G_TYPE_TEST_DBUS))
48 #define G_TEST_DBUS_GET_CLASS(obj) \
49 (G_TYPE_INSTANCE_GET_CLASS ((obj), G_TYPE_TEST_DBUS, \
52 GLIB_AVAILABLE_IN_2_34
53 GType g_test_dbus_get_type (void) G_GNUC_CONST;
55 GLIB_AVAILABLE_IN_2_34
56 GTestDBus * g_test_dbus_new (GTestDBusFlags flags);
58 GLIB_AVAILABLE_IN_2_34
59 GTestDBusFlags g_test_dbus_get_flags (GTestDBus *self);
61 GLIB_AVAILABLE_IN_2_34
62 const gchar * g_test_dbus_get_bus_address (GTestDBus *self);
64 GLIB_AVAILABLE_IN_2_34
65 void g_test_dbus_add_service_dir (GTestDBus *self,
68 GLIB_AVAILABLE_IN_2_34
69 void g_test_dbus_up (GTestDBus *self);
71 GLIB_AVAILABLE_IN_2_34
72 void g_test_dbus_stop (GTestDBus *self);
74 GLIB_AVAILABLE_IN_2_34
75 void g_test_dbus_down (GTestDBus *self);
77 GLIB_AVAILABLE_IN_2_34
78 void g_test_dbus_unset (void);
82 #endif /* __G_TEST_DBUS_H__ */