Use device and network specific storage helpers
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 5 Jan 2009 01:21:39 +0000 (02:21 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 5 Jan 2009 01:21:39 +0000 (02:21 +0100)
src/device.c
src/network.c

index 9a8f07a..eb52ff6 100644 (file)
@@ -347,7 +347,7 @@ static DBusMessage *set_property(DBusConnection *conn,
                        return __connman_error_failed(msg);
        }
 
-       __connman_element_store(&device->element);
+       __connman_storage_save_device(device);
 
        return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
 }
index 1d7cc33..c41f5f2 100644 (file)
@@ -154,6 +154,8 @@ static DBusMessage *set_property(DBusConnection *conn,
                network->wifi.passphrase = g_strdup(passphrase);
        }
 
+       __connman_storage_save_network(network);
+
        return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
 }