• spiiroin's avatar
    [dbus] Add target mode signaling. JB#44479 · 87936ffc
    spiiroin authored
    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: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    87936ffc
Name
Last commit
Last update
config Loading commit data...
debian Loading commit data...
docs Loading commit data...
openembedded Loading commit data...
rpm Loading commit data...
scripts Loading commit data...
src Loading commit data...
systemd Loading commit data...
utils Loading commit data...
.depend Loading commit data...
Copyright Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
Makefile.custom Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
config-static.h Loading commit data...
configure.ac Loading commit data...
depend_filter.py Loading commit data...
usb-moded.ini Loading commit data...
usb_moded.pc.in Loading commit data...