-
Notifications
You must be signed in to change notification settings - Fork 239
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
[ncp] implement dbus server for NCP mode #2339
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2339 +/- ##
===========================================
- Coverage 55.77% 37.59% -18.18%
===========================================
Files 87 94 +7
Lines 6890 10668 +3778
Branches 0 766 +766
===========================================
+ Hits 3843 4011 +168
- Misses 3047 6457 +3410
- Partials 0 200 +200 ☔ View full report in Codecov by Sentry. |
e71e715
to
d63e2c2
Compare
4c63dd0
to
03edbdd
Compare
03edbdd
to
ea63d86
Compare
41f531a
to
9d81f99
Compare
23c07e3
to
ffedfef
Compare
ffedfef
to
fa6534c
Compare
fa6534c
to
c3fa90c
Compare
c3fa90c
to
2769ff0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
* @{ | ||
* @} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be an empty block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied this from dbus_thread_object_rcp.hpp
. But this is not correct. I fixed it in both headers.
2769ff0
to
6e07a29
Compare
6e07a29
to
b5a77cd
Compare
This PR refactors the
DBusAgent
so that it can work under NCP mode.The DBus server will provide different methods under RCP mode and NCP mode. Currently under NCP mode, only
GetDeviceRole
is provided.This PR renames
DBusThreadObject
toDBusThreadObjectRcp
and added a new classDBusThreadObjectNcp
which will handle the DBus requests under NCP mode. This PR also implementsAsyncPropertyHandler
to handle GetProperty requests by calling async methods ofNcpHost
.A test case is added to test
GetDeviceRole
under NCP.This PR is also a breakdown of PR #2283.