### Virtual Method

# Gio DBusInterface set_object

since: 2.30

#### Declaration

    void
    set_object (
      GDBusInterface* interface_,
      GDBusObject* object
    )

#### Description

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

Note that `interface_` will hold a weak reference to `object`.

Available since: 2.30

#### Parameters

`object`

  Type: `GDBusObject`

  A `GDBusObject` or `NULL`.

  The argument can be `NULL`.
  The data is owned by the caller of the function.