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_INTROSPECTION_H__
24 #define __G_DBUS_INTROSPECTION_H__
26 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
27 #error "Only <gio/gio.h> can be included directly."
30 #include <gio/giotypes.h>
31 #include <gio/tizen_header_glib.h> /* for TIZEN_PUBLIC_DEPRECATED_API */
36 * GDBusAnnotationInfo:
37 * @ref_count: The reference count or -1 if statically allocated.
38 * @key: The name of the annotation, e.g. "org.freedesktop.DBus.Deprecated".
39 * @value: The value of the annotation.
40 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
42 * Information about an annotation.
46 struct _GDBusAnnotationInfo
49 gint ref_count; /* (atomic) */
52 GDBusAnnotationInfo **annotations;
57 * @ref_count: The reference count or -1 if statically allocated.
58 * @name: Name of the argument, e.g. @unix_user_id.
59 * @signature: D-Bus signature of the argument (a single complete type).
60 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
62 * Information about an argument for a method or a signal.
69 gint ref_count; /* (atomic) */
72 GDBusAnnotationInfo **annotations;
77 * @ref_count: The reference count or -1 if statically allocated.
78 * @name: The name of the D-Bus method, e.g. @RequestName.
79 * @in_args: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusArgInfo structures or %NULL if there are no in arguments.
80 * @out_args: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusArgInfo structures or %NULL if there are no out arguments.
81 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
83 * Information about a method on an D-Bus interface.
87 struct _GDBusMethodInfo
90 gint ref_count; /* (atomic) */
92 GDBusArgInfo **in_args;
93 GDBusArgInfo **out_args;
94 GDBusAnnotationInfo **annotations;
99 * @ref_count: The reference count or -1 if statically allocated.
100 * @name: The name of the D-Bus signal, e.g. "NameOwnerChanged".
101 * @args: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusArgInfo structures or %NULL if there are no arguments.
102 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
104 * Information about a signal on a D-Bus interface.
108 struct _GDBusSignalInfo
111 gint ref_count; /* (atomic) */
114 GDBusAnnotationInfo **annotations;
119 * @ref_count: The reference count or -1 if statically allocated.
120 * @name: The name of the D-Bus property, e.g. "SupportedFilesystems".
121 * @signature: The D-Bus signature of the property (a single complete type).
122 * @flags: Access control flags for the property.
123 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
125 * Information about a D-Bus property on a D-Bus interface.
129 struct _GDBusPropertyInfo
132 gint ref_count; /* (atomic) */
135 GDBusPropertyInfoFlags flags;
136 GDBusAnnotationInfo **annotations;
140 * GDBusInterfaceInfo:
141 * @ref_count: The reference count or -1 if statically allocated.
142 * @name: The name of the D-Bus interface, e.g. "org.freedesktop.DBus.Properties".
143 * @methods: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusMethodInfo structures or %NULL if there are no methods.
144 * @signals: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusSignalInfo structures or %NULL if there are no signals.
145 * @properties: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusPropertyInfo structures or %NULL if there are no properties.
146 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
148 * Information about a D-Bus interface.
152 struct _GDBusInterfaceInfo
155 gint ref_count; /* (atomic) */
157 GDBusMethodInfo **methods;
158 GDBusSignalInfo **signals;
159 GDBusPropertyInfo **properties;
160 GDBusAnnotationInfo **annotations;
165 * @ref_count: The reference count or -1 if statically allocated.
166 * @path: The path of the node or %NULL if omitted. Note that this may be a relative path. See the D-Bus specification for more details.
167 * @interfaces: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusInterfaceInfo structures or %NULL if there are no interfaces.
168 * @nodes: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusNodeInfo structures or %NULL if there are no nodes.
169 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
171 * Information about nodes in a remote object hierarchy.
175 struct _GDBusNodeInfo
178 gint ref_count; /* (atomic) */
180 GDBusInterfaceInfo **interfaces;
181 GDBusNodeInfo **nodes;
182 GDBusAnnotationInfo **annotations;
186 const gchar *g_dbus_annotation_info_lookup (GDBusAnnotationInfo **annotations,
187 const gchar *name) TIZEN_PUBLIC_DEPRECATED_API;
189 GDBusMethodInfo *g_dbus_interface_info_lookup_method (GDBusInterfaceInfo *info,
190 const gchar *name) TIZEN_PUBLIC_DEPRECATED_API;
192 GDBusSignalInfo *g_dbus_interface_info_lookup_signal (GDBusInterfaceInfo *info,
193 const gchar *name) TIZEN_PUBLIC_DEPRECATED_API;
195 GDBusPropertyInfo *g_dbus_interface_info_lookup_property (GDBusInterfaceInfo *info,
196 const gchar *name) TIZEN_PUBLIC_DEPRECATED_API;
198 void g_dbus_interface_info_cache_build (GDBusInterfaceInfo *info) TIZEN_PUBLIC_DEPRECATED_API;
200 void g_dbus_interface_info_cache_release (GDBusInterfaceInfo *info) TIZEN_PUBLIC_DEPRECATED_API;
203 void g_dbus_interface_info_generate_xml (GDBusInterfaceInfo *info,
205 GString *string_builder) TIZEN_PUBLIC_DEPRECATED_API;
208 GDBusNodeInfo *g_dbus_node_info_new_for_xml (const gchar *xml_data,
209 GError **error) TIZEN_PUBLIC_DEPRECATED_API;
211 GDBusInterfaceInfo *g_dbus_node_info_lookup_interface (GDBusNodeInfo *info,
212 const gchar *name) TIZEN_PUBLIC_DEPRECATED_API;
214 void g_dbus_node_info_generate_xml (GDBusNodeInfo *info,
216 GString *string_builder) TIZEN_PUBLIC_DEPRECATED_API;
219 GDBusNodeInfo *g_dbus_node_info_ref (GDBusNodeInfo *info) TIZEN_PUBLIC_DEPRECATED_API;
221 GDBusInterfaceInfo *g_dbus_interface_info_ref (GDBusInterfaceInfo *info) TIZEN_PUBLIC_DEPRECATED_API;
223 GDBusMethodInfo *g_dbus_method_info_ref (GDBusMethodInfo *info) TIZEN_PUBLIC_DEPRECATED_API;
225 GDBusSignalInfo *g_dbus_signal_info_ref (GDBusSignalInfo *info) TIZEN_PUBLIC_DEPRECATED_API;
227 GDBusPropertyInfo *g_dbus_property_info_ref (GDBusPropertyInfo *info) TIZEN_PUBLIC_DEPRECATED_API;
229 GDBusArgInfo *g_dbus_arg_info_ref (GDBusArgInfo *info) TIZEN_PUBLIC_DEPRECATED_API;
231 GDBusAnnotationInfo *g_dbus_annotation_info_ref (GDBusAnnotationInfo *info) TIZEN_PUBLIC_DEPRECATED_API;
234 void g_dbus_node_info_unref (GDBusNodeInfo *info) TIZEN_PUBLIC_DEPRECATED_API;
236 void g_dbus_interface_info_unref (GDBusInterfaceInfo *info) TIZEN_PUBLIC_DEPRECATED_API;
238 void g_dbus_method_info_unref (GDBusMethodInfo *info) TIZEN_PUBLIC_DEPRECATED_API;
240 void g_dbus_signal_info_unref (GDBusSignalInfo *info) TIZEN_PUBLIC_DEPRECATED_API;
242 void g_dbus_property_info_unref (GDBusPropertyInfo *info) TIZEN_PUBLIC_DEPRECATED_API;
244 void g_dbus_arg_info_unref (GDBusArgInfo *info) TIZEN_PUBLIC_DEPRECATED_API;
246 void g_dbus_annotation_info_unref (GDBusAnnotationInfo *info) TIZEN_PUBLIC_DEPRECATED_API;
249 * G_TYPE_DBUS_NODE_INFO:
251 * The #GType for a boxed type holding a #GDBusNodeInfo.
255 #define G_TYPE_DBUS_NODE_INFO (g_dbus_node_info_get_type ())
258 * G_TYPE_DBUS_INTERFACE_INFO:
260 * The #GType for a boxed type holding a #GDBusInterfaceInfo.
264 #define G_TYPE_DBUS_INTERFACE_INFO (g_dbus_interface_info_get_type ())
267 * G_TYPE_DBUS_METHOD_INFO:
269 * The #GType for a boxed type holding a #GDBusMethodInfo.
273 #define G_TYPE_DBUS_METHOD_INFO (g_dbus_method_info_get_type ())
276 * G_TYPE_DBUS_SIGNAL_INFO:
278 * The #GType for a boxed type holding a #GDBusSignalInfo.
282 #define G_TYPE_DBUS_SIGNAL_INFO (g_dbus_signal_info_get_type ())
285 * G_TYPE_DBUS_PROPERTY_INFO:
287 * The #GType for a boxed type holding a #GDBusPropertyInfo.
291 #define G_TYPE_DBUS_PROPERTY_INFO (g_dbus_property_info_get_type ())
294 * G_TYPE_DBUS_ARG_INFO:
296 * The #GType for a boxed type holding a #GDBusArgInfo.
300 #define G_TYPE_DBUS_ARG_INFO (g_dbus_arg_info_get_type ())
303 * G_TYPE_DBUS_ANNOTATION_INFO:
305 * The #GType for a boxed type holding a #GDBusAnnotationInfo.
309 #define G_TYPE_DBUS_ANNOTATION_INFO (g_dbus_annotation_info_get_type ())
312 GType g_dbus_node_info_get_type (void) G_GNUC_CONST TIZEN_PUBLIC_DEPRECATED_API;
314 GType g_dbus_interface_info_get_type (void) G_GNUC_CONST TIZEN_PUBLIC_DEPRECATED_API;
316 GType g_dbus_method_info_get_type (void) G_GNUC_CONST TIZEN_PUBLIC_DEPRECATED_API;
318 GType g_dbus_signal_info_get_type (void) G_GNUC_CONST TIZEN_PUBLIC_DEPRECATED_API;
320 GType g_dbus_property_info_get_type (void) G_GNUC_CONST TIZEN_PUBLIC_DEPRECATED_API;
322 GType g_dbus_arg_info_get_type (void) G_GNUC_CONST TIZEN_PUBLIC_DEPRECATED_API;
324 GType g_dbus_annotation_info_get_type (void) G_GNUC_CONST TIZEN_PUBLIC_DEPRECATED_API;
328 #endif /* __G_DBUS_INTROSPECTION_H__ */