From: Kichan Kwon Date: Tue, 16 Jun 2020 04:51:02 +0000 (+0900) Subject: Check the type by special function for conditions X-Git-Tag: submit/tizen_5.5/20200616.092114^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=005882f66b3ea0e82b1612871d7d927e4c19c41c;p=platform%2Fcore%2Fapi%2Fsystem-info.git Check the type by special function for conditions - In current, only tizenid use it Change-Id: I3c985a7d848f40fcacbfd5c5846c7dd082478188 Signed-off-by: Kichan Kwon --- diff --git a/src/system_info.c b/src/system_info.c index 122a4b1..b81c656 100644 --- a/src/system_info.c +++ b/src/system_info.c @@ -173,7 +173,10 @@ static int system_info_get_type(enum tag_type tag, const char *key, } } - return SYSTEM_INFO_ERROR_INVALID_PARAMETER; + if (tag == TAG_TYPE_PLATFORM) + return system_info_get_type_file(key, type); + else + return SYSTEM_INFO_ERROR_INVALID_PARAMETER; } static int system_info_get_bool(enum tag_type tag, const char *key, bool *value)