-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling runtime tree modifications #40
Comments
Or maybe, moving the |
A basic workaround for this is to add and remove trees rather than paths in the tree. You can have one tree for every path, if you like. |
No, that'll break some use case someone else had, which was "send message to tree in another thread, do lengthy processing without blocking main thread, send result over to main thread and send reply"
On second thought, this will only work for paths that are not children of paths in another tree, because that'll break introspection, |
The idea of having a |
This won't fix sending out |
Signed-off-by: David Henningsson <diwic@ubuntu.com>
Fixed in v0.3.3 (at least removing object paths from a tree - maybe want to remove interfaces from object paths, methods from interfaces etc etc in the future) |
Object paths supported by a tree may come and go. Tree has an
add()
but lacksremove()
. It's easy to add a remove() that just removes it from self.paths, but it looks like we also need to call c.unregister_object_path...but only if after set_registered() has been called. So basically I'm thinking to enable adding/removing object paths at runtime we need to either pass c to add() & remove() and register/unregister within those functions, but then we don't really need set_registered() any more? But then maybe we want to unregister any remaining paths from Drop?Wanted to get your thoughts on what it would take to properly enable this.
The text was updated successfully, but these errors were encountered: