diff options
author | laforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2007-07-31 07:38:23 +0000 |
---|---|---|
committer | laforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2007-07-31 07:38:23 +0000 |
commit | d5876c34c4b6096479e2165ad21ef524206413a8 (patch) | |
tree | 22f20f1fd30e45ecfa7748a714b71534fdb04c71 /include | |
parent | 5dcc1231bd8895cc3364b573116f5b91ef41e327 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/gsmd/gsmd.h | 5 |
1 files changed, 4 insertions, 1 deletions
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; |