1 /* GDBus - GLib D-Bus Library
3 * Copyright (C) 2008-2010 Red Hat, Inc.
5 * SPDX-License-Identifier: LGPL-2.1-or-later
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General
18 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
20 * Author: David Zeuthen <davidz@redhat.com>
23 #ifndef __G_DBUS_INTERFACE_SKELETON_H__
24 #define __G_DBUS_INTERFACE_SKELETON_H__
26 #include <gio/giotypes.h>
27 #include <gio/tizen_header_glib.h> /* for TIZEN_PUBLIC_DEPRECATED_API */
31 #define G_TYPE_DBUS_INTERFACE_SKELETON (g_dbus_interface_skeleton_get_type ())
32 #define G_DBUS_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DBUS_INTERFACE_SKELETON, GDBusInterfaceSkeleton))
33 #define G_DBUS_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_DBUS_INTERFACE_SKELETON, GDBusInterfaceSkeletonClass))
34 #define G_DBUS_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DBUS_INTERFACE_SKELETON, GDBusInterfaceSkeletonClass))
35 #define G_IS_DBUS_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DBUS_INTERFACE_SKELETON))
36 #define G_IS_DBUS_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DBUS_INTERFACE_SKELETON))
38 typedef struct _GDBusInterfaceSkeletonClass GDBusInterfaceSkeletonClass;
39 typedef struct _GDBusInterfaceSkeletonPrivate GDBusInterfaceSkeletonPrivate;
41 struct _GDBusInterfaceSkeleton
44 GObject parent_instance;
45 GDBusInterfaceSkeletonPrivate *priv;
49 * GDBusInterfaceSkeletonClass:
50 * @parent_class: The parent class.
51 * @get_info: Returns a #GDBusInterfaceInfo. See g_dbus_interface_skeleton_get_info() for details.
52 * @get_vtable: Returns a #GDBusInterfaceVTable. See g_dbus_interface_skeleton_get_vtable() for details.
53 * @get_properties: Returns a #GVariant with all properties. See g_dbus_interface_skeleton_get_properties().
54 * @flush: Emits outstanding changes, if any. See g_dbus_interface_skeleton_flush().
55 * @g_authorize_method: Signal class handler for the #GDBusInterfaceSkeleton::g-authorize-method signal.
57 * Class structure for #GDBusInterfaceSkeleton.
61 struct _GDBusInterfaceSkeletonClass
63 GObjectClass parent_class;
65 /* Virtual Functions */
66 GDBusInterfaceInfo *(*get_info) (GDBusInterfaceSkeleton *interface_);
67 GDBusInterfaceVTable *(*get_vtable) (GDBusInterfaceSkeleton *interface_);
68 GVariant *(*get_properties) (GDBusInterfaceSkeleton *interface_);
69 void (*flush) (GDBusInterfaceSkeleton *interface_);
72 gpointer vfunc_padding[8];
76 gboolean (*g_authorize_method) (GDBusInterfaceSkeleton *interface_,
77 GDBusMethodInvocation *invocation);
80 gpointer signal_padding[8];
84 GType g_dbus_interface_skeleton_get_type (void) G_GNUC_CONST TIZEN_PUBLIC_DEPRECATED_API;
86 GDBusInterfaceSkeletonFlags g_dbus_interface_skeleton_get_flags (GDBusInterfaceSkeleton *interface_) TIZEN_PUBLIC_DEPRECATED_API;
88 void g_dbus_interface_skeleton_set_flags (GDBusInterfaceSkeleton *interface_,
89 GDBusInterfaceSkeletonFlags flags) TIZEN_PUBLIC_DEPRECATED_API;
91 GDBusInterfaceInfo *g_dbus_interface_skeleton_get_info (GDBusInterfaceSkeleton *interface_) TIZEN_PUBLIC_DEPRECATED_API;
93 GDBusInterfaceVTable *g_dbus_interface_skeleton_get_vtable (GDBusInterfaceSkeleton *interface_) TIZEN_PUBLIC_DEPRECATED_API;
95 GVariant *g_dbus_interface_skeleton_get_properties (GDBusInterfaceSkeleton *interface_) TIZEN_PUBLIC_DEPRECATED_API;
97 void g_dbus_interface_skeleton_flush (GDBusInterfaceSkeleton *interface_) TIZEN_PUBLIC_DEPRECATED_API;
100 gboolean g_dbus_interface_skeleton_export (GDBusInterfaceSkeleton *interface_,
101 GDBusConnection *connection,
102 const gchar *object_path,
103 GError **error) TIZEN_PUBLIC_DEPRECATED_API;
105 void g_dbus_interface_skeleton_unexport (GDBusInterfaceSkeleton *interface_) TIZEN_PUBLIC_DEPRECATED_API;
107 void g_dbus_interface_skeleton_unexport_from_connection (GDBusInterfaceSkeleton *interface_,
108 GDBusConnection *connection) TIZEN_PUBLIC_DEPRECATED_API;
111 GDBusConnection *g_dbus_interface_skeleton_get_connection (GDBusInterfaceSkeleton *interface_) TIZEN_PUBLIC_DEPRECATED_API;
113 GList *g_dbus_interface_skeleton_get_connections (GDBusInterfaceSkeleton *interface_) TIZEN_PUBLIC_DEPRECATED_API;
115 gboolean g_dbus_interface_skeleton_has_connection (GDBusInterfaceSkeleton *interface_,
116 GDBusConnection *connection) TIZEN_PUBLIC_DEPRECATED_API;
118 const gchar *g_dbus_interface_skeleton_get_object_path (GDBusInterfaceSkeleton *interface_) TIZEN_PUBLIC_DEPRECATED_API;
122 #endif /* __G_DBUS_INTERFACE_SKELETON_H */