From 4682be3fd041af1b42979ebfdc97c627d8103963 Mon Sep 17 00:00:00 2001 From: Kichan Kwon Date: Fri, 17 Mar 2017 19:39:38 +0900 Subject: [PATCH] Deprecate some enum values about location status - This feature can be checked with locations.h - Remain functions for backward compatibility Change-Id: I1dd7df608ae8923379076806786a92ae3ed43e85 Signed-off-by: Kichan Kwon --- include/runtime_info.h | 4 ++-- src/runtime_info_location.c | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/include/runtime_info.h b/include/runtime_info.h index bf4bdca..446ccea 100644 --- a/include/runtime_info.h +++ b/include/runtime_info.h @@ -56,8 +56,8 @@ typedef enum { RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED = 3, /**b = vconf_value; @@ -49,11 +51,15 @@ int runtime_info_location_service_get_value(runtime_info_value_h value) int runtime_info_location_service_set_event_cb() { + LOGW("DEPRECATION WARNING: RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED is deprecated and will be removed from next release."); + return runtime_info_vconf_set_event_cb(VCONF_LOCATION_SERVICE_ENABLED, RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED, 0); } void runtime_info_location_service_unset_event_cb() { + LOGW("DEPRECATION WARNING: RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED is deprecated and will be removed from next release."); + runtime_info_vconf_unset_event_cb(VCONF_LOCATION_SERVICE_ENABLED, 0); } @@ -63,6 +69,8 @@ int runtime_info_location_network_get_value(runtime_info_value_h value) int ret; bool supported; + LOGW("DEPRECATION WARNING: RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED is deprecated and will be removed from next release."); + ret = system_info_get_platform_bool("http://tizen.org/feature/location.wps", &supported); if (ret != SYSTEM_INFO_ERROR_NONE) return RUNTIME_INFO_ERROR_IO_ERROR; @@ -79,10 +87,14 @@ int runtime_info_location_network_get_value(runtime_info_value_h value) int runtime_info_location_network_set_event_cb() { + LOGW("DEPRECATION WARNING: RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED is deprecated and will be removed from next release."); + return runtime_info_vconf_set_event_cb(VCONF_LOCATION_NETWORK_ENABLED, RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED, 0); } void runtime_info_location_network_unset_event_cb() { + LOGW("DEPRECATION WARNING: RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED is deprecated and will be removed from next release."); + runtime_info_vconf_unset_event_cb(VCONF_LOCATION_NETWORK_ENABLED, 0); } -- 2.7.4