From c3d61c9467698658f7ed3ea2dc5a41e094282546 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 21 Jun 2010 15:11:30 -0500 Subject: [PATCH] history: Make example_history use Delivery Reports --- plugins/example_history.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/example_history.c b/plugins/example_history.c index 924303b4..9276d6ea 100644 --- a/plugins/example_history.c +++ b/plugins/example_history.c @@ -163,10 +163,16 @@ static void example_history_sms_send_status(struct ofono_history_context *contex ofono_debug("Sending SMS %u failed", msg_id); ofono_debug("Failure Time: %s", buf); break; + case OFONO_HISTORY_SMS_STATUS_DELIVERED: + ofono_debug("SMS delivered, msg_id: %u, time: %s", msg_id, buf); + break; + case OFONO_HISTORY_SMS_STATUS_DELIVER_FAILED: + ofono_debug("SMS undeliverable, msg_id: %u, time: %s", + msg_id, buf); + break; default: break; - }; - + } } static struct ofono_history_driver example_driver = {