Change-Id: Id870ed449465147fb412997f9bf9d7ac284ee6c5
Signed-off-by: kj7.sung <kj7.sung@samsung.com>
char *profileName;
system_info_get_platform_string("http://tizen.org/feature/profile", &profileName);
switch (*profileName) {
char *profileName;
system_info_get_platform_string("http://tizen.org/feature/profile", &profileName);
switch (*profileName) {
- case 'm':
- case 'M':
- profile = TIZEN_PROFILE_MOBILE;
- break;
- case 'w':
- case 'W':
- profile = TIZEN_PROFILE_WEARABLE;
- break;
- case 't':
- case 'T':
- profile = TIZEN_PROFILE_TV;
- break;
- case 'i':
- case 'I':
- profile = TIZEN_PROFILE_IVI;
- break;
- default: // common or unknown ==> ALL ARE COMMON.
- profile = TIZEN_PROFILE_COMMON;
+ case 'm':
+ case 'M':
+ profile = TIZEN_PROFILE_MOBILE;
+ break;
+ case 'w':
+ case 'W':
+ profile = TIZEN_PROFILE_WEARABLE;
+ break;
+ case 't':
+ case 'T':
+ profile = TIZEN_PROFILE_TV;
+ break;
+ case 'i':
+ case 'I':
+ profile = TIZEN_PROFILE_IVI;
+ break;
+ default: /* common or unknown ==> ALL ARE COMMON. */
+ profile = TIZEN_PROFILE_COMMON;
-#if 0
-static LocationObject *
-hybrid_get_current_object(LocationHybridPrivate *priv)
-{
- LocationMethod method = hybrid_get_current_method(priv);
-
- LocationObject *obj = NULL;
- switch (method) {
- case LOCATION_METHOD_GPS:
- obj = priv->gps;
- break;
- case LOCATION_METHOD_WPS:
- obj = priv->wps;
- break;
- default:
- break;
- }
-
- return obj;
-}
-#endif
-
static gboolean /* True : Receive more accurate info. False : Receive less accurate info */
hybrid_compare_g_type_method(LocationHybridPrivate *priv, GType g_type)
{
static gboolean /* True : Receive more accurate info. False : Receive less accurate info */
hybrid_compare_g_type_method(LocationHybridPrivate *priv, GType g_type)
{
#define LOCATION_PRIVILEGE "http://tizen.org/privilege/location"
#define LOCATION_ENABLE_PRIVILEGE "http://tizen.org/privilege/location.enable"
#define LOCATION_PRIVILEGE "http://tizen.org/privilege/location"
#define LOCATION_ENABLE_PRIVILEGE "http://tizen.org/privilege/location.enable"
typedef struct _LocationSetting {
LocationSettingCb callback;
typedef struct _LocationSetting {
LocationSettingCb callback;