_PROFILE_WEARABLE = 0x2,
_PROFILE_TV = 0x4,
_PROFILE_IVI = 0x8,
- _PROFILE_COMMON = 0x10,
+ _PROFILE_IOT = 0x10,
+ _PROFILE_COMMON = 0x20,
} tizen_profile_t;
extern tizen_profile_t _get_tizen_profile();
extern tizen_profile_t profile;
tizen_profile_t profile = _PROFILE_UNKNOWN;
tizen_profile_t _get_tizen_profile()
{
- char *profileName;
+ char *profileName = NULL;
if (__builtin_expect(profile != _PROFILE_UNKNOWN, 1))
return profile;
system_info_get_platform_string("http://tizen.org/feature/profile", &profileName);
+ if (!profileName)
+ return _PROFILE_UNKNOWN;
+
switch (*profileName) {
case 'm':
case 'M':
break;
case 'i':
case 'I':
- profile = _PROFILE_IVI;
+ if (!strncasecmp(profileName, "ivi", 3))
+ profile = _PROFILE_IVI;
+ else if (!strncasecmp(profileName, "iot", 3))
+ profile = _PROFILE_IOT;
+ else
+ profile = _PROFILE_COMMON;
break;
default: // common or unknown ==> ALL ARE COMMON.
profile = _PROFILE_COMMON;