summaryrefslogtreecommitdiffstats
path: root/include/sim.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-06-16 20:52:18 -0700
committerMarcel Holtmann <marcel@holtmann.org>2012-06-16 20:52:18 -0700
commitc3124b66d903a43ce639e3de8e838ef39419fc4f (patch)
tree2462fa0cef618ce2e3de8e32a4753bff9de9b767 /include/sim.h
parent1960dbbc79e43f33f23886c2a12e508a0350aad1 (diff)
downloadofono-c3124b66d903a43ce639e3de8e838ef39419fc4f.tar.bz2
sim: Add special callback for reading MSISDN value
Diffstat (limited to 'include/sim.h')
-rw-r--r--include/sim.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sim.h b/include/sim.h
index cd2f1e38..8b5ff659 100644
--- a/include/sim.h
+++ b/include/sim.h
@@ -94,6 +94,10 @@ typedef void (*ofono_sim_read_cb_t)(const struct ofono_error *error,
typedef void (*ofono_sim_write_cb_t)(const struct ofono_error *error,
void *data);
+typedef void (*ofono_sim_msisdn_cb_t)(const struct ofono_error *error,
+ const struct ofono_phone_number *ph,
+ void *data);
+
typedef void (*ofono_sim_iccid_cb_t)(const struct ofono_error *error,
const char *iccid, void *data);
@@ -147,6 +151,8 @@ struct ofono_sim_driver {
void (*write_file_cyclic)(struct ofono_sim *sim, int fileid,
int length, const unsigned char *value,
ofono_sim_write_cb_t cb, void *data);
+ void (*read_msisdn)(struct ofono_sim *sim,
+ ofono_sim_msisdn_cb_t cb, void *data);
void (*read_iccid)(struct ofono_sim *sim,
ofono_sim_iccid_cb_t cb, void *data);
void (*read_imsi)(struct ofono_sim *sim,