From 92b651e3f0479df8169d29eb447cc394ea637c85 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 5 Nov 2015 22:23:30 -0600 Subject: gril: Remove g_ril_request_sms_cmgs --- gril/grilrequest.c | 40 ---------------------------------------- gril/grilrequest.h | 10 ---------- 2 files changed, 50 deletions(-) (limited to 'gril') diff --git a/gril/grilrequest.c b/gril/grilrequest.c index 6e12f6e0..2e1df624 100644 --- a/gril/grilrequest.c +++ b/gril/grilrequest.c @@ -709,46 +709,6 @@ void g_ril_request_change_passwd(GRil *gril, old_passwd, new_passwd, aid_str); } -void g_ril_request_sms_cmgs(GRil *gril, - const struct req_sms_cmgs *req, - struct parcel *rilp) -{ - int smsc_len; - char *tpdu; - - parcel_init(rilp); - parcel_w_int32(rilp, 2); /* Number of strings */ - - /* - * SMSC address: - * - * smsc_len == 1, then zero-length SMSC was spec'd - * RILD expects a NULL string in this case instead - * of a zero-length string. - */ - smsc_len = req->pdu_len - req->tpdu_len; - /* TODO: encode SMSC & write to parcel */ - if (smsc_len > 1) - ofono_error("SMSC address specified (smsc_len %d); " - "NOT-IMPLEMENTED", smsc_len); - - parcel_w_string(rilp, NULL); /* SMSC address; NULL == default */ - - /* - * TPDU: - * - * 'pdu' is a raw hexadecimal string - * encode_hex() turns it into an ASCII/hex UTF8 buffer - * parcel_w_string() encodes utf8 -> utf16 - */ - tpdu = encode_hex(req->pdu + smsc_len, req->tpdu_len, 0); - parcel_w_string(rilp, tpdu); - - g_ril_append_print_buf(gril, "(%s)", tpdu); - - g_free(tpdu); -} - void g_ril_request_sms_acknowledge(GRil *gril, struct parcel *rilp) { diff --git a/gril/grilrequest.h b/gril/grilrequest.h index 465bfb46..b0201f88 100644 --- a/gril/grilrequest.h +++ b/gril/grilrequest.h @@ -117,12 +117,6 @@ struct req_pin_change_state { const char *passwd; }; -struct req_sms_cmgs { - const unsigned char *pdu; - int pdu_len; - int tpdu_len; -}; - gboolean g_ril_request_deactivate_data_call(GRil *gril, const struct req_deactivate_data_call *req, struct parcel *rilp, @@ -178,10 +172,6 @@ void g_ril_request_change_passwd(GRil *gril, const gchar *aid_str, struct parcel *rilp); -void g_ril_request_sms_cmgs(GRil *gril, - const struct req_sms_cmgs *req, - struct parcel *rilp); - void g_ril_request_sms_acknowledge(GRil *gril, struct parcel *rilp); void g_ril_request_dial(GRil *gril, -- cgit v1.2.3