• spiiroin's avatar
    [battery-udev] Make charger type available on D-Bus. JB#38667 · a80fd7ea
    spiiroin authored
    Battery notifier in lipstick needs charger type information.
    
    Add charger type evaluation to udev power supply device tracker and
    broadcast changes internally within mce via a datapipe.
    
    Reflect datapipe changes as D-Bus signals, and add D-Bus methods for
    querying the current state.
    
    For development builds enable charger type simulation and appropriate
    mcetool options for controlling it.
    
    The required D-Bus constants are available in mce-dev >= 1.27.0.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    a80fd7ea
mce-dbus.h 12.8 KB