dms,cli: include optional TLVs in the "Get Time" request/response handling

This commit is contained in:
Aleksander Morgado 2012-07-04 16:06:00 +02:00
parent e4fc707bdb
commit 0c730b2beb
2 changed files with 28 additions and 0 deletions

View File

@ -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);
}

View File

@ -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" } ] } ] },
// *********************************************************************************