From 12f0e5774bf0f3fa80b38c4f6562e2f88343627e Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Thu, 25 Oct 2018 15:14:27 +0900 Subject: [PATCH] Fix profile check logic to distinguish ivi and iot Change-Id: Ia1105abf3b4f2593056910c3a06a82a27acbf97a --- include/bluetooth-agent-profile.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/bluetooth-agent-profile.h b/include/bluetooth-agent-profile.h index fa3097d..c5302cc 100644 --- a/include/bluetooth-agent-profile.h +++ b/include/bluetooth-agent-profile.h @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -36,7 +37,8 @@ typedef enum { _PROFILE_WEARABLE = 0x2, _PROFILE_TV = 0x4, _PROFILE_IVI = 0x8, - _PROFILE_COMMON = 0x10, + _PROFILE_IOT = 0x10, + _PROFILE_COMMON = 0x20, } tizen_profile_t; /* For optimization, make this extern and define in a shared C file */ @@ -73,7 +75,12 @@ static inline tizen_profile_t get_tizen_profile() 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; -- 2.7.4