Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:00:00

0001 /* GIO testing utilities
0002  *
0003  * Copyright (C) 2008-2010 Red Hat, Inc.
0004  * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
0005  *
0006  * SPDX-License-Identifier: LGPL-2.1-or-later
0007  *
0008  * This library is free software; you can redistribute it and/or
0009  * modify it under the terms of the GNU Lesser General Public
0010  * License as published by the Free Software Foundation; either
0011  * version 2.1 of the License, or (at your option) any later version.
0012  *
0013  * This library is distributed in the hope that it will be useful,
0014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0016  * Lesser General Public License for more details.
0017  *
0018  * You should have received a copy of the GNU Lesser General
0019  * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
0020  *
0021  * Authors: David Zeuthen <davidz@redhat.com>
0022  *          Xavier Claessens <xavier.claessens@collabora.co.uk>
0023  */
0024 
0025 #ifndef __G_TEST_DBUS_H__
0026 #define __G_TEST_DBUS_H__
0027 
0028 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
0029 #error "Only <gio/gio.h> can be included directly."
0030 #endif
0031 
0032 #include <gio/giotypes.h>
0033 
0034 G_BEGIN_DECLS
0035 
0036 #define G_TYPE_TEST_DBUS \
0037     (g_test_dbus_get_type ())
0038 #define G_TEST_DBUS(obj) \
0039     (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_TEST_DBUS, \
0040         GTestDBus))
0041 #define G_IS_TEST_DBUS(obj) \
0042     (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_TEST_DBUS))
0043 
0044 GIO_AVAILABLE_IN_2_34
0045 GType          g_test_dbus_get_type        (void) G_GNUC_CONST;
0046 
0047 GIO_AVAILABLE_IN_2_34
0048 GTestDBus *    g_test_dbus_new             (GTestDBusFlags flags);
0049 
0050 GIO_AVAILABLE_IN_2_34
0051 GTestDBusFlags g_test_dbus_get_flags       (GTestDBus     *self);
0052 
0053 GIO_AVAILABLE_IN_2_34
0054 const gchar *  g_test_dbus_get_bus_address (GTestDBus     *self);
0055 
0056 GIO_AVAILABLE_IN_2_34
0057 void           g_test_dbus_add_service_dir (GTestDBus     *self,
0058                                             const gchar   *path);
0059 
0060 GIO_AVAILABLE_IN_2_34
0061 void           g_test_dbus_up              (GTestDBus     *self);
0062 
0063 GIO_AVAILABLE_IN_2_34
0064 void           g_test_dbus_stop            (GTestDBus     *self);
0065 
0066 GIO_AVAILABLE_IN_2_34
0067 void           g_test_dbus_down            (GTestDBus     *self);
0068 
0069 GIO_AVAILABLE_IN_2_34
0070 void           g_test_dbus_unset           (void);
0071 
0072 G_END_DECLS
0073 
0074 #endif /* __G_TEST_DBUS_H__ */