G1: Add a G1 syntax for parsing
authorAndres Salomon <dilinger@collabora.co.uk>
Tue, 25 Aug 2009 22:07:28 +0000 (18:07 -0400)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 2 Sep 2009 23:11:10 +0000 (16:11 -0700)
commit3b1733b18af596b0085902986eafd646ab08c58d
tree7422604dc4997f34a9a59e3a0f6b78b7735addc9
parent7b9f0773fa0bee12b9fe3128ad424f14ece731f0
G1: Add a G1 syntax for parsing

This is based on the generic_at parser, with unnecessary stuff removed.

The G1 routinely screws up CRLFs, so the parser needs to account for
that.  This parser ignores leading CRLFs (which is what reference-ril
does as well), as well as trailing LFs (which are sometimes left out).
CRs are used as end-of-message indicators.  Since we're not bothering
tracking CRLFs, there's also no need for a GARBAGE state, or MULTILINE
stuff.
plugins/g1.c