From 24a43c94efc45681be1c65ee6c939d698fafe3b6 Mon Sep 17 00:00:00 2001 From: laforge Date: Fri, 17 Aug 2007 10:02:26 +0000 Subject: Add a flag to allow LFCR as a valid linebreak. (Alex Osborne) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2736 99fdad57-331a-0410-800a-d7fa5415bdb3 --- include/gsmd/gsmd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/gsmd') diff --git a/include/gsmd/gsmd.h b/include/gsmd/gsmd.h index 3d92619..f1773c3 100644 --- a/include/gsmd/gsmd.h +++ b/include/gsmd/gsmd.h @@ -17,6 +17,7 @@ void *gsmd_tallocs; /* Refer to 3GPP TS 07.07 v 7.8.0, Chapter 4.1 */ #define LGSM_ATCMD_F_EXTENDED 0x01 /* as opposed to basic */ #define LGSM_ATCMD_F_PARAM 0x02 /* as opposed to action */ +#define LGSM_ATCMD_F_LFCR 0x04 /* accept LFCR as a line terminator */ struct gsmd_atcmd { struct llist_head list; @@ -37,6 +38,7 @@ enum llparse_state { LLPARSE_STATE_IDLE_LF, /* LF before response (V1) */ LLPARSE_STATE_RESULT, /* within result payload */ LLPARSE_STATE_RESULT_CR, /* CR after result */ + LLPARSE_STATE_RESULT_LF, /* LF after result */ LLPARSE_STATE_PROMPT, /* within a "> " prompt */ LLPARSE_STATE_PROMPT_SPC, /* a complete "> " prompt */ LLPARSE_STATE_ERROR, /* something went wrong */ -- cgit v1.2.3