From c77fb101f950ccfb33de92e90b45756884c3303d Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Tue, 7 Nov 2017 08:42:48 -0800 Subject: [PATCH] sim: logical access API Moved logical access API from simauth to sim atom. This removes the need for a simauth driver completely, as the rest of the functionality was moved in previous commits. --- include/sim.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/sim.h b/include/sim.h index 23a9bc29..d37e4f16 100644 --- a/include/sim.h +++ b/include/sim.h @@ -129,6 +129,9 @@ typedef void (*ofono_sim_open_channel_cb_t)(const struct ofono_error *error, typedef void (*ofono_sim_close_channel_cb_t)(const struct ofono_error *error, void *data); +typedef void (*ofono_sim_logical_access_cb_t)(const struct ofono_error *error, + const unsigned char *resp, unsigned int len, void *data); + struct ofono_sim_driver { const char *name; int (*probe)(struct ofono_sim *sim, unsigned int vendor, void *data); @@ -199,6 +202,9 @@ struct ofono_sim_driver { int fileid, const unsigned char *path, unsigned int path_len, ofono_sim_file_info_cb_t cb, void *data); + void (*logical_access)(struct ofono_sim *sim, int session_id, + const unsigned char *pdu, unsigned int len, + ofono_sim_logical_access_cb_t cb, void *data); }; int ofono_sim_driver_register(const struct ofono_sim_driver *d); @@ -278,6 +284,10 @@ unsigned int ofono_sim_add_file_watch(struct ofono_sim_context *context, void ofono_sim_remove_file_watch(struct ofono_sim_context *context, unsigned int id); +int ofono_sim_logical_access(struct ofono_sim *sim, int session_id, + unsigned char *pdu, unsigned int len, + ofono_sim_logical_access_cb_t cb, void *data); + #ifdef __cplusplus } #endif