.remove = device_remove,
};
+static struct connman_storage device_storage = {
+ .name = "device",
+ .priority = CONNMAN_STORAGE_PRIORITY_LOW,
+};
+
int __connman_device_init(void)
{
DBG("");
connection = connman_dbus_get_connection();
+ if (connman_storage_register(&device_storage) < 0)
+ connman_error("Failed to register device storage");
+
return connman_driver_register(&device_driver);
}
connman_driver_unregister(&device_driver);
+ connman_storage_unregister(&device_storage);
+
dbus_connection_unref(connection);
}
.remove = network_remove,
};
+static struct connman_storage network_storage = {
+ .name = "network",
+ .priority = CONNMAN_STORAGE_PRIORITY_LOW,
+};
+
int __connman_network_init(void)
{
DBG("");
connection = connman_dbus_get_connection();
+ if (connman_storage_register(&network_storage) < 0)
+ connman_error("Failed to register network storage");
+
return connman_driver_register(&network_driver);
}
connman_driver_unregister(&network_driver);
+ connman_storage_unregister(&network_storage);
+
dbus_connection_unref(connection);
}