Request scan on all technologies upon start
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Tue, 2 Feb 2010 17:41:02 +0000 (17:41 +0000)
committerGustavo Sverzut Barbieri <barbieri@gmail.com>
Tue, 2 Feb 2010 17:41:02 +0000 (17:41 +0000)
By: Lucas De Marchi <lucas.demarchi@profusion.mobi>

SVN revision: 45814

src/modules/connman/e_mod_main.c

index 48c74e1d2dcd12ee07999fa53f902cc0cb04e9e5..20634509f0e08ced9f8c114805c6117899e829da 100644 (file)
@@ -761,6 +761,14 @@ _connman_technologies_free(E_Connman_Module_Context *ctxt)
    if (_connman_enabled_technologies.names)
       free(_connman_enabled_technologies.names);
 }
+void
+_connman_request_scan_cb(void *data __UNUSED__, DBusMessage *msg __UNUSED__, DBusError *error)
+{
+   if (dbus_error_is_set(error))
+     _connman_dbus_error_show(__func__, error);
+
+   return;
+}
 
 static void
 _connman_technologies_load(E_Connman_Module_Context *ctxt)
@@ -788,6 +796,9 @@ _connman_technologies_load(E_Connman_Module_Context *ctxt)
        printf("DBG CONNMAN added technology: %s\n", t->name);
        ctxt->technologies = eina_inlist_append(ctxt->technologies, EINA_INLIST_GET(t));
      }
+
+   if (!e_connman_manager_request_scan("", _connman_request_scan_cb, NULL))
+     printf("DBG CONNMAN request scan on all technologies failed\n");
    free(names);
 }