summaryrefslogtreecommitdiffstats
path: root/gatchat/gatchat.c
AgeCommit message (Collapse)AuthorFilesLines
2015-07-07gatchat: Fix compiler warning with logical expressionMarcel Holtmann1-1/+1
CC gatchat/gatchat.o gatchat/gatchat.c: In function ‘have_line’: gatchat/gatchat.c:586:28: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses] if (!strncmp(str, "AT", 2) == TRUE) ^
2015-05-13gatchat: Introduce g_at_chat_get_userdataDenis Kenzior1-0/+31
2014-01-19gatchat: Fix handling of WRITE_SCHEDULER_DEBUGMarcel Holtmann1-3/+13
2012-07-15gatchat: Avoid shadowing variablesMarcel Holtmann1-3/+3
2011-10-10gatchat: Update copyright informationMarcel Holtmann1-1/+1
2011-07-25gatchat: Add terminator blacklistingDenis Kenzior1-1/+18
2011-05-06gatchat: Fix memory leak with notify nodes listMarcel Holtmann1-0/+1
The list itself needs to be freed as well and not only its elements.
2011-03-28gatchat: Add support for short prompt send variantDenis Kenzior1-13/+40
2011-02-25gatchat: Fix minor style issuesDenis Kenzior1-3/+3
2010-12-07gatchat: fix canceling in progress commandsVinicius Costa Gomes1-1/+1
As g_queue_peek_head() returns the node data field, we have to compare it against the actual command, not against the pointer to the queue node.
2010-11-29gatchat: explicitly compare pointers to NULLLucas De Marchi1-28/+24
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-10-21gatchat: Fix missing return value for g_at_chat_set_slaveMarcel Holtmann1-1/+1
2010-10-21gatchat: Add support for slave chat instancesMarcel Holtmann1-0/+31
This adds support to assign a slave chat instance to an existing chat instance. The slave chat is now additionally bound by the lifetime of its master chat instance. In case the master is cloned, the slave chat instance will also be cloned as well. With this it is possible to suspend the master while still have an active slave for notifications or extra commands.
2010-10-14gatchat: Fix calling unregister from callbacksDenis Kenzior1-2/+40
This fixes the issues with SIM hotswap on infineon
2010-10-14gatchat: break out the remove_if logicDenis Kenzior1-46/+64
And make unregister_group use the new function
2010-10-14gatchat: quit early if the group id doesn't matchDenis Kenzior1-1/+1
If the ID of the notify matches but the group id does not match it means that the unregister is being called with an id that does not belong to that particular group. Checking further entries is no longer necessary.
2010-08-16gatchat: Skip string contents in extract_lineDenis Kenzior1-2/+7
2010-08-12gatchat: Add g_at_chat_cloneDenis Kenzior1-0/+19
This function will clone a chat object, but will create a new group internally.
2010-08-12gatchat: Make GAtChat a facade for struct at_chatDenis Kenzior1-228/+401
Each GAtChat object is now simply a representation of a set of outstanding commands and registered unsolicited notification handlers. This makes it easy to cancel entire groups, e.g. by canceling the GAtChat object itself rather than forcing the user into tracking all relevant g_at_chat_register and g_at_chat_send ids.
2010-06-07gatchat: Check for disconnection when resumingDenis Kenzior1-0/+5
If the internal GAtIO is no longer valid, treat it as if our channel was disconnected.
2010-06-07Restore GAtChat disconnect handling when resuming a chat sessionMarcel Holtmann1-0/+2
2010-05-10gatchat: implement g_at_chat_get_io()Kristen Carlson Accardi1-0/+8
2010-04-28gatchat: Don't try to cleanup twiceDenis Kenzior1-11/+8
In case we get unrefed from the disconnect callback
2010-04-28gatchat: Use GAtIO for write watchersDenis Kenzior1-65/+21
2010-04-28gatchat: get_channel should return one from GAtIODenis Kenzior1-2/+2
2010-04-28gatchat: Channel is now setup by GAtIODenis Kenzior1-2/+0
2010-04-28gatchat: Better re-entrancy handlingDenis Kenzior1-6/+13
2010-04-28gatchat: Only set debug on IO if we have itDenis Kenzior1-1/+2
2010-04-28gatchat: Replace shutdown by suspend/resumeDenis Kenzior1-12/+27
Shutdown was actually pointless and according to Marcel he only had it in mind for PPP useage.
2010-04-28gatchat: port gatchat to use gatioDenis Kenzior1-112/+41
2010-04-28gatchat: Remove g_at_chat_set_syntaxDenis Kenzior1-12/+0
Never used and too unsafe in its current form
2010-04-24Add offset parameter to ring_buffer_write_ptr() functionMarcel Holtmann1-1/+1
2010-04-12Remove various GDestroyNotify function castingMarcel Holtmann1-10/+18
2010-04-11The user data pointer variable should be called user_dataMarcel Holtmann1-4/+5
2010-04-02Fix some cases where g_try_new should be usedMarcel Holtmann1-6/+0
2010-03-24Fix: Make CONNECT <baud> responses workDenis Kenzior1-1/+1
2010-02-03Remove dead assignments at gatchatGustavo F. Padovan1-6/+0
2010-02-01Fix: Check if the command is still pendingDenis Kenzior1-0/+3
2010-02-01Style: No need for the extra lineDenis Kenzior1-2/+1
2010-01-28Use 3 read attempts when in non-blocking modeMarcel Holtmann1-1/+1
2010-01-28Add new constructor for fully blocking operationMarcel Holtmann1-4/+27
2010-01-28Fix: Take care of uninitialized variable conditionDenis Kenzior1-4/+2
In some (impossible) circumstances rbytes and err might be used uninitialized. Here we make a check that a read was actually attempted before checking those variables.
2010-01-28Limit the number of continues read attemptsMarcel Holtmann1-2/+11
2010-01-20Refactor: Reorder argument orderDenis Kenzior1-5/+4
The order of arguments was a bit confusing, reorder them to make more logical sense.
2010-01-20Add gatutil.c to share common APIs with GAtServerZhenhua Zhang1-92/+6
Add gatutil.c/h gat.h and move shared typedef and APIs into it. So that they can be shared by GAtServer and GAtChat.
2010-01-15Fix: One more fix for disconnect detectionDenis Kenzior1-2/+1
In situations where lots of data is generated by the remote side (e.g. phonebook is being read) we can get our ring buffer filled up. In this case setting rbytes to zero first and then breaking out of the loop leads to an erroneous disconnect detection. The fix is to move setting of rbytes after we know we still have some space.
2010-01-14Fix: Make remote disconnect detection workDenis Kenzior1-1/+1
2010-01-12Style: Various issuesDenis Kenzior1-1/+1
2010-01-01Update copyright informationMarcel Holtmann1-1/+1
2009-12-24Unifiy all GAtChat error labelsMarcel Holtmann1-2/+2