dms,cli: include optional TLVs in the "Get Time" request/response handling
This commit is contained in:
parent
e4fc707bdb
commit
0c730b2beb
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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" } ] } ] },
|
||||
|
||||
// *********************************************************************************
|
||||
|
|
Loading…
Reference in New Issue