summaryrefslogtreecommitdiff
path: root/src/mm-port-serial-gps.c
AgeCommit message (Collapse)AuthorFilesLines
2020-04-08ports: port to object loggingAleksander Morgado1-4/+7
2016-01-23port-serial: rework response parsingAleksander Morgado1-4/+7
Response parsing was being done in different places for AT and QCDM subclasses; in the case of AT it was being done early, before returning the byte array in the mm_serial_port_command_finish() response. In the case of QCDM, it was being done after mm_serial_port_command_finish(), and that was forcing every caller to cleanup the response buffer once the response was processed. With the new logic in this patch, the response is always parsed (i.e. looked for a valid response or an error detected) before mm_serial_port_command_finish() returns, and actually this method now returns a totally different GByteArray, not the internal response buffer GByteArray, so there's no longer any need for the caller to explicitly clean it up. The one doing the cleanup is the parser method itself in every case. This change also allows us to return serial port responses in idle, but that's not changed for now as there's no immediate need.
2014-05-20core: minor coding style fixesBen Chan1-1/+1
2014-02-13ports: rename 'MMGpsSerialPort' to 'MMPortSerialGps'Aleksander Morgado1-0/+218