qmi-bearer: use new enum types for call end reasons
Sync with libqmi: commit d473f9ab35b85b76ebd6510a69a49ffa141d85f1 Author: Aleksander Morgado <aleksander@lanedo.com> Date: Tue Aug 28 13:18:44 2012 +0200 wds: implement "Verbose Call End Reason" types commit d39c997771da9a8037e61f1b4fc5ccfbb34be952 Author: Aleksander Morgado <aleksander@lanedo.com> Date: Mon Aug 27 20:29:16 2012 +0200 wds: implement "Call End Reason" type
This commit is contained in:
+10
-6
@@ -177,24 +177,28 @@ start_network_ready (QmiClientWds *client,
|
||||
if (g_error_matches (error,
|
||||
QMI_PROTOCOL_ERROR,
|
||||
QMI_PROTOCOL_ERROR_CALL_FAILED)) {
|
||||
guint16 cer;
|
||||
guint16 verbose_cer_type;
|
||||
guint16 verbose_cer_reason;
|
||||
QmiWdsCallEndReason cer;
|
||||
QmiWdsVerboseCallEndReasonType verbose_cer_type;
|
||||
gint16 verbose_cer_reason;
|
||||
|
||||
if (qmi_message_wds_start_network_output_get_call_end_reason (
|
||||
output,
|
||||
&cer,
|
||||
NULL))
|
||||
mm_info ("call end reason: %u", cer);
|
||||
mm_info ("call end reason (%u): '%s'",
|
||||
cer,
|
||||
qmi_wds_call_end_reason_get_string (cer));
|
||||
|
||||
if (qmi_message_wds_start_network_output_get_verbose_call_end_reason (
|
||||
output,
|
||||
&verbose_cer_type,
|
||||
&verbose_cer_reason,
|
||||
NULL))
|
||||
mm_info ("verbose call end reason: %u, %u",
|
||||
mm_info ("verbose call end reason (%u,%d): [%s] %s",
|
||||
verbose_cer_type,
|
||||
verbose_cer_reason);
|
||||
verbose_cer_reason,
|
||||
qmi_wds_verbose_call_end_reason_type_get_string (verbose_cer_type),
|
||||
qmi_wds_verbose_call_end_reason_get_string (verbose_cer_type, verbose_cer_reason));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user