[RFC] gsmd multi-line response support, 2nd try
laforge at openmoko.org
Tue Jul 31 09:35:53 CEST 2007
On Mon, Jun 18, 2007 at 04:16:41PM +0200, Philipp Zabel wrote:
> This second try works much better in that 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.
I've now committed this patch, just changing one minor detail: the
static size of 1024 for mlbuf has been replaced with a constat that's
defined in the header file to 65535.
I'd actually prefer to have that buffer static in bss, rather than
putting it on the stack every time we enter the parser.
svn rev. 2581
- Harald Welte <laforge at openmoko.org> http://openmoko.org/
Software for the world's first truly open Free Software mobile phone
More information about the gsmd-devel