diff options
-rw-r--r-- | include/storage.h | 1 | ||||
-rw-r--r-- | src/connman.h | 1 | ||||
-rw-r--r-- | src/service.c | 6 | ||||
-rw-r--r-- | src/storage.c | 2 |
4 files changed, 6 insertions, 4 deletions
diff --git a/include/storage.h b/include/storage.h index cd05c60b..c108511c 100644 --- a/include/storage.h +++ b/include/storage.h @@ -29,6 +29,7 @@ extern "C" { #endif gchar **connman_storage_get_services(); +GKeyFile *connman_storage_load_service(const char *service_id); #ifdef __cplusplus } diff --git a/src/connman.h b/src/connman.h index 364cdd5f..18c29c50 100644 --- a/src/connman.h +++ b/src/connman.h @@ -155,7 +155,6 @@ void __connman_storage_save_config(GKeyFile *keyfile, const char *ident); void __connman_storage_delete_config(const char *ident); GKeyFile *__connman_storage_open_service(const char *ident); -GKeyFile *__connman_storage_load_service(const char *ident); void __connman_storage_save_service(GKeyFile *keyfile, const char *ident); int __connman_detect_init(void); diff --git a/src/service.c b/src/service.c index 6bfcc192..23916f74 100644 --- a/src/service.c +++ b/src/service.c @@ -29,6 +29,8 @@ #include <netdb.h> #include <gdbus.h> +#include <connman/storage.h> + #include "connman.h" #define CONNECT_TIMEOUT 120 @@ -308,7 +310,7 @@ static int service_load(struct connman_service *service) DBG("service %p", service); - keyfile = __connman_storage_load_service(service->identifier); + keyfile = connman_storage_load_service(service->identifier); if (keyfile == NULL) return -EIO; @@ -5119,7 +5121,7 @@ void __connman_service_read_ip6config(struct connman_service *service) if (service->ipconfig_ipv6 == NULL) return; - keyfile = __connman_storage_load_service(service->identifier); + keyfile = connman_storage_load_service(service->identifier); if (keyfile == NULL) return; diff --git a/src/storage.c b/src/storage.c index 1755650d..d987f910 100644 --- a/src/storage.c +++ b/src/storage.c @@ -237,7 +237,7 @@ gchar **connman_storage_get_services() return services; } -GKeyFile *__connman_storage_load_service(const char *service_id) +GKeyFile *connman_storage_load_service(const char *service_id) { gchar *pathname; GKeyFile *keyfile = NULL; |