tizen: kdbus: make i explicitly positive in make_single_header_vector
[platform/upstream/glib.git] / gio / gdbusinterfaceskeleton.h
1 /* GDBus - GLib D-Bus Library
2  *
3  * Copyright (C) 2008-2010 Red Hat, Inc.
4  *
5  * SPDX-License-Identifier: LGPL-2.1-or-later
6  *
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.
11  *
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.
16  *
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/>.
19  *
20  * Author: David Zeuthen <davidz@redhat.com>
21  */
22
23 #ifndef __G_DBUS_INTERFACE_SKELETON_H__
24 #define __G_DBUS_INTERFACE_SKELETON_H__
25
26 #include <gio/giotypes.h>
27 #include <gio/tizen_header_glib.h>  /* for TIZEN_PUBLIC_DEPRECATED_API */
28
29 G_BEGIN_DECLS
30
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))
37
38 typedef struct _GDBusInterfaceSkeletonClass   GDBusInterfaceSkeletonClass;
39 typedef struct _GDBusInterfaceSkeletonPrivate GDBusInterfaceSkeletonPrivate;
40
41 struct _GDBusInterfaceSkeleton
42 {
43   /*< private >*/
44   GObject parent_instance;
45   GDBusInterfaceSkeletonPrivate *priv;
46 };
47
48 /**
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.
56  *
57  * Class structure for #GDBusInterfaceSkeleton.
58  *
59  * Since: 2.30
60  */
61 struct _GDBusInterfaceSkeletonClass
62 {
63   GObjectClass parent_class;
64
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_);
70
71   /*< private >*/
72   gpointer vfunc_padding[8];
73   /*< public >*/
74
75   /* Signals */
76   gboolean (*g_authorize_method) (GDBusInterfaceSkeleton  *interface_,
77                                   GDBusMethodInvocation   *invocation);
78
79   /*< private >*/
80   gpointer signal_padding[8];
81 };
82
83 GIO_AVAILABLE_IN_ALL
84 GType                        g_dbus_interface_skeleton_get_type        (void) G_GNUC_CONST TIZEN_PUBLIC_DEPRECATED_API;
85 GIO_AVAILABLE_IN_ALL
86 GDBusInterfaceSkeletonFlags  g_dbus_interface_skeleton_get_flags       (GDBusInterfaceSkeleton      *interface_) TIZEN_PUBLIC_DEPRECATED_API;
87 GIO_AVAILABLE_IN_ALL
88 void                         g_dbus_interface_skeleton_set_flags       (GDBusInterfaceSkeleton      *interface_,
89                                                                         GDBusInterfaceSkeletonFlags  flags) TIZEN_PUBLIC_DEPRECATED_API;
90 GIO_AVAILABLE_IN_ALL
91 GDBusInterfaceInfo          *g_dbus_interface_skeleton_get_info        (GDBusInterfaceSkeleton      *interface_) TIZEN_PUBLIC_DEPRECATED_API;
92 GIO_AVAILABLE_IN_ALL
93 GDBusInterfaceVTable        *g_dbus_interface_skeleton_get_vtable      (GDBusInterfaceSkeleton      *interface_) TIZEN_PUBLIC_DEPRECATED_API;
94 GIO_AVAILABLE_IN_ALL
95 GVariant                    *g_dbus_interface_skeleton_get_properties  (GDBusInterfaceSkeleton      *interface_) TIZEN_PUBLIC_DEPRECATED_API;
96 GIO_AVAILABLE_IN_ALL
97 void                         g_dbus_interface_skeleton_flush           (GDBusInterfaceSkeleton      *interface_) TIZEN_PUBLIC_DEPRECATED_API;
98
99 GIO_AVAILABLE_IN_ALL
100 gboolean                     g_dbus_interface_skeleton_export          (GDBusInterfaceSkeleton      *interface_,
101                                                                         GDBusConnection             *connection,
102                                                                         const gchar                 *object_path,
103                                                                         GError                     **error) TIZEN_PUBLIC_DEPRECATED_API;
104 GIO_AVAILABLE_IN_ALL
105 void                         g_dbus_interface_skeleton_unexport        (GDBusInterfaceSkeleton      *interface_) TIZEN_PUBLIC_DEPRECATED_API;
106 GIO_AVAILABLE_IN_ALL
107 void                g_dbus_interface_skeleton_unexport_from_connection (GDBusInterfaceSkeleton      *interface_,
108                                                                         GDBusConnection             *connection) TIZEN_PUBLIC_DEPRECATED_API;
109
110 GIO_AVAILABLE_IN_ALL
111 GDBusConnection             *g_dbus_interface_skeleton_get_connection  (GDBusInterfaceSkeleton      *interface_) TIZEN_PUBLIC_DEPRECATED_API;
112 GIO_AVAILABLE_IN_ALL
113 GList                       *g_dbus_interface_skeleton_get_connections (GDBusInterfaceSkeleton      *interface_) TIZEN_PUBLIC_DEPRECATED_API;
114 GIO_AVAILABLE_IN_ALL
115 gboolean                     g_dbus_interface_skeleton_has_connection  (GDBusInterfaceSkeleton      *interface_,
116                                                                         GDBusConnection             *connection) TIZEN_PUBLIC_DEPRECATED_API;
117 GIO_AVAILABLE_IN_ALL
118 const gchar                 *g_dbus_interface_skeleton_get_object_path (GDBusInterfaceSkeleton      *interface_) TIZEN_PUBLIC_DEPRECATED_API;
119
120 G_END_DECLS
121
122 #endif /* __G_DBUS_INTERFACE_SKELETON_H */