From c65b282ae0116e10189556cbd90d732620cd2183 Mon Sep 17 00:00:00 2001 From: Kichan Kwon Date: Tue, 16 Jun 2020 13:51:02 +0900 Subject: [PATCH] Check the type by special function for conditions - In current, only tizenid use it Change-Id: I3c985a7d848f40fcacbfd5c5846c7dd082478188 Signed-off-by: Kichan Kwon --- src/system_info.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/system_info.c b/src/system_info.c index ea5c205..57f86f1 100644 --- a/src/system_info.c +++ b/src/system_info.c @@ -171,7 +171,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) -- 2.7.4