summaryrefslogtreecommitdiffstats
path: root/sim.c
diff options
context:
space:
mode:
authorPaulK <contact@paulk.fr>2011-12-31 16:46:51 +0100
committerPaulK <contact@paulk.fr>2011-12-31 16:46:51 +0100
commit852feed67ca215589a223f6a51a64673b21af35f (patch)
treec5bd9be5df676aa5259ebaaa0fd0cfff658c4cf1 /sim.c
parent5a5ce9424d3ea0c7734addd7ac835900c6cf3c4a (diff)
downloadhardware_ril_samsung-ril-852feed67ca215589a223f6a51a64673b21af35f.zip
hardware_ril_samsung-ril-852feed67ca215589a223f6a51a64673b21af35f.tar.gz
hardware_ril_samsung-ril-852feed67ca215589a223f6a51a64673b21af35f.tar.bz2
Added RFS functions and IPC_GEN_PHONE_RES proper handling, applied to data
Diffstat (limited to 'sim.c')
-rw-r--r--sim.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sim.c b/sim.c
index e3cb8a4..ef1d5b4 100644
--- a/sim.c
+++ b/sim.c
@@ -327,6 +327,9 @@ void ril_request_enter_sim_pin(RIL_Token t, void *data, size_t datalen)
ipc_fmt_send_set(IPC_SEC_PIN_STATUS, reqGetId(t), (unsigned char *) &pin_status, sizeof(pin_status));
+ ipc_gen_phone_res_expect_to_func(reqGetId(t), IPC_SEC_PIN_STATUS,
+ ipc_sec_pin_status_complete);
+
/* 2. Get lock status */
memset(buf, 0, sizeof(buf));
buf[0] = 1;
@@ -345,7 +348,7 @@ void ril_request_enter_sim_pin(RIL_Token t, void *data, size_t datalen)
*/
// FIXME: here, we're going to do that:
// do the pin status req, enqueue the token to gen phone res and use this custom function (dd possibility to use custom functions on return, not only return bare requests complete with dumb RIL_E_)
-void ipc_sec_pin_status_res(struct ipc_message_info *info)
+void ipc_sec_pin_status_complete(struct ipc_message_info *info)
{
struct ipc_gen_phone_res *gen_res = (struct ipc_gen_phone_res *) info->data;
int attempts = -1;