Module: Gio::DBusInterface

Defined in:
(unknown)

Overview

The GDBus::Interface type is the base type for D-Bus interfaces both on the service side (see GDBus::InterfaceSkeleton) and client side (see GDBus::Proxy).

Instance Method Summary collapse

Instance Method Details

#dup_object(interface_) ⇒ Gio::DBusObject

reference should be freed with g_object_unref().

Parameters:

Returns:

#get_info(interface_) ⇒ Gio::DBusInterfaceInfo

Returns A GDBus::InterfaceInfo. Do not free.

Parameters:

Returns:

  • (Gio::DBusInterfaceInfo)

    A GDBus::InterfaceInfo. Do not free.

#get_object(interface_) ⇒ Gio::DBusObject

Returns A GDBus::Object or nil. The returned reference belongs to interface_ and should not be freed.

Parameters:

Returns:

  • (Gio::DBusObject)

    A GDBus::Object or nil. The returned reference belongs to interface_ and should not be freed.

#infoGio::DBusInterfaceInfo

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

Returns:

  • (Gio::DBusInterfaceInfo)

    A GDBus::InterfaceInfo. Do not free.

#objectGio::DBusObject

Gets the GDBus::Object that interface_ belongs to, if any.

It is not safe to use the returned object if interface_ or the returned object is being used from other threads. See g_dbus_interface_dup_object() for a thread-safe alternative.

Returns:

  • (Gio::DBusObject)

    A GDBus::Object or nil. The returned reference belongs to interface_ and should not be freed.

#object=(object) ⇒ nil

Sets the GDBus::Object for interface_ to object.

Note that interface_ will hold a weak reference to object.

Parameters:

Returns:

  • (nil)

#set_object(interface_, object) ⇒ nil

Parameters:

Returns:

  • (nil)