aboutsummaryrefslogtreecommitdiff
path: root/src/mm-qcdm-serial-port.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-03-07 13:07:17 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-16 14:53:22 +0100
commit5a485d74a20a57498d06db09b621af93b433d7e2 (patch)
treea8c5c4b20cbecfebc2493a513f11145ca5724962 /src/mm-qcdm-serial-port.c
parent9b38cd4f5ce68d816aaa5ffd5b90c1982199bcf2 (diff)
qcdm-serial-port: allow cancelling the response timeout
Diffstat (limited to 'src/mm-qcdm-serial-port.c')
-rw-r--r--src/mm-qcdm-serial-port.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mm-qcdm-serial-port.c b/src/mm-qcdm-serial-port.c
index 8dc50cb4..44a5f1c3 100644
--- a/src/mm-qcdm-serial-port.c
+++ b/src/mm-qcdm-serial-port.c
@@ -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);
}