aboutsummaryrefslogtreecommitdiff
path: root/src/mm-serial-port.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2009-09-08 17:31:54 -0700
committerDan Williams <dcbw@redhat.com>2009-09-08 17:34:04 -0700
commit14e5c52f78e7ad23b18b111e3271cbecad6acf3f (patch)
treeee6929c990c63139e4209a94f3e2d8c617547f4a /src/mm-serial-port.h
parent6cf01d2ab698d05eb58bffa7e85f41024f5c0546 (diff)
core: don't allow concurrent flashes on the same device
Previously, a few operations (like disable) could trigger a modem flash in parallel with another flash. That's wrong, don't allow that. At the same time, add in finer-grained error checking on serial port speed operations, and fix a GSM generic bug that would send the POWER_UP string on disable.
Diffstat (limited to 'src/mm-serial-port.h')
-rw-r--r--src/mm-serial-port.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mm-serial-port.h b/src/mm-serial-port.h
index a077f94f..841b4fa3 100644
--- a/src/mm-serial-port.h
+++ b/src/mm-serial-port.h
@@ -53,6 +53,7 @@ typedef void (*MMSerialResponseFn) (MMSerialPort *port,
gpointer user_data);
typedef void (*MMSerialFlashFn) (MMSerialPort *port,
+ GError *error,
gpointer user_data);
struct _MMSerialPort {
@@ -94,10 +95,11 @@ void mm_serial_port_queue_command_cached (MMSerialPort *self,
MMSerialResponseFn callback,
gpointer user_data);
-guint mm_serial_port_flash (MMSerialPort *self,
+gboolean mm_serial_port_flash (MMSerialPort *self,
guint32 flash_time,
MMSerialFlashFn callback,
gpointer user_data);
+void mm_serial_port_flash_cancel (MMSerialPort *self);
#endif /* MM_SERIAL_PORT_H */