DBusConnection.registerObjectWithClosures

Version of g_dbus_connection_register_object() using closures instead of a GDBusInterfaceVTable for easier binding in other languages.

Parameters

objectPath string

The object path to register at.

interfaceInfo DBusInterfaceInfo

Introspection data for the interface.

methodCallClosure Closure

gobject.Closure for handling incoming method calls.

getPropertyClosure Closure

gobject.Closure for getting a property.

setPropertyClosure Closure

gobject.Closure for setting a property.

Return Value

Type: uint

0 if error is set, otherwise a registration id (never 0) that can be used with g_dbus_connection_unregister_object() .

Throws

GException on failure.

Meta

Since

2.46