gdbusobjectmanagerclient.h 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /* GDBus - GLib D-Bus Library
  2. *
  3. * Copyright (C) 2008-2010 Red Hat, Inc.
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General
  16. * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
  17. *
  18. * Author: David Zeuthen <davidz@redhat.com>
  19. */
  20. #ifndef __G_DBUS_OBJECT_MANAGER_CLIENT_H__
  21. #define __G_DBUS_OBJECT_MANAGER_CLIENT_H__
  22. #include <gio/giotypes.h>
  23. G_BEGIN_DECLS
  24. #define G_TYPE_DBUS_OBJECT_MANAGER_CLIENT (g_dbus_object_manager_client_get_type ())
  25. #define G_DBUS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DBUS_OBJECT_MANAGER_CLIENT, GDBusObjectManagerClient))
  26. #define G_DBUS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_DBUS_OBJECT_MANAGER_CLIENT, GDBusObjectManagerClientClass))
  27. #define G_DBUS_OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DBUS_OBJECT_MANAGER_CLIENT, GDBusObjectManagerClientClass))
  28. #define G_IS_DBUS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DBUS_OBJECT_MANAGER_CLIENT))
  29. #define G_IS_DBUS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DBUS_OBJECT_MANAGER_CLIENT))
  30. typedef struct _GDBusObjectManagerClientClass GDBusObjectManagerClientClass;
  31. typedef struct _GDBusObjectManagerClientPrivate GDBusObjectManagerClientPrivate;
  32. /**
  33. * GDBusObjectManagerClient:
  34. *
  35. * The #GDBusObjectManagerClient structure contains private data and should
  36. * only be accessed using the provided API.
  37. *
  38. * Since: 2.30
  39. */
  40. struct _GDBusObjectManagerClient
  41. {
  42. /*< private >*/
  43. GObject parent_instance;
  44. GDBusObjectManagerClientPrivate *priv;
  45. };
  46. /**
  47. * GDBusObjectManagerClientClass:
  48. * @parent_class: The parent class.
  49. * @interface_proxy_signal: Signal class handler for the #GDBusObjectManagerClient::interface-proxy-signal signal.
  50. * @interface_proxy_properties_changed: Signal class handler for the #GDBusObjectManagerClient::interface-proxy-properties-changed signal.
  51. *
  52. * Class structure for #GDBusObjectManagerClient.
  53. *
  54. * Since: 2.30
  55. */
  56. struct _GDBusObjectManagerClientClass
  57. {
  58. GObjectClass parent_class;
  59. /* signals */
  60. void (*interface_proxy_signal) (GDBusObjectManagerClient *manager,
  61. GDBusObjectProxy *object_proxy,
  62. GDBusProxy *interface_proxy,
  63. const gchar *sender_name,
  64. const gchar *signal_name,
  65. GVariant *parameters);
  66. void (*interface_proxy_properties_changed) (GDBusObjectManagerClient *manager,
  67. GDBusObjectProxy *object_proxy,
  68. GDBusProxy *interface_proxy,
  69. GVariant *changed_properties,
  70. const gchar* const *invalidated_properties);
  71. /*< private >*/
  72. gpointer padding[8];
  73. };
  74. GLIB_AVAILABLE_IN_ALL
  75. GType g_dbus_object_manager_client_get_type (void) G_GNUC_CONST;
  76. GLIB_AVAILABLE_IN_ALL
  77. void g_dbus_object_manager_client_new (GDBusConnection *connection,
  78. GDBusObjectManagerClientFlags flags,
  79. const gchar *name,
  80. const gchar *object_path,
  81. GDBusProxyTypeFunc get_proxy_type_func,
  82. gpointer get_proxy_type_user_data,
  83. GDestroyNotify get_proxy_type_destroy_notify,
  84. GCancellable *cancellable,
  85. GAsyncReadyCallback callback,
  86. gpointer user_data);
  87. GLIB_AVAILABLE_IN_ALL
  88. GDBusObjectManager *g_dbus_object_manager_client_new_finish (GAsyncResult *res,
  89. GError **error);
  90. GLIB_AVAILABLE_IN_ALL
  91. GDBusObjectManager *g_dbus_object_manager_client_new_sync (GDBusConnection *connection,
  92. GDBusObjectManagerClientFlags flags,
  93. const gchar *name,
  94. const gchar *object_path,
  95. GDBusProxyTypeFunc get_proxy_type_func,
  96. gpointer get_proxy_type_user_data,
  97. GDestroyNotify get_proxy_type_destroy_notify,
  98. GCancellable *cancellable,
  99. GError **error);
  100. GLIB_AVAILABLE_IN_ALL
  101. void g_dbus_object_manager_client_new_for_bus (GBusType bus_type,
  102. GDBusObjectManagerClientFlags flags,
  103. const gchar *name,
  104. const gchar *object_path,
  105. GDBusProxyTypeFunc get_proxy_type_func,
  106. gpointer get_proxy_type_user_data,
  107. GDestroyNotify get_proxy_type_destroy_notify,
  108. GCancellable *cancellable,
  109. GAsyncReadyCallback callback,
  110. gpointer user_data);
  111. GLIB_AVAILABLE_IN_ALL
  112. GDBusObjectManager *g_dbus_object_manager_client_new_for_bus_finish (GAsyncResult *res,
  113. GError **error);
  114. GLIB_AVAILABLE_IN_ALL
  115. GDBusObjectManager *g_dbus_object_manager_client_new_for_bus_sync (GBusType bus_type,
  116. GDBusObjectManagerClientFlags flags,
  117. const gchar *name,
  118. const gchar *object_path,
  119. GDBusProxyTypeFunc get_proxy_type_func,
  120. gpointer get_proxy_type_user_data,
  121. GDestroyNotify get_proxy_type_destroy_notify,
  122. GCancellable *cancellable,
  123. GError **error);
  124. GLIB_AVAILABLE_IN_ALL
  125. GDBusConnection *g_dbus_object_manager_client_get_connection (GDBusObjectManagerClient *manager);
  126. GLIB_AVAILABLE_IN_ALL
  127. GDBusObjectManagerClientFlags g_dbus_object_manager_client_get_flags (GDBusObjectManagerClient *manager);
  128. GLIB_AVAILABLE_IN_ALL
  129. const gchar *g_dbus_object_manager_client_get_name (GDBusObjectManagerClient *manager);
  130. GLIB_AVAILABLE_IN_ALL
  131. gchar *g_dbus_object_manager_client_get_name_owner (GDBusObjectManagerClient *manager);
  132. G_END_DECLS
  133. #endif /* __G_DBUS_OBJECT_MANAGER_CLIENT_H */