register_object_with_closures


Description:

[ Version ( since = "2.46" ) ]
public uint register_object_with_closures (string object_path, DBusInterfaceInfo interface_info, Closure? method_call_closure, Closure? get_property_closure, Closure? set_property_closure) throws Error

Version of register_object using closures instead of a DBusInterfaceVTable for easier binding in other languages.

Parameters:

this

A DBusConnection.

object_path

The object path to register at.

interface_info

Introspection data for the interface.

method_call_closure

Closure for handling incoming method calls.

get_property_closure

Closure for getting a property.

set_property_closure

Closure for setting a property.

Returns:

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