blob: 885011edab3b950964c61eadab4b956cd6323e0f [file] [log] [blame]
Neels Hofmeyr17518fe2017-06-20 04:35:06 +02001/*! \file sim_int.h */
2
Harald Welted54c2ee2012-01-17 18:25:50 +01003#ifndef _SIM_INT_H
4
5#include <osmocom/sim/sim.h>
6
7struct osim_decoded_element *
8element_alloc(struct osim_decoded_data *dd, const char *name,
9 enum osim_element_type type, enum osim_element_repr repr);
10
11struct osim_decoded_element *
12element_alloc_sub(struct osim_decoded_element *ee, const char *name,
13 enum osim_element_type type, enum osim_element_repr repr);
14
15extern const struct osim_card_sw ts102221_uicc_sw[0];
16
Harald Welte30115db2014-05-04 16:30:46 +020017int default_decode(struct osim_decoded_data *dd,
18 const struct osim_file_desc *desc,
19 int len, uint8_t *data);
Harald Welted54c2ee2012-01-17 18:25:50 +010020
21void add_filedesc(struct osim_file_desc *root, const struct osim_file_desc *in, int num);
22struct osim_file_desc *alloc_df(void *ctx, uint16_t fid, const char *name);
23struct osim_file_desc *
24add_df_with_ef(struct osim_file_desc *parent,
25 uint16_t fid, const char *name,
26 const struct osim_file_desc *in, int num);
27
28struct osim_file_desc *
29add_adf_with_ef(struct osim_file_desc *parent,
30 const uint8_t *adf_name, uint8_t adf_name_len,
31 const char *name, const struct osim_file_desc *in,
32 int num);
33
Holger Hans Peter Freytherc2b44582015-04-11 19:31:03 +020034extern const struct osim_reader_ops pcsc_reader_ops;
Harald Welted54c2ee2012-01-17 18:25:50 +010035
36#endif