From d5876c34c4b6096479e2165ad21ef524206413a8 Mon Sep 17 00:00:00 2001 From: laforge Date: Tue, 31 Jul 2007 07:38:23 +0000 Subject: Add '2nd try' of the multiline parser: Every extended response causes a flush of the previous mlbuf and starts collecting new response lines. Also, final_cb is now really only reached for final responses and the code for case 'A' won't overwrite the command buffer with the response anymore. I throw in '\n' as a separator for multi-line responses, and the callback is called for each response this way. (Philipp Zabel) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@2581 99fdad57-331a-0410-800a-d7fa5415bdb3 --- include/gsmd/gsmd.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/gsmd') diff --git a/include/gsmd/gsmd.h b/include/gsmd/gsmd.h index b4dfa62..0ce753b 100644 --- a/include/gsmd/gsmd.h +++ b/include/gsmd/gsmd.h @@ -41,7 +41,10 @@ enum llparse_state { }; /* we can't take any _single_ response bigger than this: */ -#define LLPARSE_BUF_SIZE 256 +#define LLPARSE_BUF_SIZE 1024 + +/* we can't pare a mutiline response biger than this: */ +#define MLPARSE_BUF_SIZE 65535 struct llparser { enum llparse_state state; -- cgit v1.2.3