summaryrefslogtreecommitdiffstats
path: root/gril
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2015-11-05 22:23:30 -0600
committerDenis Kenzior <denkenz@gmail.com>2015-11-05 22:23:30 -0600
commit92b651e3f0479df8169d29eb447cc394ea637c85 (patch)
tree8197a8355bf8496c4d92039aea640824b808cae4 /gril
parent5a16ea8c4eac42d493d4c37b87480f19154966d7 (diff)
downloadofono-92b651e3f0479df8169d29eb447cc394ea637c85.tar.bz2
gril: Remove g_ril_request_sms_cmgs
Diffstat (limited to 'gril')
-rw-r--r--gril/grilrequest.c40
-rw-r--r--gril/grilrequest.h10
2 files changed, 0 insertions, 50 deletions
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,