summaryrefslogtreecommitdiff
path: root/include/storage.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-08-04 15:46:48 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-08-04 15:46:48 -0700
commit426befc5c790fb87a82e42647fb56d1ae831fcac (patch)
tree92e465b35a2f335316c138cf2d40467392dd771a /include/storage.h
parentaac35324deb8c0b57f881338d87cb36b0979e7df (diff)
downloadconnman-426befc5c790fb87a82e42647fb56d1ae831fcac.tar.gz
connman-426befc5c790fb87a82e42647fb56d1ae831fcac.tar.bz2
connman-426befc5c790fb87a82e42647fb56d1ae831fcac.zip
Add support for creating, modifying and removing profiles
Diffstat (limited to 'include/storage.h')
-rw-r--r--include/storage.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/include/storage.h b/include/storage.h
index 437d72b8..4cee7614 100644
--- a/include/storage.h
+++ b/include/storage.h
@@ -22,9 +22,9 @@
#ifndef __CONNMAN_STORAGE_H
#define __CONNMAN_STORAGE_H
-#include <connman/device.h>
-#include <connman/network.h>
+#include <connman/profile.h>
#include <connman/service.h>
+#include <connman/device.h>
#ifdef __cplusplus
extern "C" {
@@ -43,14 +43,15 @@ extern "C" {
struct connman_storage {
const char *name;
int priority;
- int (*global_load) (void);
- int (*global_save) (void);
- enum connman_device_type device_type;
- int (*device_load) (struct connman_device *device);
- int (*device_save) (struct connman_device *device);
+ int (*profile_init) (void);
+ int (*profile_load) (struct connman_profile *profile);
+ int (*profile_save) (struct connman_profile *profile);
enum connman_service_type service_type;
int (*service_load) (struct connman_service *service);
int (*service_save) (struct connman_service *service);
+ enum connman_device_type device_type;
+ int (*device_load) (struct connman_device *device);
+ int (*device_save) (struct connman_device *device);
};
int connman_storage_register(struct connman_storage *storage);