summaryrefslogtreecommitdiff
path: root/gatchat/gatserver.c
Commit message (Collapse)AuthorAgeFilesLines
* gatchat: Reword the fall through cases to avoid compiler warningsMarcel Holtmann2017-07-111-1/+1
|
* gatserver: Add NULL check to avoid crashGuillaume Zajac2012-06-241-0/+3
| | | | | | Dundee is not waiting to receive the NO CARRIER notification to close the IO channel with oFono so that oFono is trying to send a NO CARRIER although GAtServer is removed.
* gatchat: Update copyright informationMarcel Holtmann2011-10-101-1/+1
|
* gatserver: Add command finished callbacksDenis Kenzior2011-08-151-8/+39
|
* gatserver: Fix not processing after async errorDenis Kenzior2011-08-141-0/+1
| | | | If we send an async error response, all future commands are ignored.
* gatserver: Add sanity checkDenis Kenzior2011-08-141-0/+2
|
* gatserver: Fix not sending OK final responseDenis Kenzior2011-08-141-8/+13
|
* gatserver: Refactor IO codeDenis Kenzior2011-08-141-25/+22
| | | | | | | | | | | | The current GAtServer implementation had nasty corner cases where multiple commands were issued on the same command line. The server_suspend had no effect and we ended up processing the second command anyway, resulting in interesting side-effects or crashes. This commit simply discards the rest of the read input if the server starts processing a command. Since we do not yet support command abortion we also discard data that arrives when command is being processed.
* gatserver: fix certain bad behaviorDenis Kenzior2011-07-111-1/+4
| | | | | | Due to the new GAtIO semantics, the receive function is called immediately if the receive buffer is not empty. This caused certain funny behavior in non-command (e.g. empty, a/) processing.
* gatserver: add tone and pulse dialing AT commandsOlivier Guiter2011-03-291-0/+38
|
* gatserver: add v250 ATL and ATM commandsOlivier Guiter2011-03-251-0/+18
|
* gatserver: add AT&F commandOlivier Guiter2011-03-241-2/+27
|
* gatserver: add ATZ commandOlivier Guiter2011-03-231-18/+35
|
* gatserver: Tweak use of g_at_server_suspend/resumeDenis Kenzior2011-02-281-11/+18
|
* gatserver: Exit garbage state on HDLC frame endDenis Kenzior2011-02-281-1/+2
|
* gatserver: Update the internal command parsersDenis Kenzior2011-02-281-10/+3
| | | | | | | commit 61b30c025d3d461bfd577de29f27f4f9a5546213 changed the way the command callbacks are being called (namely the contents of the GAtResult object). Most command callbacks were updated, but the internal ones were forgotten. This patch fixes this issue.
* gatserver: Add function to enable/disable echoFrédéric Dalleau2011-02-231-0/+10
|
* gatserver: Add various ATSx handlersOlivier Guiter2011-02-221-0/+36
|
* gatserver: Be more const correctDenis Kenzior2011-02-161-1/+1
|
* gatserver: Change callback signatureDenis Kenzior2011-02-151-41/+31
| | | | Provide the originating GAtServer to the callback
* gatserver: extend D with GSM/UMTS specificsDenis Kenzior2011-02-151-3/+9
|
* gatserver: Don't bother reporting command prefixesDenis Kenzior2011-02-151-2/+10
| | | | | | The command line parser knows where the actual command line parameters begin, so there's no need to make the callback skip the prefix and the additional separator characters.
* gatserver: Add ATS5 command featureOlivier Guiter2011-02-141-1/+5
|
* gatserver: ATS6 command handler addedOlivier Guiter2011-01-181-0/+10
|
* gatchat: explicitly compare pointers to NULLLucas De Marchi2010-11-291-8/+8
| | | | | | | | | | | | | | This patch was generated by the following semantic patch (http://coccinelle.lip6.fr/) // <smpl> @fix disable is_null,isnt_null1@ expression *E; @@ - !E + E == NULL // </smpl>
* gatserver: Restore GAtServer disconnect handlingZhenhua Zhang2010-07-071-0/+2
| | | | Restore GAtServer disconnect handling when resuming a server session
* gatserver: Don't free twice after user disconnectZhenhua Zhang2010-07-061-3/+0
| | | | | It's possible to free gatserver in user disconnect function. So we should not free it again.
* gatserver: Check for disconnection when resumingZhenhua Zhang2010-06-171-0/+5
| | | | | If the internal GAtIO is no longer valid, treat it as if our channel was disconnected.
* gatserver: Suspend/resume GAtServer with GAtIOZhenhua Zhang2010-06-171-150/+109
| | | | | Support g_at_server_suspend and g_at_server_resume operation by using GAtIO to handle IO related function.
* Add offset parameter to ring_buffer_write_ptr() functionMarcel Holtmann2010-04-241-1/+1
|
* Fix: busy loop in atserverDenis Kenzior2010-04-121-1/+1
|
* Remove various GDestroyNotify function castingMarcel Holtmann2010-04-121-4/+8
|
* The user data pointer variable should be called user_dataMarcel Holtmann2010-04-111-4/+4
|
* Fix some cases where g_try_new should be usedMarcel Holtmann2010-04-021-1/+0
|
* Fix ampersand commands checkAndrzej Zaborowski2010-03-311-2/+2
| | | | Also remove a trailing tab.
* Refactor: Simplify V250 setting command functionsDenis Kenzior2010-03-311-91/+30
|
* Refactor: Simplify gatserver s-register functionsDenis Kenzior2010-03-311-52/+16
|
* Fix echo command back even if don't process itZhenhua Zhang2010-03-311-8/+8
|
* Add Repeat last command supportZhenhua Zhang2010-03-311-2/+7
|
* Add implementation for ATE and other basic commandZhenhua Zhang2010-03-311-4/+158
|
* Add implementation for S3, S4, S5 commandZhenhua Zhang2010-03-311-0/+133
|
* Fix: Make sure we still increment read_countDenis Kenzior2010-03-301-2/+2
|
* Fix ignore incoming bytes during parsingZhenhua Zhang2010-03-301-0/+4
| | | | | Server processes one command line at one time, so ignore the rest incoming bytes during the command parsing.
* Simplify the send_info APIDenis Kenzior2010-03-301-24/+14
|
* Fix: Properly handle async final responsesDenis Kenzior2010-03-301-6/+47
|
* Fix: We need to preserve the original lineDenis Kenzior2010-03-301-1/+3
|
* Fix: Record last received commandDenis Kenzior2010-03-301-6/+11
|
* Fix: Send an ERROR on A/Denis Kenzior2010-03-301-1/+1
|
* Refactor: Simplify extended command parsing logicDenis Kenzior2010-03-301-9/+6
|
* Refactor: Add a single-line response functionDenis Kenzior2010-03-301-1/+6
|