Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdbusintrospection.h
Go to the documentation of this file.
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_INTROSPECTION_H__
24#define __G_DBUS_INTROSPECTION_H__
25
26#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
27#error "Only <gio/gio.h> can be included directly."
28#endif
29
30#include <gio/giotypes.h>
31
33
34/**
35 * GDBusAnnotationInfo:
36 * @ref_count: The reference count or -1 if statically allocated.
37 * @key: The name of the annotation, e.g. "org.freedesktop.DBus.Deprecated".
38 * @value: The value of the annotation.
39 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
40 *
41 * Information about an annotation.
42 *
43 * Since: 2.26
44 */
46{
47 /*< public >*/
48 gint ref_count; /* (atomic) */
52};
53
54/**
55 * GDBusArgInfo:
56 * @ref_count: The reference count or -1 if statically allocated.
57 * @name: Name of the argument, e.g. @unix_user_id.
58 * @signature: D-Bus signature of the argument (a single complete type).
59 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
60 *
61 * Information about an argument for a method or a signal.
62 *
63 * Since: 2.26
64 */
66{
67 /*< public >*/
68 gint ref_count; /* (atomic) */
72};
73
74/**
75 * GDBusMethodInfo:
76 * @ref_count: The reference count or -1 if statically allocated.
77 * @name: The name of the D-Bus method, e.g. @RequestName.
78 * @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.
79 * @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.
80 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
81 *
82 * Information about a method on a D-Bus interface.
83 *
84 * Since: 2.26
85 */
95
96/**
97 * GDBusSignalInfo:
98 * @ref_count: The reference count or -1 if statically allocated.
99 * @name: The name of the D-Bus signal, e.g. "NameOwnerChanged".
100 * @args: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusArgInfo structures or %NULL if there are no arguments.
101 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
102 *
103 * Information about a signal on a D-Bus interface.
104 *
105 * Since: 2.26
106 */
108{
109 /*< public >*/
110 gint ref_count; /* (atomic) */
114};
115
116/**
117 * GDBusPropertyInfo:
118 * @ref_count: The reference count or -1 if statically allocated.
119 * @name: The name of the D-Bus property, e.g. "SupportedFilesystems".
120 * @signature: The D-Bus signature of the property (a single complete type).
121 * @flags: Access control flags for the property.
122 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
123 *
124 * Information about a D-Bus property on a D-Bus interface.
125 *
126 * Since: 2.26
127 */
137
138/**
139 * GDBusInterfaceInfo:
140 * @ref_count: The reference count or -1 if statically allocated.
141 * @name: The name of the D-Bus interface, e.g. "org.freedesktop.DBus.Properties".
142 * @methods: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusMethodInfo structures or %NULL if there are no methods.
143 * @signals: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusSignalInfo structures or %NULL if there are no signals.
144 * @properties: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusPropertyInfo structures or %NULL if there are no properties.
145 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
146 *
147 * Information about a D-Bus interface.
148 *
149 * Since: 2.26
150 */
161
162/**
163 * GDBusNodeInfo:
164 * @ref_count: The reference count or -1 if statically allocated.
165 * @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.
166 * @interfaces: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusInterfaceInfo structures or %NULL if there are no interfaces.
167 * @nodes: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusNodeInfo structures or %NULL if there are no nodes.
168 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
169 *
170 * Information about nodes in a remote object hierarchy.
171 *
172 * Since: 2.26
173 */
183
186 const gchar *name);
189 const gchar *name);
192 const gchar *name);
195 const gchar *name);
200
203 guint indent,
204 GString *string_builder);
205
208 GError **error);
211 const gchar *name);
214 guint indent,
215 GString *string_builder);
216
231
246
247/**
248 * G_TYPE_DBUS_NODE_INFO:
249 *
250 * The #GType for a boxed type holding a #GDBusNodeInfo.
251 *
252 * Since: 2.26
253 */
254#define G_TYPE_DBUS_NODE_INFO (g_dbus_node_info_get_type ())
255
256/**
257 * G_TYPE_DBUS_INTERFACE_INFO:
258 *
259 * The #GType for a boxed type holding a #GDBusInterfaceInfo.
260 *
261 * Since: 2.26
262 */
263#define G_TYPE_DBUS_INTERFACE_INFO (g_dbus_interface_info_get_type ())
264
265/**
266 * G_TYPE_DBUS_METHOD_INFO:
267 *
268 * The #GType for a boxed type holding a #GDBusMethodInfo.
269 *
270 * Since: 2.26
271 */
272#define G_TYPE_DBUS_METHOD_INFO (g_dbus_method_info_get_type ())
273
274/**
275 * G_TYPE_DBUS_SIGNAL_INFO:
276 *
277 * The #GType for a boxed type holding a #GDBusSignalInfo.
278 *
279 * Since: 2.26
280 */
281#define G_TYPE_DBUS_SIGNAL_INFO (g_dbus_signal_info_get_type ())
282
283/**
284 * G_TYPE_DBUS_PROPERTY_INFO:
285 *
286 * The #GType for a boxed type holding a #GDBusPropertyInfo.
287 *
288 * Since: 2.26
289 */
290#define G_TYPE_DBUS_PROPERTY_INFO (g_dbus_property_info_get_type ())
291
292/**
293 * G_TYPE_DBUS_ARG_INFO:
294 *
295 * The #GType for a boxed type holding a #GDBusArgInfo.
296 *
297 * Since: 2.26
298 */
299#define G_TYPE_DBUS_ARG_INFO (g_dbus_arg_info_get_type ())
300
301/**
302 * G_TYPE_DBUS_ANNOTATION_INFO:
303 *
304 * The #GType for a boxed type holding a #GDBusAnnotationInfo.
305 *
306 * Since: 2.26
307 */
308#define G_TYPE_DBUS_ANNOTATION_INFO (g_dbus_annotation_info_get_type ())
309
324
326
327#endif /* __G_DBUS_INTROSPECTION_H__ */
GIO_AVAILABLE_IN_ALL GDBusMethodInfo * g_dbus_method_info_ref(GDBusMethodInfo *info)
GIO_AVAILABLE_IN_ALL void g_dbus_interface_info_cache_build(GDBusInterfaceInfo *info)
GIO_AVAILABLE_IN_ALL GDBusPropertyInfo * g_dbus_interface_info_lookup_property(GDBusInterfaceInfo *info, const gchar *name)
GIO_AVAILABLE_IN_ALL void g_dbus_signal_info_unref(GDBusSignalInfo *info)
GIO_AVAILABLE_IN_ALL GType g_dbus_interface_info_get_type(void) G_GNUC_CONST
GIO_AVAILABLE_IN_ALL void g_dbus_interface_info_unref(GDBusInterfaceInfo *info)
GIO_AVAILABLE_IN_ALL GType g_dbus_node_info_get_type(void) G_GNUC_CONST
GIO_AVAILABLE_IN_ALL void g_dbus_interface_info_cache_release(GDBusInterfaceInfo *info)
GIO_AVAILABLE_IN_ALL void g_dbus_arg_info_unref(GDBusArgInfo *info)
GIO_AVAILABLE_IN_ALL GDBusSignalInfo * g_dbus_signal_info_ref(GDBusSignalInfo *info)
GIO_AVAILABLE_IN_ALL void g_dbus_annotation_info_unref(GDBusAnnotationInfo *info)
GIO_AVAILABLE_IN_ALL void g_dbus_property_info_unref(GDBusPropertyInfo *info)
GIO_AVAILABLE_IN_ALL const gchar * g_dbus_annotation_info_lookup(GDBusAnnotationInfo **annotations, const gchar *name)
GIO_AVAILABLE_IN_ALL void g_dbus_method_info_unref(GDBusMethodInfo *info)
GIO_AVAILABLE_IN_ALL GDBusInterfaceInfo * g_dbus_interface_info_ref(GDBusInterfaceInfo *info)
GIO_AVAILABLE_IN_ALL GDBusNodeInfo * g_dbus_node_info_new_for_xml(const gchar *xml_data, GError **error)
GIO_AVAILABLE_IN_ALL GType g_dbus_arg_info_get_type(void) G_GNUC_CONST
GIO_AVAILABLE_IN_ALL GDBusAnnotationInfo * g_dbus_annotation_info_ref(GDBusAnnotationInfo *info)
GIO_AVAILABLE_IN_ALL GType g_dbus_method_info_get_type(void) G_GNUC_CONST
GIO_AVAILABLE_IN_ALL GDBusMethodInfo * g_dbus_interface_info_lookup_method(GDBusInterfaceInfo *info, const gchar *name)
GIO_AVAILABLE_IN_ALL GType g_dbus_annotation_info_get_type(void) G_GNUC_CONST
GIO_AVAILABLE_IN_ALL GDBusNodeInfo * g_dbus_node_info_ref(GDBusNodeInfo *info)
GIO_AVAILABLE_IN_ALL void g_dbus_interface_info_generate_xml(GDBusInterfaceInfo *info, guint indent, GString *string_builder)
GIO_AVAILABLE_IN_ALL GDBusPropertyInfo * g_dbus_property_info_ref(GDBusPropertyInfo *info)
GIO_AVAILABLE_IN_ALL GDBusSignalInfo * g_dbus_interface_info_lookup_signal(GDBusInterfaceInfo *info, const gchar *name)
GIO_AVAILABLE_IN_ALL GType g_dbus_signal_info_get_type(void) G_GNUC_CONST
GIO_AVAILABLE_IN_ALL void g_dbus_node_info_unref(GDBusNodeInfo *info)
GIO_AVAILABLE_IN_ALL GType g_dbus_property_info_get_type(void) G_GNUC_CONST
GIO_AVAILABLE_IN_ALL void g_dbus_node_info_generate_xml(GDBusNodeInfo *info, guint indent, GString *string_builder)
GIO_AVAILABLE_IN_ALL GDBusInterfaceInfo * g_dbus_node_info_lookup_interface(GDBusNodeInfo *info, const gchar *name)
GIO_AVAILABLE_IN_ALL GDBusArgInfo * g_dbus_arg_info_ref(GDBusArgInfo *info)
#define GIO_AVAILABLE_IN_ALL
GDBusPropertyInfoFlags
Definition gioenums.h:1367
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
typedefG_BEGIN_DECLS struct _GString GString
Definition gstring.h:43
gsize GType
Definition gtype.h:427
G_BEGIN_DECLS typedef char gchar
Definition gtypes.h:52
int gint
Definition gtypes.h:55
unsigned int guint
Definition gtypes.h:61
const char * name
Definition lsqlite3.c:2154
static void error(LoadState *S, const char *why)
GDBusAnnotationInfo ** annotations
GDBusAnnotationInfo ** annotations
GDBusAnnotationInfo ** annotations
GDBusSignalInfo ** signals
GDBusMethodInfo ** methods
GDBusPropertyInfo ** properties
GDBusArgInfo ** out_args
GDBusArgInfo ** in_args
GDBusAnnotationInfo ** annotations
GDBusInterfaceInfo ** interfaces
GDBusNodeInfo ** nodes
GDBusAnnotationInfo ** annotations
GDBusAnnotationInfo ** annotations
GDBusPropertyInfoFlags flags
GDBusAnnotationInfo ** annotations
GDBusArgInfo ** args