gtestdbus.h 2.3 KB

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