summaryrefslogtreecommitdiffstats
path: root/gril
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2015-11-12 11:58:51 -0600
committerDenis Kenzior <denkenz@gmail.com>2015-11-12 11:58:51 -0600
commit2c987c00449397713a8b41dbe4513d112dc8ef10 (patch)
tree9b3560b9f633b7b34b8ba824ee95cb8da5c15c5e /gril
parent433104e9531f9ff4fef29c9f4b77346f1129ba9b (diff)
downloadofono-2c987c00449397713a8b41dbe4513d112dc8ef10.tar.bz2
gril: Remove g_ril_request_pin_change_state
Diffstat (limited to 'gril')
-rw-r--r--gril/grilrequest.c87
-rw-r--r--gril/grilrequest.h11
2 files changed, 0 insertions, 98 deletions
diff --git a/gril/grilrequest.c b/gril/grilrequest.c
index 5809286b..00730128 100644
--- a/gril/grilrequest.c
+++ b/gril/grilrequest.c
@@ -71,13 +71,6 @@
#define ROOTMF ((char[]) {'\x3F', '\x00'})
#define ROOTMF_SZ sizeof(ROOTMF)
-/* RIL_Request* parameter counts */
-#define SET_FACILITY_LOCK_PARAMS 5
-
-/* RIL_FACILITY_LOCK parameters */
-#define RIL_FACILITY_UNLOCK "0"
-#define RIL_FACILITY_LOCK "1"
-
/* Call ID should not really be a big number */
#define MAX_CID_DIGITS 3
@@ -578,86 +571,6 @@ error:
return FALSE;
}
-gboolean g_ril_request_pin_change_state(GRil *gril,
- const struct req_pin_change_state *req,
- struct parcel *rilp)
-{
- const char *lock_type;
-
- /*
- * TODO: clean up the use of string literals &
- * the multiple g_ril_append_print_buf() calls
- * by using a table lookup as does the core sim code
- */
- switch (req->passwd_type) {
- case OFONO_SIM_PASSWORD_SIM_PIN:
- g_ril_append_print_buf(gril, "(SC,");
- lock_type = "SC";
- break;
- case OFONO_SIM_PASSWORD_PHSIM_PIN:
- g_ril_append_print_buf(gril, "(PS,");
- lock_type = "PS";
- break;
- case OFONO_SIM_PASSWORD_PHFSIM_PIN:
- g_ril_append_print_buf(gril, "(PF,");
- lock_type = "PF";
- break;
- case OFONO_SIM_PASSWORD_SIM_PIN2:
- g_ril_append_print_buf(gril, "(P2,");
- lock_type = "P2";
- break;
- case OFONO_SIM_PASSWORD_PHNET_PIN:
- g_ril_append_print_buf(gril, "(PN,");
- lock_type = "PN";
- break;
- case OFONO_SIM_PASSWORD_PHNETSUB_PIN:
- g_ril_append_print_buf(gril, "(PU,");
- lock_type = "PU";
- break;
- case OFONO_SIM_PASSWORD_PHSP_PIN:
- g_ril_append_print_buf(gril, "(PP,");
- lock_type = "PP";
- break;
- case OFONO_SIM_PASSWORD_PHCORP_PIN:
- g_ril_append_print_buf(gril, "(PC,");
- lock_type = "PC";
- break;
- default:
- ofono_error("%s: Invalid password type: %d",
- __func__,
- req->passwd_type);
- goto error;
- }
-
- parcel_init(rilp);
- parcel_w_int32(rilp, SET_FACILITY_LOCK_PARAMS);
-
- parcel_w_string(rilp, lock_type);
-
- if (req->enable)
- parcel_w_string(rilp, RIL_FACILITY_LOCK);
- else
- parcel_w_string(rilp, RIL_FACILITY_UNLOCK);
-
- parcel_w_string(rilp, req->passwd);
-
- /* TODO: make this a constant... */
- parcel_w_string(rilp, "0"); /* class */
-
- parcel_w_string(rilp, req->aid_str);
-
- g_ril_append_print_buf(gril, "(%s,%d,%s,0,aid=%s)",
- print_buf,
- req->enable,
- req->passwd,
- req->aid_str);
-
- return TRUE;
-
-error:
- return FALSE;
-}
-
void g_ril_request_dial(GRil *gril,
const struct ofono_phone_number *ph,
enum ofono_clir_option clir,
diff --git a/gril/grilrequest.h b/gril/grilrequest.h
index 5dec831c..b456f048 100644
--- a/gril/grilrequest.h
+++ b/gril/grilrequest.h
@@ -110,13 +110,6 @@ struct req_sim_write_record {
const unsigned char *data;
};
-struct req_pin_change_state {
- const gchar *aid_str;
- enum ofono_sim_password_type passwd_type;
- int enable;
- const char *passwd;
-};
-
gboolean g_ril_request_deactivate_data_call(GRil *gril,
const struct req_deactivate_data_call *req,
struct parcel *rilp,
@@ -151,10 +144,6 @@ gboolean g_ril_request_sim_write_record(GRil *gril,
const struct req_sim_write_record *req,
struct parcel *rilp);
-gboolean g_ril_request_pin_change_state(GRil *gril,
- const struct req_pin_change_state *req,
- struct parcel *rilp);
-
void g_ril_request_dial(GRil *gril,
const struct ofono_phone_number *ph,
enum ofono_clir_option clir,