[gnome-battery-bench] System info: add format version to json



commit dbd399ebeae7fa7608f4f0cbb9c12e685160e1f5
Author: Christian Kellner <gicmo gnome org>
Date:   Wed Jul 5 15:46:35 2017 +0200

    System info: add format version to json

 src/system-info.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/system-info.c b/src/system-info.c
index e1f0db0..a1cdc38 100644
--- a/src/system-info.c
+++ b/src/system-info.c
@@ -1510,6 +1510,13 @@ gbb_system_info_to_json (const GbbSystemInfo *info, JsonBuilder *builder)
     int i;
 
     json_builder_begin_object(builder);
+    json_builder_set_member_name(builder, "format-version");
+    json_builder_begin_array(builder);
+    json_builder_add_int_value(builder, 1);
+    json_builder_add_int_value(builder, 0);
+    json_builder_add_int_value(builder, 0);
+    json_builder_end_array(builder);
+
     json_builder_set_member_name(builder, "hardware");
     {
         json_builder_begin_object(builder);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]