Harald Welte | d54c2ee | 2012-01-17 18:25:50 +0100 | [diff] [blame] | 1 | #ifndef _SIM_INT_H |
| 2 | |
| 3 | #include <osmocom/sim/sim.h> |
| 4 | |
| 5 | struct osim_decoded_element * |
| 6 | element_alloc(struct osim_decoded_data *dd, const char *name, |
| 7 | enum osim_element_type type, enum osim_element_repr repr); |
| 8 | |
| 9 | struct osim_decoded_element * |
| 10 | element_alloc_sub(struct osim_decoded_element *ee, const char *name, |
| 11 | enum osim_element_type type, enum osim_element_repr repr); |
| 12 | |
| 13 | extern const struct osim_card_sw ts102221_uicc_sw[0]; |
| 14 | |
| 15 | |
| 16 | void add_filedesc(struct osim_file_desc *root, const struct osim_file_desc *in, int num); |
| 17 | struct osim_file_desc *alloc_df(void *ctx, uint16_t fid, const char *name); |
| 18 | struct osim_file_desc * |
| 19 | add_df_with_ef(struct osim_file_desc *parent, |
| 20 | uint16_t fid, const char *name, |
| 21 | const struct osim_file_desc *in, int num); |
| 22 | |
| 23 | struct osim_file_desc * |
| 24 | add_adf_with_ef(struct osim_file_desc *parent, |
| 25 | const uint8_t *adf_name, uint8_t adf_name_len, |
| 26 | const char *name, const struct osim_file_desc *in, |
| 27 | int num); |
| 28 | |
| 29 | struct osim_reader_ops { |
| 30 | const char *name; |
| 31 | struct osim_reader_hdl *(*reader_open)(int idx, const char *name); |
| 32 | struct osim_card_hdl *(*card_open)(struct osim_reader_hdl *rh); |
| 33 | int (*transceive)(struct osim_reader_hdl *rh, struct msgb *msg); |
| 34 | }; |
| 35 | |
| 36 | const struct osim_reader_ops pcsc_reader_ops; |
| 37 | |
| 38 | #endif |