Gio.DBusObject.get_interface

### Method

# Gio DBusObjectget_interface

since: 2.30

#### Declaration [src]

    GDBusInterface*
    g_dbus_object_get_interface (
      GDBusObject* object,
      const gchar* interface_name
    )

#### Description [src]

Gets the D-Bus interface with name `interface_name` associated with `object`, if any.

Available since: 2.30

#### Parameters

`interface_name`

  Type: `const gchar*`

  A D-Bus interface name.

  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.

#### Return value

Type: `GDBusInterface`

`NULL` if not found, otherwise a `GDBusInterface` that must be freed with g_object_unref().

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The return value can be `NULL`.