diff options
author | Tambet Ingo <tambet@gmail.com> | 2008-09-11 11:21:04 +0300 |
---|---|---|
committer | Tambet Ingo <tambet@gmail.com> | 2008-09-11 11:21:04 +0300 |
commit | 40e4d2fed0bdaeb7602a9b18ac74c116d4b18fc7 (patch) | |
tree | 430daebce3624a917f2bdf1636598c2d812d9c7f /src/mm-serial.h | |
parent | ac4409e7cea29e03d311e6b805a084837d8bb70f (diff) |
Don't try to send commands to the serial device if it's connected.
Implement mm_serial_is_connected() function and call it before trying to write
anything to the serial port.
Diffstat (limited to 'src/mm-serial.h')
-rw-r--r-- | src/mm-serial.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mm-serial.h b/src/mm-serial.h index 37162c6f..6fc1f845 100644 --- a/src/mm-serial.h +++ b/src/mm-serial.h @@ -65,6 +65,7 @@ guint mm_serial_flash (MMSerial *self, MMSerialFlashFn callback, gpointer user_data); +gboolean mm_serial_is_connected (MMSerial *self); const char *mm_serial_get_device (MMSerial *self); #endif /* MM_SERIAL_H */ |