sim: Added set function for CardSlotCount and ActiveCardSlot

Adding set function definition for CardSlotCount and ActiveCardSlot
properties.
This commit is contained in:
Antara Borwankar 2019-03-28 17:35:21 +05:30 committed by Denis Kenzior
parent f143f1f838
commit a7a2d09d10
1 changed files with 9 additions and 0 deletions

View File

@ -132,6 +132,10 @@ typedef void (*ofono_sim_close_channel_cb_t)(const struct ofono_error *error,
typedef void (*ofono_sim_logical_access_cb_t)(const struct ofono_error *error,
const unsigned char *resp, unsigned int len, void *data);
typedef void (*ofono_sim_set_active_card_slot_cb_t)(
const struct ofono_error *error,
void *data);
struct ofono_sim_driver {
const char *name;
int (*probe)(struct ofono_sim *sim, unsigned int vendor, void *data);
@ -205,6 +209,8 @@ struct ofono_sim_driver {
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);
void (*set_active_card_slot)(struct ofono_sim *sim, unsigned int index,
ofono_sim_set_active_card_slot_cb_t cb, void *data);
};
int ofono_sim_driver_register(const struct ofono_sim_driver *d);
@ -219,6 +225,9 @@ void ofono_sim_remove(struct ofono_sim *sim);
void ofono_sim_set_data(struct ofono_sim *sim, void *data);
void *ofono_sim_get_data(struct ofono_sim *sim);
void ofono_sim_set_card_slot_count(struct ofono_sim *sim, unsigned int val);
void ofono_sim_set_active_card_slot(struct ofono_sim *sim,
unsigned int val);
const char *ofono_sim_get_imsi(struct ofono_sim *sim);
const char *ofono_sim_get_mcc(struct ofono_sim *sim);