GError *error = NULL;
gchar *identifier;
connman_bool_t powered;
- int val;
DBG("device %p", device);
device->powered_persistent = powered;
g_clear_error(&error);
- val = g_key_file_get_integer(keyfile, identifier,
- "ScanInterval", &error);
- if (error == NULL)
- device->scan_interval = val;
- g_clear_error(&error);
-
done:
g_free(identifier);
g_key_file_set_boolean(keyfile, identifier,
"Powered", device->powered_persistent);
- g_key_file_set_integer(keyfile, identifier,
- "ScanInterval", device->scan_interval);
-
done:
g_free(identifier);