element: Remove IPv6
[framework/connectivity/connman.git] / src / storage.c
index e7959aa..800acfa 100644 (file)
@@ -2,7 +2,7 @@
  *
  *  Connection Manager
  *
- *  Copyright (C) 2007-2009  Intel Corporation. All rights reserved.
+ *  Copyright (C) 2007-2010  Intel Corporation. All rights reserved.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License version 2 as
@@ -28,6 +28,7 @@
 #include "connman.h"
 
 #define PROFILE_SUFFIX "profile"
+#define CONFIG_SUFFIX  "config"
 
 static GSList *storage_list = NULL;
 
@@ -163,6 +164,22 @@ void __connman_storage_delete_profile(const char *ident)
        __connman_storage_delete(ident, PROFILE_SUFFIX);
 }
 
+GKeyFile *__connman_storage_open_config(const char *ident)
+{
+       return __connman_storage_open(ident, CONFIG_SUFFIX);
+}
+
+void __connman_storage_close_config(const char *ident,
+                                       GKeyFile *keyfile, gboolean save)
+{
+       __connman_storage_close(ident, CONFIG_SUFFIX, keyfile, save);
+}
+
+void __connman_storage_delete_config(const char *ident)
+{
+       __connman_storage_delete(ident, CONFIG_SUFFIX);
+}
+
 int __connman_storage_init_profile(void)
 {
        GSList *list;