• spiiroin's avatar
    [dbus] Improve SystemBus connection management. MER#1694 · 3e9e1817
    spiiroin authored
    D-Bus SystemBus connection is made from several places. Explicitly
    from the main() and implicitly from various modules that do ipc
    with other components. This makes it hard to tell when connection
    actually gets made, process wide dbus initialization happens in
    the wrong place and setting up signal matches is delayed by the
    synchronous initialization activity during startup.
    
    Move dbus_threads_init_default() to more appropriate place so that
    it actually is the first libdbus call that gets made.
    
    Handle connecting to SystemBus and installing signal listeners as early
    as possible and claim usb-moded service name separately when usb-moded
    is ready to process requests made over D-Bus.
    
    Add usb_moded_dbus_get_connection() function that other modules can
    use to get reference to the SystemBus connection when/if one has been
    made from the main logic.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    3e9e1817
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...
src Loading commit data...
systemd Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
Copyright Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
usb-moded.ini Loading commit data...
usb_moded.pc.in Loading commit data...