From f24fc68e04fbe225de162f57e3cbd254f8f03df4 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 3 Apr 2013 12:26:24 +0200 Subject: 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. --- include/ModemManager-errors.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/ModemManager-errors.h') diff --git a/include/ModemManager-errors.h b/include/ModemManager-errors.h index 0be24abb..ed714573 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; /** -- cgit v1.2.3-70-g09d2