projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
687f830
)
sim: implement function to get password type
author
August Mayer
<august.mayer@hale.at>
Thu, 16 Aug 2012 07:37:19 +0000
(09:37 +0200)
committer
Denis Kenzior
<denkenz@gmail.com>
Thu, 16 Aug 2012 05:59:18 +0000
(
00:59
-0500)
src/sim.c
patch
|
blob
|
history
diff --git
a/src/sim.c
b/src/sim.c
index
4384eb0
..
8059d2b
100644
(file)
--- a/
src/sim.c
+++ b/
src/sim.c
@@
-2243,6
+2243,14
@@
enum ofono_sim_cphs_phase ofono_sim_get_cphs_phase(struct ofono_sim *sim)
return sim->cphs_phase;
}
+enum ofono_sim_password_type ofono_sim_get_password_type(struct ofono_sim *sim)
+{
+ if (sim == NULL)
+ return OFONO_SIM_PASSWORD_NONE;
+
+ return sim->pin_type;
+}
+
const unsigned char *ofono_sim_get_cphs_service_table(struct ofono_sim *sim)
{
if (sim == NULL)