Blame gio/gdbusintrospection.h

Packit ae235b
/* GDBus - GLib D-Bus Library
Packit ae235b
 *
Packit ae235b
 * Copyright (C) 2008-2010 Red Hat, Inc.
Packit ae235b
 *
Packit ae235b
 * This library is free software; you can redistribute it and/or
Packit ae235b
 * modify it under the terms of the GNU Lesser General Public
Packit ae235b
 * License as published by the Free Software Foundation; either
Packit ae235b
 * version 2.1 of the License, or (at your option) any later version.
Packit ae235b
 *
Packit ae235b
 * This library is distributed in the hope that it will be useful,
Packit ae235b
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit ae235b
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit ae235b
 * Lesser General Public License for more details.
Packit ae235b
 *
Packit ae235b
 * You should have received a copy of the GNU Lesser General
Packit ae235b
 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit ae235b
 *
Packit ae235b
 * Author: David Zeuthen <davidz@redhat.com>
Packit ae235b
 */
Packit ae235b
Packit ae235b
#ifndef __G_DBUS_INTROSPECTION_H__
Packit ae235b
#define __G_DBUS_INTROSPECTION_H__
Packit ae235b
Packit ae235b
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
Packit ae235b
#error "Only <gio/gio.h> can be included directly."
Packit ae235b
#endif
Packit ae235b
Packit ae235b
#include <gio/giotypes.h>
Packit ae235b
Packit ae235b
G_BEGIN_DECLS
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusAnnotationInfo:
Packit ae235b
 * @ref_count: The reference count or -1 if statically allocated.
Packit ae235b
 * @key: The name of the annotation, e.g. "org.freedesktop.DBus.Deprecated".
Packit ae235b
 * @value: The value of the annotation.
Packit ae235b
 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
Packit ae235b
 *
Packit ae235b
 * Information about an annotation.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
struct _GDBusAnnotationInfo
Packit ae235b
{
Packit ae235b
  /*< public >*/
Packit ae235b
  volatile gint         ref_count;
Packit ae235b
  gchar                *key;
Packit ae235b
  gchar                *value;
Packit ae235b
  GDBusAnnotationInfo **annotations;
Packit ae235b
};
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusArgInfo:
Packit ae235b
 * @ref_count: The reference count or -1 if statically allocated.
Packit ae235b
 * @name: Name of the argument, e.g. @unix_user_id.
Packit ae235b
 * @signature: D-Bus signature of the argument (a single complete type).
Packit ae235b
 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
Packit ae235b
 *
Packit ae235b
 * Information about an argument for a method or a signal.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
struct _GDBusArgInfo
Packit ae235b
{
Packit ae235b
  /*< public >*/
Packit ae235b
  volatile gint         ref_count;
Packit ae235b
  gchar                *name;
Packit ae235b
  gchar                *signature;
Packit ae235b
  GDBusAnnotationInfo **annotations;
Packit ae235b
};
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusMethodInfo:
Packit ae235b
 * @ref_count: The reference count or -1 if statically allocated.
Packit ae235b
 * @name: The name of the D-Bus method, e.g. @RequestName.
Packit ae235b
 * @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.
Packit ae235b
 * @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.
Packit ae235b
 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
Packit ae235b
 *
Packit ae235b
 * Information about a method on an D-Bus interface.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
struct _GDBusMethodInfo
Packit ae235b
{
Packit ae235b
  /*< public >*/
Packit ae235b
  volatile gint         ref_count;
Packit ae235b
  gchar                *name;
Packit ae235b
  GDBusArgInfo        **in_args;
Packit ae235b
  GDBusArgInfo        **out_args;
Packit ae235b
  GDBusAnnotationInfo **annotations;
Packit ae235b
};
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusSignalInfo:
Packit ae235b
 * @ref_count: The reference count or -1 if statically allocated.
Packit ae235b
 * @name: The name of the D-Bus signal, e.g. "NameOwnerChanged".
Packit ae235b
 * @args: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusArgInfo structures or %NULL if there are no arguments.
Packit ae235b
 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
Packit ae235b
 *
Packit ae235b
 * Information about a signal on a D-Bus interface.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
struct _GDBusSignalInfo
Packit ae235b
{
Packit ae235b
  /*< public >*/
Packit ae235b
  volatile gint         ref_count;
Packit ae235b
  gchar                *name;
Packit ae235b
  GDBusArgInfo        **args;
Packit ae235b
  GDBusAnnotationInfo **annotations;
Packit ae235b
};
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusPropertyInfo:
Packit ae235b
 * @ref_count: The reference count or -1 if statically allocated.
Packit ae235b
 * @name: The name of the D-Bus property, e.g. "SupportedFilesystems".
Packit ae235b
 * @signature: The D-Bus signature of the property (a single complete type).
Packit ae235b
 * @flags: Access control flags for the property.
Packit ae235b
 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
Packit ae235b
 *
Packit ae235b
 * Information about a D-Bus property on a D-Bus interface.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
struct _GDBusPropertyInfo
Packit ae235b
{
Packit ae235b
  /*< public >*/
Packit ae235b
  volatile gint             ref_count;
Packit ae235b
  gchar                    *name;
Packit ae235b
  gchar                    *signature;
Packit ae235b
  GDBusPropertyInfoFlags    flags;
Packit ae235b
  GDBusAnnotationInfo     **annotations;
Packit ae235b
};
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusInterfaceInfo:
Packit ae235b
 * @ref_count: The reference count or -1 if statically allocated.
Packit ae235b
 * @name: The name of the D-Bus interface, e.g. "org.freedesktop.DBus.Properties".
Packit ae235b
 * @methods: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusMethodInfo structures or %NULL if there are no methods.
Packit ae235b
 * @signals: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusSignalInfo structures or %NULL if there are no signals.
Packit ae235b
 * @properties: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusPropertyInfo structures or %NULL if there are no properties.
Packit ae235b
 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
Packit ae235b
 *
Packit ae235b
 * Information about a D-Bus interface.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
struct _GDBusInterfaceInfo
Packit ae235b
{
Packit ae235b
  /*< public >*/
Packit ae235b
  volatile gint         ref_count;
Packit ae235b
  gchar                *name;
Packit ae235b
  GDBusMethodInfo     **methods;
Packit ae235b
  GDBusSignalInfo     **signals;
Packit ae235b
  GDBusPropertyInfo   **properties;
Packit ae235b
  GDBusAnnotationInfo **annotations;
Packit ae235b
};
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * GDBusNodeInfo:
Packit ae235b
 * @ref_count: The reference count or -1 if statically allocated.
Packit ae235b
 * @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.
Packit ae235b
 * @interfaces: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusInterfaceInfo structures or %NULL if there are no interfaces.
Packit ae235b
 * @nodes: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusNodeInfo structures or %NULL if there are no nodes.
Packit ae235b
 * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
Packit ae235b
 *
Packit ae235b
 * Information about nodes in a remote object hierarchy.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
struct _GDBusNodeInfo
Packit ae235b
{
Packit ae235b
  /*< public >*/
Packit ae235b
  volatile gint         ref_count;
Packit ae235b
  gchar                *path;
Packit ae235b
  GDBusInterfaceInfo  **interfaces;
Packit ae235b
  GDBusNodeInfo       **nodes;
Packit ae235b
  GDBusAnnotationInfo **annotations;
Packit ae235b
};
Packit ae235b
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
const gchar        *g_dbus_annotation_info_lookup          (GDBusAnnotationInfo **annotations,
Packit ae235b
                                                            const gchar          *name);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GDBusMethodInfo    *g_dbus_interface_info_lookup_method    (GDBusInterfaceInfo   *info,
Packit ae235b
                                                            const gchar          *name);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GDBusSignalInfo    *g_dbus_interface_info_lookup_signal    (GDBusInterfaceInfo   *info,
Packit ae235b
                                                            const gchar          *name);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GDBusPropertyInfo  *g_dbus_interface_info_lookup_property  (GDBusInterfaceInfo   *info,
Packit ae235b
                                                            const gchar          *name);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void                g_dbus_interface_info_cache_build      (GDBusInterfaceInfo   *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void                g_dbus_interface_info_cache_release    (GDBusInterfaceInfo   *info);
Packit ae235b
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void                g_dbus_interface_info_generate_xml     (GDBusInterfaceInfo   *info,
Packit ae235b
                                                            guint                 indent,
Packit ae235b
                                                            GString              *string_builder);
Packit ae235b
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GDBusNodeInfo      *g_dbus_node_info_new_for_xml           (const gchar          *xml_data,
Packit ae235b
                                                            GError              **error);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GDBusInterfaceInfo *g_dbus_node_info_lookup_interface      (GDBusNodeInfo        *info,
Packit ae235b
                                                            const gchar          *name);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void                g_dbus_node_info_generate_xml          (GDBusNodeInfo        *info,
Packit ae235b
                                                            guint                 indent,
Packit ae235b
                                                            GString              *string_builder);
Packit ae235b
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GDBusNodeInfo       *g_dbus_node_info_ref                  (GDBusNodeInfo        *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GDBusInterfaceInfo  *g_dbus_interface_info_ref             (GDBusInterfaceInfo   *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GDBusMethodInfo     *g_dbus_method_info_ref                (GDBusMethodInfo      *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GDBusSignalInfo     *g_dbus_signal_info_ref                (GDBusSignalInfo      *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GDBusPropertyInfo   *g_dbus_property_info_ref              (GDBusPropertyInfo    *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GDBusArgInfo        *g_dbus_arg_info_ref                   (GDBusArgInfo         *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GDBusAnnotationInfo *g_dbus_annotation_info_ref            (GDBusAnnotationInfo  *info);
Packit ae235b
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void                 g_dbus_node_info_unref                (GDBusNodeInfo        *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void                 g_dbus_interface_info_unref           (GDBusInterfaceInfo   *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void                 g_dbus_method_info_unref              (GDBusMethodInfo      *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void                 g_dbus_signal_info_unref              (GDBusSignalInfo      *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void                 g_dbus_property_info_unref            (GDBusPropertyInfo    *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void                 g_dbus_arg_info_unref                 (GDBusArgInfo         *info);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
void                 g_dbus_annotation_info_unref          (GDBusAnnotationInfo  *info);
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_TYPE_DBUS_NODE_INFO:
Packit ae235b
 *
Packit ae235b
 * The #GType for a boxed type holding a #GDBusNodeInfo.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
#define G_TYPE_DBUS_NODE_INFO       (g_dbus_node_info_get_type ())
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_TYPE_DBUS_INTERFACE_INFO:
Packit ae235b
 *
Packit ae235b
 * The #GType for a boxed type holding a #GDBusInterfaceInfo.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
#define G_TYPE_DBUS_INTERFACE_INFO  (g_dbus_interface_info_get_type ())
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_TYPE_DBUS_METHOD_INFO:
Packit ae235b
 *
Packit ae235b
 * The #GType for a boxed type holding a #GDBusMethodInfo.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
#define G_TYPE_DBUS_METHOD_INFO     (g_dbus_method_info_get_type ())
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_TYPE_DBUS_SIGNAL_INFO:
Packit ae235b
 *
Packit ae235b
 * The #GType for a boxed type holding a #GDBusSignalInfo.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
#define G_TYPE_DBUS_SIGNAL_INFO     (g_dbus_signal_info_get_type ())
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_TYPE_DBUS_PROPERTY_INFO:
Packit ae235b
 *
Packit ae235b
 * The #GType for a boxed type holding a #GDBusPropertyInfo.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
#define G_TYPE_DBUS_PROPERTY_INFO   (g_dbus_property_info_get_type ())
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_TYPE_DBUS_ARG_INFO:
Packit ae235b
 *
Packit ae235b
 * The #GType for a boxed type holding a #GDBusArgInfo.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
#define G_TYPE_DBUS_ARG_INFO        (g_dbus_arg_info_get_type ())
Packit ae235b
Packit ae235b
/**
Packit ae235b
 * G_TYPE_DBUS_ANNOTATION_INFO:
Packit ae235b
 *
Packit ae235b
 * The #GType for a boxed type holding a #GDBusAnnotationInfo.
Packit ae235b
 *
Packit ae235b
 * Since: 2.26
Packit ae235b
 */
Packit ae235b
#define G_TYPE_DBUS_ANNOTATION_INFO (g_dbus_annotation_info_get_type ())
Packit ae235b
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GType g_dbus_node_info_get_type       (void) G_GNUC_CONST;
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GType g_dbus_interface_info_get_type  (void) G_GNUC_CONST;
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GType g_dbus_method_info_get_type     (void) G_GNUC_CONST;
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GType g_dbus_signal_info_get_type     (void) G_GNUC_CONST;
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GType g_dbus_property_info_get_type   (void) G_GNUC_CONST;
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GType g_dbus_arg_info_get_type        (void) G_GNUC_CONST;
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GType g_dbus_annotation_info_get_type (void) G_GNUC_CONST;
Packit ae235b
Packit ae235b
G_END_DECLS
Packit ae235b
Packit ae235b
#endif /* __G_DBUS_INTROSPECTION_H__ */