gdbusobjectskeleton.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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_OBJECT_SKELETON_H__
  21. #define __G_DBUS_OBJECT_SKELETON_H__
  22. #include <gio/giotypes.h>
  23. G_BEGIN_DECLS
  24. #define G_TYPE_DBUS_OBJECT_SKELETON (g_dbus_object_skeleton_get_type ())
  25. #define G_DBUS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DBUS_OBJECT_SKELETON, GDBusObjectSkeleton))
  26. #define G_DBUS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_DBUS_OBJECT_SKELETON, GDBusObjectSkeletonClass))
  27. #define G_DBUS_OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DBUS_OBJECT_SKELETON, GDBusObjectSkeletonClass))
  28. #define G_IS_DBUS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DBUS_OBJECT_SKELETON))
  29. #define G_IS_DBUS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DBUS_OBJECT_SKELETON))
  30. typedef struct _GDBusObjectSkeletonClass GDBusObjectSkeletonClass;
  31. typedef struct _GDBusObjectSkeletonPrivate GDBusObjectSkeletonPrivate;
  32. /**
  33. * GDBusObjectSkeleton:
  34. *
  35. * The #GDBusObjectSkeleton structure contains private data and should only be
  36. * accessed using the provided API.
  37. *
  38. * Since: 2.30
  39. */
  40. struct _GDBusObjectSkeleton
  41. {
  42. /*< private >*/
  43. GObject parent_instance;
  44. GDBusObjectSkeletonPrivate *priv;
  45. };
  46. /**
  47. * GDBusObjectSkeletonClass:
  48. * @parent_class: The parent class.
  49. * @authorize_method: Signal class handler for the #GDBusObjectSkeleton::authorize-method signal.
  50. *
  51. * Class structure for #GDBusObjectSkeleton.
  52. *
  53. * Since: 2.30
  54. */
  55. struct _GDBusObjectSkeletonClass
  56. {
  57. GObjectClass parent_class;
  58. /* Signals */
  59. gboolean (*authorize_method) (GDBusObjectSkeleton *object,
  60. GDBusInterfaceSkeleton *interface_,
  61. GDBusMethodInvocation *invocation);
  62. /*< private >*/
  63. gpointer padding[8];
  64. };
  65. GLIB_AVAILABLE_IN_ALL
  66. GType g_dbus_object_skeleton_get_type (void) G_GNUC_CONST;
  67. GLIB_AVAILABLE_IN_ALL
  68. GDBusObjectSkeleton *g_dbus_object_skeleton_new (const gchar *object_path);
  69. GLIB_AVAILABLE_IN_ALL
  70. void g_dbus_object_skeleton_flush (GDBusObjectSkeleton *object);
  71. GLIB_AVAILABLE_IN_ALL
  72. void g_dbus_object_skeleton_add_interface (GDBusObjectSkeleton *object,
  73. GDBusInterfaceSkeleton *interface_);
  74. GLIB_AVAILABLE_IN_ALL
  75. void g_dbus_object_skeleton_remove_interface (GDBusObjectSkeleton *object,
  76. GDBusInterfaceSkeleton *interface_);
  77. GLIB_AVAILABLE_IN_ALL
  78. void g_dbus_object_skeleton_remove_interface_by_name (GDBusObjectSkeleton *object,
  79. const gchar *interface_name);
  80. GLIB_AVAILABLE_IN_ALL
  81. void g_dbus_object_skeleton_set_object_path (GDBusObjectSkeleton *object,
  82. const gchar *object_path);
  83. G_END_DECLS
  84. #endif /* __G_DBUS_OBJECT_SKELETON_H */