Differences from previous version:

- Now we don't re-encode the SMS to a PDU when storing it to disk
- Sms' ref is not incremented
- When restoring sms pdus, directories and files that do not match the expected
  names are filtered out

I've tested this patch series using phonesim by calling exit(1) in some places
to simulate crashes. The pending sms messages were correctly sent once oFono
was up again.


Lucas De Marchi (3):
  sms: store pending tx pdus on disk
  sms: delete sent sms messages from backup
  sms: restore pending tx messages from backup

 src/ofono.h   |    1 +
 src/sms.c     |   96 +++++++++++++++++++++
 src/smsutil.c |  260 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/smsutil.h |   19 ++++
 4 files changed, 376 insertions(+), 0 deletions(-)

-- 
1.7.3.5

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to