summaryrefslogtreecommitdiff
path: root/src/storage.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-12-14 09:57:58 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-12-14 09:57:58 +0100
commita70b4abc989121e287a16bb26b2f17c6f2b6e47e (patch)
tree977074f58d48ae043139e6e79d3503530d862a9b /src/storage.c
parenta4d04d8c7bce8ada5ca7fd8a431de5d29e264fb0 (diff)
downloadconnman-a70b4abc989121e287a16bb26b2f17c6f2b6e47e.tar.gz
connman-a70b4abc989121e287a16bb26b2f17c6f2b6e47e.tar.bz2
connman-a70b4abc989121e287a16bb26b2f17c6f2b6e47e.zip
Add framework for configuration files
Diffstat (limited to 'src/storage.c')
-rw-r--r--src/storage.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/storage.c b/src/storage.c
index e7959aae..89c6c146 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -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;