-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
(feat): Add BusName and ObjectPath annotation support for core #272
base: master
Are you sure you want to change the base?
Conversation
- Add BusName and ObjectPath annotations to mark interface bus names and object paths - Implement annotation-based remote object retrieval in DBusConnection - Add validation for annotation presence and uniqueness with improved error messages
- Add BusName and ObjectPath annotations to mark interface bus names and object paths - Implement annotation-based remote object retrieval in DBusConnection - Add validation for annotation presence and uniqueness with improved error messages
Thanks for the PR, nice idea. In your example it will work because you are in charge on how the exported interfaces are defined on the bus (name and path). Think of querying any hardware service like bluez or NetworkManager. In that case the new Something similar may happen when using the To avoid confusion when using this library I don't want to add additional features which only work in a few cases and introduce possible misunderstanding/allow misusing. If you still want to use annotations for your setup, you may create a utility method which does the steps you implemented in |
Thank you for your reply. You're right, it seems I have some misunderstandings about the concept of dbus. |
then you can use like this:
It's very convenient to use.