From 0c730b2beb9bbabed8e63ab9424ee3dff19174ff Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 4 Jul 2012 16:06:00 +0200 Subject: dms,cli: include optional TLVs in the "Get Time" request/response handling --- cli/qmicli-dms.c | 16 ++++++++++++++++ data/qmi-service-dms.json | 12 ++++++++++++ 2 files changed, 28 insertions(+) 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" } ] } ] }, // ********************************************************************************* -- cgit v1.2.3