Blame gio/gdbusintrospection.h

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