summaryrefslogtreecommitdiffstats
path: root/gatchat/gatserver.c
AgeCommit message (Collapse)AuthorFilesLines
2012-06-24gatserver: Add NULL check to avoid crashGuillaume Zajac1-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.
2011-10-10gatchat: Update copyright informationMarcel Holtmann1-1/+1
2011-08-15gatserver: Add command finished callbacksDenis Kenzior1-8/+39
2011-08-14gatserver: Fix not processing after async errorDenis Kenzior1-0/+1
If we send an async error response, all future commands are ignored.
2011-08-14gatserver: Add sanity checkDenis Kenzior1-0/+2
2011-08-14gatserver: Fix not sending OK final responseDenis Kenzior1-8/+13
2011-08-14gatserver: Refactor IO codeDenis Kenzior1-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.
2011-07-11gatserver: fix certain bad behaviorDenis Kenzior1-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.
2011-03-29gatserver: add tone and pulse dialing AT commandsOlivier Guiter1-0/+38
2011-03-25gatserver: add v250 ATL and ATM commandsOlivier Guiter1-0/+18
2011-03-24gatserver: add AT&F commandOlivier Guiter1-2/+27
2011-03-23gatserver: add ATZ commandOlivier Guiter1-18/+35
2011-02-28gatserver: Tweak use of g_at_server_suspend/resumeDenis Kenzior1-11/+18
2011-02-28gatserver: Exit garbage state on HDLC frame endDenis Kenzior1-1/+2
2011-02-28gatserver: Update the internal command parsersDenis Kenzior1-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.
2011-02-23gatserver: Add function to enable/disable echoFrédéric Dalleau1-0/+10
2011-02-22gatserver: Add various ATSx handlersOlivier Guiter1-0/+36
2011-02-16gatserver: Be more const correctDenis Kenzior1-1/+1
2011-02-15gatserver: Change callback signatureDenis Kenzior1-41/+31
Provide the originating GAtServer to the callback
2011-02-15gatserver: extend D with GSM/UMTS specificsDenis Kenzior1-3/+9
2011-02-15gatserver: Don't bother reporting command prefixesDenis Kenzior1-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.
2011-02-14gatserver: Add ATS5 command featureOlivier Guiter1-1/+5
2011-01-18gatserver: ATS6 command handler addedOlivier Guiter1-0/+10
2010-11-29gatchat: explicitly compare pointers to NULLLucas De Marchi1-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>
2010-07-07gatserver: Restore GAtServer disconnect handlingZhenhua Zhang1-0/+2
Restore GAtServer disconnect handling when resuming a server session
2010-07-06gatserver: Don't free twice after user disconnectZhenhua Zhang1-3/+0
It's possible to free gatserver in user disconnect function. So we should not free it again.
2010-06-17gatserver: Check for disconnection when resumingZhenhua Zhang1-0/+5
If the internal GAtIO is no longer valid, treat it as if our channel was disconnected.
2010-06-17gatserver: Suspend/resume GAtServer with GAtIOZhenhua Zhang1-150/+109
Support g_at_server_suspend and g_at_server_resume operation by using GAtIO to handle IO related function.
2010-04-24Add offset parameter to ring_buffer_write_ptr() functionMarcel Holtmann1-1/+1
2010-04-12Fix: busy loop in atserverDenis Kenzior1-1/+1
2010-04-12Remove various GDestroyNotify function castingMarcel Holtmann1-4/+8
2010-04-11The user data pointer variable should be called user_dataMarcel Holtmann1-4/+4
2010-04-02Fix some cases where g_try_new should be usedMarcel Holtmann1-1/+0
2010-03-31Fix ampersand commands checkAndrzej Zaborowski1-2/+2
Also remove a trailing tab.
2010-03-31Refactor: Simplify V250 setting command functionsDenis Kenzior1-91/+30
2010-03-31Refactor: Simplify gatserver s-register functionsDenis Kenzior1-52/+16
2010-03-31Fix echo command back even if don't process itZhenhua Zhang1-8/+8
2010-03-31Add Repeat last command supportZhenhua Zhang1-2/+7
2010-03-31Add implementation for ATE and other basic commandZhenhua Zhang1-4/+158
2010-03-31Add implementation for S3, S4, S5 commandZhenhua Zhang1-0/+133
2010-03-30Fix: Make sure we still increment read_countDenis Kenzior1-2/+2
2010-03-30Fix ignore incoming bytes during parsingZhenhua Zhang1-0/+4
Server processes one command line at one time, so ignore the rest incoming bytes during the command parsing.
2010-03-30Simplify the send_info APIDenis Kenzior1-24/+14
2010-03-30Fix: Properly handle async final responsesDenis Kenzior1-6/+47
2010-03-30Fix: We need to preserve the original lineDenis Kenzior1-1/+3
2010-03-30Fix: Record last received commandDenis Kenzior1-6/+11
2010-03-30Fix: Send an ERROR on A/Denis Kenzior1-1/+1
2010-03-30Refactor: Simplify extended command parsing logicDenis Kenzior1-9/+6
2010-03-30Refactor: Add a single-line response functionDenis Kenzior1-1/+6
2010-03-30Add API stubs for unsolicited / final responsesZhenhua Zhang1-6/+59