-
Notifications
You must be signed in to change notification settings - Fork 20
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
Warn about redefined members of another DBus interface #79
Comments
I looked through the specification and there's no mention that multiple paths on the same interface can't have duplicate method names. Is dasbus just being too strict, or were there some issues with this in the past? From what I can see in Am I missing something and would removing the check fail somewhere else (e.g. if someone tried to register multiple services with different implementation under the same name)? Or maybe the real world of DBus is just not reflected in the spec? I don't really know :) |
Yes, this limitation comes from dasbus to avoid the issues below.
|
Dasbus was not designed to be a perfect tool, because the variety of use cases is too large. However, the code should be flexible enough to allow any necessary modifications.
|
The
dbus_interface
decorator doesn't generate XML specification for members of another DBus interface. It is not easy to discover why these members are not generated, because they are just silently skipped. Show a warning or some debug messages with information about a possible collision with another interface.In the example above, the
Set
method will not be generated as a member of theorg.example.Project
interface, because it is already defined in one of the standard interfaces,org.freedesktop.DBus.Properties
.The text was updated successfully, but these errors were encountered: