Neels Hofmeyr | 17518fe | 2017-06-20 04:35:06 +0200 | [diff] [blame] | 1 | /*! \file sim_int.h */ |
| 2 | |
Harald Welte | d54c2ee | 2012-01-17 18:25:50 +0100 | [diff] [blame] | 3 | #ifndef _SIM_INT_H |
| 4 | |
| 5 | #include <osmocom/sim/sim.h> |
| 6 | |
| 7 | struct osim_decoded_element * |
| 8 | element_alloc(struct osim_decoded_data *dd, const char *name, |
| 9 | enum osim_element_type type, enum osim_element_repr repr); |
| 10 | |
| 11 | struct osim_decoded_element * |
| 12 | element_alloc_sub(struct osim_decoded_element *ee, const char *name, |
| 13 | enum osim_element_type type, enum osim_element_repr repr); |
| 14 | |
Harald Welte | 30115db | 2014-05-04 16:30:46 +0200 | [diff] [blame] | 15 | int default_decode(struct osim_decoded_data *dd, |
| 16 | const struct osim_file_desc *desc, |
| 17 | int len, uint8_t *data); |
Harald Welte | d54c2ee | 2012-01-17 18:25:50 +0100 | [diff] [blame] | 18 | |
| 19 | void add_filedesc(struct osim_file_desc *root, const struct osim_file_desc *in, int num); |
| 20 | struct osim_file_desc *alloc_df(void *ctx, uint16_t fid, const char *name); |
| 21 | struct osim_file_desc * |
| 22 | add_df_with_ef(struct osim_file_desc *parent, |
| 23 | uint16_t fid, const char *name, |
| 24 | const struct osim_file_desc *in, int num); |
| 25 | |
| 26 | struct osim_file_desc * |
Harald Welte | 429adec | 2020-03-20 13:05:40 +0100 | [diff] [blame] | 27 | alloc_adf_with_ef(void *ctx, const uint8_t *adf_name, uint8_t adf_name_len, |
| 28 | const char *name, const struct osim_file_desc *in, int num); |
Harald Welte | d54c2ee | 2012-01-17 18:25:50 +0100 | [diff] [blame] | 29 | |
Holger Hans Peter Freyther | c2b4458 | 2015-04-11 19:31:03 +0200 | [diff] [blame] | 30 | extern const struct osim_reader_ops pcsc_reader_ops; |
Harald Welte | d54c2ee | 2012-01-17 18:25:50 +0100 | [diff] [blame] | 31 | |
Harald Welte | 429adec | 2020-03-20 13:05:40 +0100 | [diff] [blame] | 32 | void osim_app_profile_register(struct osim_card_app_profile *aprof); |
| 33 | |
| 34 | struct osim_card_app_profile *osim_aprof_usim(void *ctx); |
| 35 | struct osim_card_app_profile *osim_aprof_isim(void *ctx); |
Harald Welte | 2954aa9 | 2020-03-21 14:16:10 +0100 | [diff] [blame] | 36 | struct osim_card_app_profile *osim_aprof_hpsim(void *ctx); |
Harald Welte | 429adec | 2020-03-20 13:05:40 +0100 | [diff] [blame] | 37 | |
Harald Welte | d54c2ee | 2012-01-17 18:25:50 +0100 | [diff] [blame] | 38 | #endif |