-
Notifications
You must be signed in to change notification settings - Fork 81
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
[async] InterfaceAdded signal not emitted by generated aserver? #86
Comments
Correct, the current code for async does not do any automatic signal processing. I've had some complaints about how it was done in the previously sync implementation and I didn't want to put too much in place until I had some time to think more deeply about it. I don't want to put something in place and get tied to a method that doesn't really work. What I'm thinking I'll likely need to do is to add some information to the async-context that keeps track if a service name has been requested. We don't actually want signals to be sent prior to a service name being allocated and they deceptively get dropped anyhow. |
Understood, thank you. Explicit signals are OK, I'll make a note of this and let others know. |
Just to be clear, this will probably get resolved in the next few months. We can leave this open if you want something to track the improvement against. |
I've been having trouble with
ObjectMapper
not automatically discovering paths with interfaces added usingsdbusplus/async
. Here is example code:Am I doing something wrong? Do I have to manually call
emit_added()
? I couldn't find it being invoked anywhere. This does feel like a regression compared to theasio
API.As a workaround I hacked
sdbusplus/server/object.hpp
to be compatibleasync::context
:And my new
DBusSensor
is now:The text was updated successfully, but these errors were encountered: