Add new features about build information 27/61827/1 accepted/tizen/common/20160315.220618 accepted/tizen/ivi/20160313.114404 accepted/tizen/mobile/20160313.113245 accepted/tizen/tv/20160313.113615 accepted/tizen/wearable/20160313.114019 submit/tizen/20160311.045504
authorKichan Kwon <k_c.kwon@samsung.com>
Fri, 11 Mar 2016 01:25:16 +0000 (10:25 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Fri, 11 Mar 2016 01:25:16 +0000 (10:25 +0900)
- build.id
- build.type
- build.version.release
- build.variant

Change-Id: Iab338073e232a940fa6d5ad77575f81891cf8116
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
src/system_info_file.c

index b593869..249d7d3 100644 (file)
@@ -74,15 +74,39 @@ static int get_build_time(char **value)
        return system_info_ini_get_string(INFO_FILE_PATH, "build:time", value);
 }
 
+static int get_build_id(char **value)
+{
+       return system_info_ini_get_string(INFO_FILE_PATH, "build:id", value);
+}
+
+static int get_build_type(char **value)
+{
+       return system_info_ini_get_string(INFO_FILE_PATH, "build:type", value);
+}
+
+static int get_build_variant(char **value)
+{
+       return system_info_ini_get_string(INFO_FILE_PATH, "build:variant", value);
+}
+
+static int get_build_version_release(char **value)
+{
+       return system_info_ini_get_string(INFO_FILE_PATH, "version:release", value);
+}
+
 struct system_info_file_key {
        const char *key;
        int (*get_value)(char **val);
        system_info_type_e type;
 } info_file_key [] = {
-       { "tizen.org/system/tizenid",      get_tizenid,    SYSTEM_INFO_STRING },
-       { "tizen.org/system/build.date",   get_build_date, SYSTEM_INFO_STRING },
-       { "tizen.org/system/build.string", get_build_str,  SYSTEM_INFO_STRING },
-       { "tizen.org/system/build.time",   get_build_time, SYSTEM_INFO_STRING },
+       { "tizen.org/system/tizenid",       get_tizenid,       SYSTEM_INFO_STRING },
+       { "tizen.org/system/build.date",    get_build_date,    SYSTEM_INFO_STRING },
+       { "tizen.org/system/build.string",  get_build_str,     SYSTEM_INFO_STRING },
+       { "tizen.org/system/build.time",    get_build_time,    SYSTEM_INFO_STRING },
+       { "tizen.org/system/build.id",      get_build_id,      SYSTEM_INFO_STRING },
+       { "tizen.org/system/build.type",    get_build_type,    SYSTEM_INFO_STRING },
+       { "tizen.org/system/build.variant", get_build_variant, SYSTEM_INFO_STRING },
+       { "tizen.org/system/build.version.release", get_build_version_release, SYSTEM_INFO_STRING }
 };
 
 int system_info_get_file(const char *key, void **value)