This patch is to cancel the pending sms via D-Bus. Till now, I'm still not sure what kind of sms should be cancelled. In theory, one message, or part of it, would be sent by oFono can be cancelled. For some examples: Any part of a message that has never been sent can be cancelled; one message was sent but failed, we can cancel before retry; One message is split into several pieces, we can cancel before all of them are sent. In current patch, I only cancel the sms that has never been sent. I wonder if it's enough or I should handle all the situations above.
Another question here is about the existed code. There is a hashtable "messages" in struct ofono_sms. Can we store the state in the tx_queue_entry, and remove the hashtable thoroughly to make the code more simple? Yang Gu (1): sms: Cancel pending message include/history.h | 1 + src/sms.c | 132 ++++++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 106 insertions(+), 27 deletions(-) _______________________________________________ ofono mailing list [email protected] http://lists.ofono.org/listinfo/ofono
