gdbusinterfaceskeleton.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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 <[email protected]>
  19. */
  20. #ifndef __G_DBUS_INTERFACE_SKELETON_H__
  21. #define __G_DBUS_INTERFACE_SKELETON_H__
  22. #include <gio/giotypes.h>
  23. G_BEGIN_DECLS
  24. #define G_TYPE_DBUS_INTERFACE_SKELETON (g_dbus_interface_skeleton_get_type ())
  25. #define G_DBUS_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DBUS_INTERFACE_SKELETON, GDBusInterfaceSkeleton))
  26. #define G_DBUS_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_DBUS_INTERFACE_SKELETON, GDBusInterfaceSkeletonClass))
  27. #define G_DBUS_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DBUS_INTERFACE_SKELETON, GDBusInterfaceSkeletonClass))
  28. #define G_IS_DBUS_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DBUS_INTERFACE_SKELETON))
  29. #define G_IS_DBUS_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DBUS_INTERFACE_SKELETON))
  30. typedef struct _GDBusInterfaceSkeletonClass GDBusInterfaceSkeletonClass;
  31. typedef struct _GDBusInterfaceSkeletonPrivate GDBusInterfaceSkeletonPrivate;
  32. /**
  33. * GDBusInterfaceSkeleton:
  34. *
  35. * The #GDBusInterfaceSkeleton structure contains private data and should
  36. * only be accessed using the provided API.
  37. *
  38. * Since: 2.30
  39. */
  40. struct _GDBusInterfaceSkeleton
  41. {
  42. /*< private >*/
  43. GObject parent_instance;
  44. GDBusInterfaceSkeletonPrivate *priv;
  45. };
  46. /**
  47. * GDBusInterfaceSkeletonClass:
  48. * @parent_class: The parent class.
  49. * @get_info: Returns a #GDBusInterfaceInfo. See g_dbus_interface_skeleton_get_info() for details.
  50. * @get_vtable: Returns a #GDBusInterfaceVTable. See g_dbus_interface_skeleton_get_vtable() for details.
  51. * @get_properties: Returns a #GVariant with all properties. See g_dbus_interface_skeleton_get_properties().
  52. * @flush: Emits outstanding changes, if any. See g_dbus_interface_skeleton_flush().
  53. * @g_authorize_method: Signal class handler for the #GDBusInterfaceSkeleton::g-authorize-method signal.
  54. *
  55. * Class structure for #GDBusInterfaceSkeleton.
  56. *
  57. * Since: 2.30
  58. */
  59. struct _GDBusInterfaceSkeletonClass
  60. {
  61. GObjectClass parent_class;
  62. /* Virtual Functions */
  63. GDBusInterfaceInfo *(*get_info) (GDBusInterfaceSkeleton *interface_);
  64. GDBusInterfaceVTable *(*get_vtable) (GDBusInterfaceSkeleton *interface_);
  65. GVariant *(*get_properties) (GDBusInterfaceSkeleton *interface_);
  66. void (*flush) (GDBusInterfaceSkeleton *interface_);
  67. /*< private >*/
  68. gpointer vfunc_padding[8];
  69. /*< public >*/
  70. /* Signals */
  71. gboolean (*g_authorize_method) (GDBusInterfaceSkeleton *interface_,
  72. GDBusMethodInvocation *invocation);
  73. /*< private >*/
  74. gpointer signal_padding[8];
  75. };
  76. GLIB_AVAILABLE_IN_ALL
  77. GType g_dbus_interface_skeleton_get_type (void) G_GNUC_CONST;
  78. GLIB_AVAILABLE_IN_ALL
  79. GDBusInterfaceSkeletonFlags g_dbus_interface_skeleton_get_flags (GDBusInterfaceSkeleton *interface_);
  80. GLIB_AVAILABLE_IN_ALL
  81. void g_dbus_interface_skeleton_set_flags (GDBusInterfaceSkeleton *interface_,
  82. GDBusInterfaceSkeletonFlags flags);
  83. GLIB_AVAILABLE_IN_ALL
  84. GDBusInterfaceInfo *g_dbus_interface_skeleton_get_info (GDBusInterfaceSkeleton *interface_);
  85. GLIB_AVAILABLE_IN_ALL
  86. GDBusInterfaceVTable *g_dbus_interface_skeleton_get_vtable (GDBusInterfaceSkeleton *interface_);
  87. GLIB_AVAILABLE_IN_ALL
  88. GVariant *g_dbus_interface_skeleton_get_properties (GDBusInterfaceSkeleton *interface_);
  89. GLIB_AVAILABLE_IN_ALL
  90. void g_dbus_interface_skeleton_flush (GDBusInterfaceSkeleton *interface_);
  91. GLIB_AVAILABLE_IN_ALL
  92. gboolean g_dbus_interface_skeleton_export (GDBusInterfaceSkeleton *interface_,
  93. GDBusConnection *connection,
  94. const gchar *object_path,
  95. GError **error);
  96. GLIB_AVAILABLE_IN_ALL
  97. void g_dbus_interface_skeleton_unexport (GDBusInterfaceSkeleton *interface_);
  98. GLIB_AVAILABLE_IN_ALL
  99. void g_dbus_interface_skeleton_unexport_from_connection (GDBusInterfaceSkeleton *interface_,
  100. GDBusConnection *connection);
  101. GLIB_AVAILABLE_IN_ALL
  102. GDBusConnection *g_dbus_interface_skeleton_get_connection (GDBusInterfaceSkeleton *interface_);
  103. GLIB_AVAILABLE_IN_ALL
  104. GList *g_dbus_interface_skeleton_get_connections (GDBusInterfaceSkeleton *interface_);
  105. GLIB_AVAILABLE_IN_ALL
  106. gboolean g_dbus_interface_skeleton_has_connection (GDBusInterfaceSkeleton *interface_,
  107. GDBusConnection *connection);
  108. GLIB_AVAILABLE_IN_ALL
  109. const gchar *g_dbus_interface_skeleton_get_object_path (GDBusInterfaceSkeleton *interface_);
  110. G_END_DECLS
  111. #endif /* __G_DBUS_INTERFACE_SKELETON_H */