### Interface

# Gio DBusInterface

since: 2.30

#### Description [src]

    interface Gio.DBusInterface : GObject.Object

Base type for D-Bus interfaces.

The `GDBusInterface` type is the base type for D-Bus interfaces both on the service side (see `GDBusInterfaceSkeleton`) and client side (see `GDBusProxy`).

Available since: 2.30

#### Prerequisite

In order to implement DBusInterface, your type must inherit from`GObject`.

#### Implementations

- GDBusInterfaceSkeleton
- GDBusProxy

#### Instance methods

###### g_dbus_interface_dup_object

Gets the `GDBusObject` that `interface_` belongs to, if any.

since: 2.32

###### g_dbus_interface_get_info

Gets D-Bus introspection information for the D-Bus interface implemented by `interface_`.

since: 2.30

###### g_dbus_interface_get_object

Gets the `GDBusObject` that `interface_` belongs to, if any.

since: 2.30

###### g_dbus_interface_set_object

Sets the `GDBusObject` for `interface_` to `object`.

since: 2.30

#### Interface structure

    struct GioDBusInterfaceIface {
      GTypeInterface parent_iface;
      GDBusInterfaceInfo* (* get_info) (
        GDBusInterface* interface_
      );
      GDBusObject* (* get_object) (
        GDBusInterface* interface_
      );
      void (* set_object) (
        GDBusInterface* interface_,
        GDBusObject* object
      );
      GDBusObject* (* dup_object) (
        GDBusInterface* interface_
      );

    }

Base type for D-Bus interfaces.

###### Interface members

`parent_iface` |
    GTypeInterface
| The parent interface.
`get_info` |
    GDBusInterfaceInfo* (* get_info) (
        GDBusInterface* interface_
      )
| Returns a `GDBusInterfaceInfo`. See g_dbus_interface_get_info().
`get_object` |
    GDBusObject* (* get_object) (
        GDBusInterface* interface_
      )
| Gets the enclosing `GDBusObject`. See g_dbus_interface_get_object().
`set_object` |
    void (* set_object) (
        GDBusInterface* interface_,
        GDBusObject* object
      )
| Sets the enclosing `GDBusObject`. See g_dbus_interface_set_object().
`dup_object` |
    GDBusObject* (* dup_object) (
        GDBusInterface* interface_
      )
| Gets a reference to the enclosing `GDBusObject`. See g_dbus_interface_dup_object(). Added in 2.32.

#### Virtual methods

###### Gio.DBusInterface.dup_object

Gets the `GDBusObject` that `interface_` belongs to, if any.

since: 2.32

###### Gio.DBusInterface.get_info

Gets D-Bus introspection information for the D-Bus interface implemented by `interface_`.

since: 2.30

###### Gio.DBusInterface.get_object

Gets the `GDBusObject` that `interface_` belongs to, if any.

since: 2.30

###### Gio.DBusInterface.set_object

Sets the `GDBusObject` for `interface_` to `object`.

since: 2.30