summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-07-04 16:06:00 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-07-04 16:06:00 +0200
commit0c730b2beb9bbabed8e63ab9424ee3dff19174ff (patch)
tree5b8a6dc641e6c4b6fa632d10c12dd5a209de1264
parente4fc707bdbbd0b4e898a491070f7cc4ac6156828 (diff)
dms,cli: include optional TLVs in the "Get Time" request/response handling
-rw-r--r--cli/qmicli-dms.c16
-rw-r--r--data/qmi-service-dms.json12
2 files changed, 28 insertions, 0 deletions
diff --git a/cli/qmicli-dms.c b/cli/qmicli-dms.c
index ff7e17a..f28327b 100644
--- a/cli/qmicli-dms.c
+++ b/cli/qmicli-dms.c
@@ -1180,6 +1180,22 @@ get_time_ready (QmiClientDms *client,
time_count,
qmi_dms_time_source_get_string (time_source));
+ if (qmi_message_dms_get_time_output_get_system_time (
+ output,
+ &time_count,
+ NULL)){
+ g_print ("\tSystem time: '%" G_GUINT64_FORMAT " (ms)'\n",
+ time_count);
+ }
+
+ if (qmi_message_dms_get_time_output_get_user_time (
+ output,
+ &time_count,
+ NULL)){
+ g_print ("\tUser time: '%" G_GUINT64_FORMAT " (ms)'\n",
+ time_count);
+ }
+
qmi_message_dms_get_time_output_unref (output);
shutdown (TRUE);
}
diff --git a/data/qmi-service-dms.json b/data/qmi-service-dms.json
index 31e1eb7..5a46dd1 100644
--- a/data/qmi-service-dms.json
+++ b/data/qmi-service-dms.json
@@ -352,6 +352,18 @@
{ "name" : "Time Source",
"format" : "guint16",
"public-format" : "QmiDmsTimeSource" } ],
+ "prerequisites": [ { "common-ref" : "Success" } ] },
+ { "name" : "System Time",
+ "id" : "0x10",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "guint64",
+ "prerequisites": [ { "common-ref" : "Success" } ] },
+ { "name" : "User Time",
+ "id" : "0x11",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "guint64",
"prerequisites": [ { "common-ref" : "Success" } ] } ] },
// *********************************************************************************