summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-04-03 12:26:24 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-04-04 19:26:51 +0200
commitf24fc68e04fbe225de162f57e3cbd254f8f03df4 (patch)
tree441589ebf3f7003402f62fceb9c7adaa3ac82db3 /include
parent4e4d139e309c890b2c5c44b747aeaf9a5deac9bc (diff)
downloadModemManager-f24fc68e04fbe225de162f57e3cbd254f8f03df4.tar.gz
port-probe: add a new serial parser filter to detect non-AT strings
We will check each string with our custom filter before even trying to parse them. A MM_SERIAL_ERROR_PARSE_FAILED error will be issued whenever the string doesn't match the filter.
Diffstat (limited to 'include')
-rw-r--r--include/ModemManager-errors.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ModemManager-errors.h b/include/ModemManager-errors.h
index 0be24abb1..ed7145739 100644
--- a/include/ModemManager-errors.h
+++ b/include/ModemManager-errors.h
@@ -209,6 +209,7 @@ typedef enum { /*< underscore_name=mm_connection_error >*/
* @MM_SERIAL_ERROR_OPEN_FAILED_NO_DEVICE: Could not open the serial port, no device.
* @MM_SERIAL_ERROR_FLASH_FAILED: Could not flash the device.
* @MM_SERIAL_ERROR_NOT_OPEN: The serial port is not open.
+ * @MM_SERIAL_ERROR_PARSE_FAILED: The serial port specific parsing failed.
*
* Serial errors that may be reported by ModemManager.
*/
@@ -220,6 +221,7 @@ typedef enum { /*< underscore_name=mm_serial_error >*/
MM_SERIAL_ERROR_OPEN_FAILED_NO_DEVICE = 4, /*< nick=OpenFailedNoDevice >*/
MM_SERIAL_ERROR_FLASH_FAILED = 5, /*< nick=FlashFailed >*/
MM_SERIAL_ERROR_NOT_OPEN = 6, /*< nick=NotOpen >*/
+ MM_SERIAL_ERROR_PARSE_FAILED = 7, /*< nick=ParseFailed >*/
} MMSerialError;
/**