aboutsummaryrefslogtreecommitdiff
path: root/src/mm-callback-info.c
AgeCommit message (Collapse)Author
2009-10-12core: convert MMCallbackInfo modem refs to weak refsDan Williams
Full references prevented destruction of the modem object if it was unplugged or somehow removed. To fix that using full references on the modems would require that all usage of MMCallbackInfo to be aware of the validity of the modem and to ensure the callback was called whenever the modem became invalid. That, needless to say, would suck. Since any in-progress calls can't complete when the modem is invalid anyway, just have the MMCallbackInfo object return a generic error when the modem goes away and the call is still in-progress.
2009-08-06license: add license header to all files and set copyright based on git logAlexander Sack
2008-12-09Lots of random fixes:Tambet Ingo
Rework the MMCallbackInfo callback invocation. Always use g_error_literal() where it makes sense. Replace sleep() calls, with timeouts to not block the whole MM.
2008-09-11Rewrite serial device communications.Tambet Ingo
Instead of vague "send something, wait something" the responses are now analyzed by (overridable) parsers. Makes all the modem implementations much easier since each caller knows without any code whether the call succeeded or failed. Another thing that makes modem code simpler (and the whole thing more robust), is the queueing of sent commands. Each queued command has a command and a callback which is quaranteed to get called, even if sending failed. Define and implement error reporting.
2008-09-01Implement reading IMEI, IMSI, manufacturer, model, and version (revision).Tambet Ingo
2008-07-31Initial commit.Tambet Ingo