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

#GClosure for handling incoming method calls.

getPropertyClosure Closure

#GClosure for getting a property.

setPropertyClosure 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 g_dbus_connection_unregister_object() .

Throws

GException on failure.

Meta

Since

2.46