DBusConnection.registerObject

Version of gio.dbus_connection.DBusConnection.registerObject using closures instead of a #GDBusInterfaceVTable for easier binding in other languages.

Parameters

objectPath string

The object path to register at.

interfaceInfo gio.dbus_interface_info.DBusInterfaceInfo

Introspection data for the interface.

methodCallClosure gobject.closure.Closure

#GClosure for handling incoming method calls.

getPropertyClosure gobject.closure.Closure

#GClosure for getting a property.

setPropertyClosure gobject.closure.Closure

#GClosure for setting a property.

Return Value

Type: uint

0 if error is set, otherwise a registration ID (never 0) that can be used with gio.dbus_connection.DBusConnection.unregisterObject .

Throws