diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2009-09-24 00:33:28 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-09-23 14:27:52 -0500 |
commit | 2a02f45c79c3bc078e3c8442f358416adc9b79b5 (patch) | |
tree | a435525102a4fbda734ba7038fb2a7a1adf18687 /include/sim.h | |
parent | c98e99aef27c47355219cec72a99885c679e60d1 (diff) | |
download | ofono-2a02f45c79c3bc078e3c8442f358416adc9b79b5.tar.bz2 |
Add plugin interface for getting PIN lock state.
It may be useful to have the information of whether card is currently
locked and emit events when this changes but if we want to have it as a
property, we would need properties for all types of locks and it wouldn't
be all that useful.
Diffstat (limited to 'include/sim.h')
-rw-r--r-- | include/sim.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sim.h b/include/sim.h index af2fd1eb..fa5276b6 100644 --- a/include/sim.h +++ b/include/sim.h @@ -91,6 +91,9 @@ typedef void (*ofono_sim_passwd_cb_t)(const struct ofono_error *error, typedef void (*ofono_sim_lock_unlock_cb_t)(const struct ofono_error *error, void *data); +typedef void (*ofono_sim_locked_cb_t)(const struct ofono_error *error, + int locked, void *data); + struct ofono_sim_driver { const char *name; int (*probe)(struct ofono_sim *sim, unsigned int vendor, void *data); @@ -131,6 +134,9 @@ struct ofono_sim_driver { void (*lock)(struct ofono_sim *sim, enum ofono_sim_password_type type, int enable, const char *passwd, ofono_sim_lock_unlock_cb_t cb, void *data); + void (*query_locked)(struct ofono_sim *sim, + enum ofono_sim_password_type type, + ofono_sim_locked_cb_t cb, void *data); }; int ofono_sim_driver_register(const struct ofono_sim_driver *d); |