include/profile.h include/provider.h \
include/utsname.h include/timeserver.h include/proxy.h \
include/location.h include/technology.h \
- include/configuration.h
+ include/setting.h
local_headers = $(foreach file,$(include_HEADERS) $(nodist_include_HEADERS) \
$(noinst_HEADERS), include/connman/$(notdir $(file)))
*
*/
-#ifndef __CONNMAN_CONFIGURATION_H
-#define __CONNMAN_CONFIGURATION_H
+#ifndef __CONNMAN_SETTING_H
+#define __CONNMAN_SETTING_H
#ifdef __cplusplus
extern "C" {
#endif
-connman_bool_t connman_configuration_get_bool(const char *key);
+connman_bool_t connman_setting_get_bool(const char *key);
#ifdef __cplusplus
}
#endif
-#endif /* __CONNMAN_CONFIGURATION_H */
+#endif /* __CONNMAN_SETTING_H */
#include <connman/option.h>
-#include <connman/configuration.h>
+#include <connman/setting.h>
#include <connman/plugin.h>
DBG("device %p", device);
- bg_scan = connman_configuration_get_bool("BackgroundScanning");
+ bg_scan = connman_setting_get_bool("BackgroundScanning");
__connman_element_initialize(&device->element);
#include "connman.h"
-struct connman_conf {
+static struct {
connman_bool_t bg_scan;
-};
-
-static struct connman_conf main_conf = {
+} connman_settings = {
.bg_scan = TRUE,
};
boolean = g_key_file_get_boolean(config, "General",
"BackgroundScanning", &error);
if (error == NULL)
- main_conf.bg_scan = boolean;
+ connman_settings.bg_scan = boolean;
g_clear_error(&error);
}
return NULL;
}
-connman_bool_t connman_configuration_get_bool(const char *key)
+connman_bool_t connman_setting_get_bool(const char *key)
{
if (g_str_equal(key, "BackgroundScanning") == TRUE)
- return main_conf.bg_scan;
+ return connman_settings.bg_scan;
return FALSE;
}