diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-04 16:06:00 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-04 16:06:00 +0200 |
commit | 0c730b2beb9bbabed8e63ab9424ee3dff19174ff (patch) | |
tree | 5b8a6dc641e6c4b6fa632d10c12dd5a209de1264 | |
parent | e4fc707bdbbd0b4e898a491070f7cc4ac6156828 (diff) | |
download | external_libqmi-0c730b2beb9bbabed8e63ab9424ee3dff19174ff.zip external_libqmi-0c730b2beb9bbabed8e63ab9424ee3dff19174ff.tar.gz external_libqmi-0c730b2beb9bbabed8e63ab9424ee3dff19174ff.tar.bz2 |
dms,cli: include optional TLVs in the "Get Time" request/response handling
-rw-r--r-- | cli/qmicli-dms.c | 16 | ||||
-rw-r--r-- | data/qmi-service-dms.json | 12 |
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" } ] } ] }, // ********************************************************************************* |