Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[dsme] Make device state tracking asynchronous. MER#1694
Usb-moded is making repeated blocking device state queries even when the
component providing the service is not running.

Use cached device state and keep it up to date fully asynchronously by
tracking dsme service availability and state changes it signals.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Nov 7, 2016
1 parent d72c59a commit 4e7f970
Show file tree
Hide file tree
Showing 4 changed files with 347 additions and 39 deletions.
2 changes: 1 addition & 1 deletion src/usb_moded-dbus.c
Expand Up @@ -689,7 +689,7 @@ static void usb_moded_get_name_owner_cb(DBusPendingCall *pc, void *aptr)
DBUS_TYPE_INVALID) )
{
if( strcmp(err.name, DBUS_ERROR_NAME_HAS_NO_OWNER) )
log_warning("parse error: %s: %s", err.name, err.message);
log_err("parse error: %s: %s", err.name, err.message);
goto EXIT;
}

Expand Down

0 comments on commit 4e7f970

Please sign in to comment.