Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: include/storage.h

Issue 6659006: flimflam: add support for multiple profiles (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/flimflam.git@master
Patch Set: more ers comments Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/service.h ('k') | include/wifi.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/storage.h
diff --git a/include/storage.h b/include/storage.h
index 3d0354f4a1eb120ec0c916cb38205708a8ab4d80..74c3457c4d577ace1b2bb161174ac88be4aece4a 100644
--- a/include/storage.h
+++ b/include/storage.h
@@ -41,6 +41,11 @@ extern "C" {
#define CONNMAN_STORAGE_PRIORITY_DEFAULT 0
#define CONNMAN_STORAGE_PRIORITY_HIGH 100
+struct connman_storage_ident {
+ char *user; /* NULL =>'s global */
+ char *ident;
+};
+
struct connman_storage {
const char *name;
int priority;
@@ -48,14 +53,14 @@ struct connman_storage {
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);
+ int (*service_load) (struct connman_service *, GKeyFile *);
+ int (*service_save) (struct connman_service *, GKeyFile *);
enum connman_device_type device_type;
- int (*device_load) (struct connman_device *device);
- int (*device_save) (struct connman_device *device);
+ int (*device_load) (struct connman_device *, GKeyFile *);
+ int (*device_save) (struct connman_device *, GKeyFile *);
enum connman_ipconfig_type ipconfig_type;
- int (*ipconfig_load) (struct connman_ipconfig *device);
- int (*ipconfig_save) (const struct connman_ipconfig *device);
+ int (*ipconfig_load) (struct connman_ipconfig *, GKeyFile *);
+ int (*ipconfig_save) (const struct connman_ipconfig *, GKeyFile *);
};
int connman_storage_register(struct connman_storage *storage);
« no previous file with comments | « include/service.h ('k') | include/wifi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698