|  |  |  | GIO Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Prerequisites | Known Implementations | ||||
#include <gio/gio.h>
                    GDBusInterface;
struct              GDBusInterfaceIface;
GDBusInterfaceInfo * g_dbus_interface_get_info          (GDBusInterface *interface_);
GDBusObject *       g_dbus_interface_get_object         (GDBusInterface *interface_);
void                g_dbus_interface_set_object         (GDBusInterface *interface_,
                                                         GDBusObject *object);
The GDBusInterface type is the base type for D-Bus interfaces both on the service side (see GDBusInterfaceSkeleton) and client side (see GDBusProxy).
typedef struct _GDBusInterface GDBusInterface;
Base type for D-Bus interfaces.
Since 2.30
struct GDBusInterfaceIface {
  GTypeInterface parent_iface;
  /* Virtual Functions */
  GDBusInterfaceInfo   *(*get_info)   (GDBusInterface      *interface_);
  GDBusObject          *(*get_object) (GDBusInterface      *interface_);
  void                  (*set_object) (GDBusInterface      *interface_,
                                       GDBusObject         *object);
};
Base type for D-Bus interfaces.
| GTypeInterface  | The parent interface. | 
| Returns a GDBusInterfaceInfo. See g_dbus_interface_get_info(). | |
| Gets the enclosing GDBusObject. See g_dbus_interface_get_object(). | |
| Sets the enclosing GDBusObject. See g_dbus_interface_set_object(). | 
Since 2.30
GDBusInterfaceInfo * g_dbus_interface_get_info          (GDBusInterface *interface_);
Gets D-Bus introspection information for the D-Bus interface
implemented by interface_.
| 
 | An exported D-Bus interface. | 
| Returns : | A GDBusInterfaceInfo. Do not free. [transfer none] | 
Since 2.30
GDBusObject *       g_dbus_interface_get_object         (GDBusInterface *interface_);
Gets the GDBusObject that interface_ belongs to, if any.
| 
 | An exported D-Bus interface. | 
| Returns : | A GDBusObject or NULL. The returned
reference belongs tointerface_and should not be freed. [transfer none] | 
Since 2.30
void g_dbus_interface_set_object (GDBusInterface *interface_,GDBusObject *object);
Sets the GDBusObject for interface_ to object.
Note that interface_ will hold a weak reference to object.
| 
 | An exported D-Bus interface. | 
| 
 | A GDBusObject or NULL. | 
Since 2.30