Registers callbacks for exported objects at
object_path with the D-Bus interface that is described in
Calls to functions in
user_data_free_func) will happen in the thread-default main context of the
thread you are calling this method from.
Note that all Variant values passed to functions in
vtable will match the
signature given in
interface_info - if a remote caller passes incorrect values, the `org.freedesktop.DBus.Error.InvalidArgs` is
returned to the remote caller.
Additionally, if the remote caller attempts to invoke methods or access properties not mentioned in
`org.freedesktop.DBus.Error.UnknownMethod` resp. `org.freedesktop.DBus.Error.InvalidArgs` errors are returned to the caller.
If an existing callback is already registered at
throws is set to EXISTS.
GDBus automatically implements the standard D-Bus interfaces org.freedesktop.DBus.Properties, org.freedesktop.DBus.Introspectable and org.freedesktop.Peer, so you don't have to implement those for the objects you export. You can implement org.freedesktop.DBus.Properties yourself, e.g. to handle getting and setting of properties asynchronously.
Note that the reference count on
interface_info will be incremented by 1 (unless allocated statically, e.g. if the reference count
is -1, see @ref) for as long as the object is exported. Also note that
vtable will be copied.
See this server for an example of how to use this method.
the object path to register at
introspection data for the interface
data to pass to functions in
function to call when the object path is unregistered
a DBusInterfaceVTable to call into or null
0 if throws is set, otherwise a registration id (never 0) that can be used with unregister_object