2.8 <GDBusInterface>

Interface: <GDBusInterface>

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>).

Procedures

Method: dbus-interface:get-info self ⇒ %return
Method: get-info self ⇒ %return

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

This can return #f if no <GDBusInterfaceInfo> was provided during construction of self and is also not made available otherwise. For example, <GDBusProxy> implements <GDBusInterface> but allows for a #f <GDBusInterfaceInfo>.

self

Passed: a <GDBusInterface>.

An exported D-Bus interface.

%return

Returned: a <GDBusInterfaceInfo>, or #f.

A <GDBusInterfaceInfo>. Do not free.

Method: dbus-interface:get-object self ⇒ %return
Method: get-object self ⇒ %return

Gets the <GDBusObject> that self belongs to, if any.

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

self

Passed: a <GDBusInterface>.

An exported D-Bus interface

%return

Returned: a <GDBusObject>, or #f.

A <GDBusObject> or #f. The returned reference belongs to self and should not be freed.

Method: dbus-interface:set-object self [object]
Method: set-object self [object]

Sets the <GDBusObject> for self to object.

Note that self will hold a weak reference to object.

self

Passed: a <GDBusInterface>.

An exported D-Bus interface.

object

Passed, or left out: a <GDBusObject>, or #f.

A <GDBusObject> or #f.

Virtual methods

Virtual method: dbus-interface:do-dup-object implementor self ⇒ %return

Gets the <GDBusObject> that self belongs to, if any.

To override it in a new class, give register-type #:vfuncs `((dup-object . ,procedure)). The procedure is called as (procedure self) ⇒ %return.

implementor

Passed: the class whose implementation to call: a class that implements <GDBusInterface>, or its GType number.

self

Passed: a <GDBusInterface>.

An exported D-Bus interface.

%return

Returned: a <GDBusObject>, or #f.

A <GDBusObject> or #f. The returned reference should be freed with object:unref.

Virtual method: dbus-interface:do-get-info implementor self ⇒ %return

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

This can return #f if no <GDBusInterfaceInfo> was provided during construction of self and is also not made available otherwise. For example, <GDBusProxy> implements <GDBusInterface> but allows for a #f <GDBusInterfaceInfo>.

To override it in a new class, give register-type #:vfuncs `((get-info . ,procedure)). The procedure is called as (procedure self) ⇒ %return.

implementor

Passed: the class whose implementation to call: a class that implements <GDBusInterface>, or its GType number.

self

Passed: a <GDBusInterface>.

An exported D-Bus interface.

%return

Returned: a <GDBusInterfaceInfo>, or #f.

A <GDBusInterfaceInfo>. Do not free.

Virtual method: dbus-interface:do-set-object implementor self [object]

Sets the <GDBusObject> for self to object.

Note that self will hold a weak reference to object.

To override it in a new class, give register-type #:vfuncs `((set-object . ,procedure)). The procedure is called as (procedure self object).

implementor

Passed: the class whose implementation to call: a class that implements <GDBusInterface>, or its GType number.

self

Passed: a <GDBusInterface>.

An exported D-Bus interface.

object

Passed, or left out: a <GDBusObject>, or #f.

A <GDBusObject> or #f.