qcdm-serial-port: allow cancelling the response timeout
This commit is contained in:
@@ -1236,6 +1236,7 @@ signal_quality_qcdm (SignalQualityContext *ctx)
|
||||
mm_qcdm_serial_port_queue_command (MM_QCDM_SERIAL_PORT (ctx->port),
|
||||
pilot_sets,
|
||||
3,
|
||||
NULL,
|
||||
(MMQcdmSerialResponseFn)signal_quality_qcdm_ready,
|
||||
ctx);
|
||||
}
|
||||
@@ -4706,6 +4707,7 @@ modem_cdma_get_hdr_state (MMIfaceModemCdma *self,
|
||||
mm_qcdm_serial_port_queue_command (ctx->qcdm,
|
||||
hdrstate,
|
||||
3,
|
||||
NULL,
|
||||
(MMQcdmSerialResponseFn)hdr_subsys_state_info_ready,
|
||||
ctx);
|
||||
}
|
||||
@@ -4829,6 +4831,7 @@ modem_cdma_get_call_manager_state (MMIfaceModemCdma *self,
|
||||
mm_qcdm_serial_port_queue_command (ctx->qcdm,
|
||||
cmstate,
|
||||
3,
|
||||
NULL,
|
||||
(MMQcdmSerialResponseFn)cm_subsys_state_info_ready,
|
||||
ctx);
|
||||
}
|
||||
@@ -5099,6 +5102,7 @@ modem_cdma_get_cdma1x_serving_system (MMIfaceModemCdma *self,
|
||||
mm_qcdm_serial_port_queue_command (ctx->qcdm,
|
||||
cdma_status,
|
||||
3,
|
||||
NULL,
|
||||
(MMQcdmSerialResponseFn)qcdm_cdma_status_ready,
|
||||
ctx);
|
||||
return;
|
||||
|
@@ -277,11 +277,13 @@ serial_probe_qcdm (MMPortProbe *self)
|
||||
mm_qcdm_serial_port_queue_command (MM_QCDM_SERIAL_PORT (task->serial),
|
||||
verinfo,
|
||||
3,
|
||||
NULL,
|
||||
(MMQcdmSerialResponseFn)serial_probe_qcdm_parse_response,
|
||||
NULL);
|
||||
mm_qcdm_serial_port_queue_command (MM_QCDM_SERIAL_PORT (task->serial),
|
||||
verinfo2,
|
||||
3,
|
||||
NULL,
|
||||
(MMQcdmSerialResponseFn)serial_probe_qcdm_parse_response,
|
||||
self);
|
||||
|
||||
|
@@ -145,6 +145,7 @@ void
|
||||
mm_qcdm_serial_port_queue_command (MMQcdmSerialPort *self,
|
||||
GByteArray *command,
|
||||
guint32 timeout_seconds,
|
||||
GCancellable *cancellable,
|
||||
MMQcdmSerialResponseFn callback,
|
||||
gpointer user_data)
|
||||
{
|
||||
@@ -157,7 +158,7 @@ mm_qcdm_serial_port_queue_command (MMQcdmSerialPort *self,
|
||||
command,
|
||||
TRUE,
|
||||
timeout_seconds,
|
||||
NULL,
|
||||
cancellable,
|
||||
(MMSerialResponseFn) callback,
|
||||
user_data);
|
||||
}
|
||||
@@ -166,6 +167,7 @@ void
|
||||
mm_qcdm_serial_port_queue_command_cached (MMQcdmSerialPort *self,
|
||||
GByteArray *command,
|
||||
guint32 timeout_seconds,
|
||||
GCancellable *cancellable,
|
||||
MMQcdmSerialResponseFn callback,
|
||||
gpointer user_data)
|
||||
{
|
||||
@@ -178,7 +180,7 @@ mm_qcdm_serial_port_queue_command_cached (MMQcdmSerialPort *self,
|
||||
command,
|
||||
TRUE,
|
||||
timeout_seconds,
|
||||
NULL,
|
||||
cancellable,
|
||||
(MMSerialResponseFn) callback,
|
||||
user_data);
|
||||
}
|
||||
|
@@ -54,12 +54,14 @@ MMQcdmSerialPort *mm_qcdm_serial_port_new_fd (int fd);
|
||||
void mm_qcdm_serial_port_queue_command (MMQcdmSerialPort *self,
|
||||
GByteArray *command,
|
||||
guint32 timeout_seconds,
|
||||
GCancellable *cancellable,
|
||||
MMQcdmSerialResponseFn callback,
|
||||
gpointer user_data);
|
||||
|
||||
void mm_qcdm_serial_port_queue_command_cached (MMQcdmSerialPort *self,
|
||||
GByteArray *command,
|
||||
guint32 timeout_seconds,
|
||||
GCancellable *cancellable,
|
||||
MMQcdmSerialResponseFn callback,
|
||||
gpointer user_data);
|
||||
|
||||
|
@@ -201,7 +201,7 @@ qcdm_request_verinfo (MMQcdmSerialPort *port, VerInfoCb cb, GMainLoop *loop)
|
||||
g_byte_array_free (verinfo, TRUE);
|
||||
verinfo->len = len;
|
||||
|
||||
mm_qcdm_serial_port_queue_command (port, verinfo, 3, cb, loop);
|
||||
mm_qcdm_serial_port_queue_command (port, verinfo, 3, NULL, cb, loop);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user