db,sms: Rename db_sms_mark_sent() to db_sms_mark_delivered()

In MT-SMS the message is being delivered. Make the naming follow
that. The schema still refers to "sent" while it should be "delivered"
too.
This commit is contained in:
Alexander Chemeris 2014-03-08 21:27:37 +01:00 committed by Holger Hans Peter Freyther
parent 82a1858eb0
commit 1e77e3dc5b
3 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@ struct gsm_sms *db_sms_get(struct gsm_network *net, unsigned long long id);
struct gsm_sms *db_sms_get_unsent(struct gsm_network *net, unsigned long long min_id);
struct gsm_sms *db_sms_get_unsent_by_subscr(struct gsm_network *net, unsigned long long min_subscr_id, unsigned int failed);
struct gsm_sms *db_sms_get_unsent_for_subscr(struct gsm_subscriber *subscr);
int db_sms_mark_sent(struct gsm_sms *sms);
int db_sms_mark_delivered(struct gsm_sms *sms);
int db_sms_inc_deliver_attempts(struct gsm_sms *sms);
/* APDU blob storage */

View File

@ -1303,8 +1303,8 @@ struct gsm_sms *db_sms_get_unsent_for_subscr(struct gsm_subscriber *subscr)
return sms;
}
/* mark a given SMS as read */
int db_sms_mark_sent(struct gsm_sms *sms)
/* mark a given SMS as delivered */
int db_sms_mark_delivered(struct gsm_sms *sms)
{
dbi_result result;

View File

@ -554,7 +554,7 @@ static int gsm411_rx_rp_ack(struct msgb *msg, struct gsm_trans *trans,
}
/* mark this SMS as sent in database */
db_sms_mark_sent(sms);
db_sms_mark_delivered(sms);
send_signal(S_SMS_DELIVERED, trans, sms, 0);