storage: Export service loading function
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Tue, 13 Sep 2011 06:55:12 +0000 (09:55 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 13 Sep 2011 08:52:21 +0000 (10:52 +0200)
include/storage.h
src/connman.h
src/service.c
src/storage.c

index cd05c60..c108511 100644 (file)
@@ -29,6 +29,7 @@ extern "C" {
 #endif
 
 gchar **connman_storage_get_services();
+GKeyFile *connman_storage_load_service(const char *service_id);
 
 #ifdef __cplusplus
 }
index 364cdd5..18c29c5 100644 (file)
@@ -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);
index 6bfcc19..23916f7 100644 (file)
@@ -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;
 
index 1755650..d987f91 100644 (file)
@@ -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;