From: Wootak Jung Date: Thu, 25 Oct 2018 06:14:27 +0000 (+0900) Subject: Fix profile check logic to distinguish ivi and iot X-Git-Tag: accepted/tizen/unified/20181107.081905^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fconnectivity%2Fbluetooth-agent.git;a=commitdiff_plain;h=12f0e5774bf0f3fa80b38c4f6562e2f88343627e Fix profile check logic to distinguish ivi and iot Change-Id: Ia1105abf3b4f2593056910c3a06a82a27acbf97a --- 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;