Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[dbus] Add target mode signaling. JB#44479
Some transitions such as activating mtp mode can take so long that giving user feedback becomes necessary. However as usb-moded exposes only what has happened, there is no reliable source of information for what is going on. Also, the "sig_usb_state_ind" D-Bus signal is used for transmitting both mode change notifications and transient events - which is confusing and can cause problems if new signals are ever added as there is no backwards compatible ways to tell apart mode names from event names. Add dbus query / change notifications for target mode. The target mode is changed before starting mode transition, so that processes listening to signals from usb-moded know what kind of transition is happening when the current mode changes to "busy". Add separate dbus signals for mode changes and events. The legacy "sig_usb_state_ind" is retained as-is for the sake of backwards compatibility. Also synchronize the content of D-Bus Introspect xml data provided as a file in development package and made available at runtime via D-Bus method call. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
9 changed files
with
177 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.