| OLD | NEW |
| 1 /* | 1 /* |
| 2 * | 2 * |
| 3 * Connection Manager | 3 * Connection Manager |
| 4 * | 4 * |
| 5 * Copyright (C) 2007-2009 Intel Corporation. All rights reserved. | 5 * Copyright (C) 2007-2009 Intel Corporation. All rights reserved. |
| 6 * | 6 * |
| 7 * This program is free software; you can redistribute it and/or modify | 7 * This program is free software; you can redistribute it and/or modify |
| 8 * it under the terms of the GNU General Public License version 2 as | 8 * it under the terms of the GNU General Public License version 2 as |
| 9 * published by the Free Software Foundation. | 9 * published by the Free Software Foundation. |
| 10 * | 10 * |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 /** | 34 /** |
| 35 * SECTION:storage | 35 * SECTION:storage |
| 36 * @title: Storage premitives | 36 * @title: Storage premitives |
| 37 * @short_description: Functions for registering storage modules | 37 * @short_description: Functions for registering storage modules |
| 38 */ | 38 */ |
| 39 | 39 |
| 40 #define CONNMAN_STORAGE_PRIORITY_LOW -100 | 40 #define CONNMAN_STORAGE_PRIORITY_LOW -100 |
| 41 #define CONNMAN_STORAGE_PRIORITY_DEFAULT 0 | 41 #define CONNMAN_STORAGE_PRIORITY_DEFAULT 0 |
| 42 #define CONNMAN_STORAGE_PRIORITY_HIGH 100 | 42 #define CONNMAN_STORAGE_PRIORITY_HIGH 100 |
| 43 | 43 |
| 44 struct connman_storage_ident { |
| 45 char *user; /* NULL =>'s global */ |
| 46 char *ident; |
| 47 }; |
| 48 |
| 44 struct connman_storage { | 49 struct connman_storage { |
| 45 const char *name; | 50 const char *name; |
| 46 int priority; | 51 int priority; |
| 47 int (*profile_init) (void); | 52 int (*profile_init) (void); |
| 48 int (*profile_load) (struct connman_profile *profile); | 53 int (*profile_load) (struct connman_profile *profile); |
| 49 int (*profile_save) (struct connman_profile *profile); | 54 int (*profile_save) (struct connman_profile *profile); |
| 50 enum connman_service_type service_type; | 55 enum connman_service_type service_type; |
| 51 » int (*service_load) (struct connman_service *service); | 56 » int (*service_load) (struct connman_service *, GKeyFile *); |
| 52 » int (*service_save) (struct connman_service *service); | 57 » int (*service_save) (struct connman_service *, GKeyFile *); |
| 53 enum connman_device_type device_type; | 58 enum connman_device_type device_type; |
| 54 » int (*device_load) (struct connman_device *device); | 59 » int (*device_load) (struct connman_device *, GKeyFile *); |
| 55 » int (*device_save) (struct connman_device *device); | 60 » int (*device_save) (struct connman_device *, GKeyFile *); |
| 56 enum connman_ipconfig_type ipconfig_type; | 61 enum connman_ipconfig_type ipconfig_type; |
| 57 » int (*ipconfig_load) (struct connman_ipconfig *device); | 62 » int (*ipconfig_load) (struct connman_ipconfig *, GKeyFile *); |
| 58 » int (*ipconfig_save) (const struct connman_ipconfig *device); | 63 » int (*ipconfig_save) (const struct connman_ipconfig *, GKeyFile *); |
| 59 }; | 64 }; |
| 60 | 65 |
| 61 int connman_storage_register(struct connman_storage *storage); | 66 int connman_storage_register(struct connman_storage *storage); |
| 62 void connman_storage_unregister(struct connman_storage *storage); | 67 void connman_storage_unregister(struct connman_storage *storage); |
| 63 | 68 |
| 64 #ifdef __cplusplus | 69 #ifdef __cplusplus |
| 65 } | 70 } |
| 66 #endif | 71 #endif |
| 67 | 72 |
| 68 #endif /* __CONNMAN_STORAGE_H */ | 73 #endif /* __CONNMAN_STORAGE_H */ |
| OLD | NEW |