blob: a96a9cd215c9a7fa15c6b23053e095e5f7ff4880 [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
Harald Welte30115db2014-05-04 16:30:46 +020015int default_decode(struct osim_decoded_data *dd,
16 const struct osim_file_desc *desc,
17 int len, uint8_t *data);
Harald Welted54c2ee2012-01-17 18:25:50 +010018
19void add_filedesc(struct osim_file_desc *root, const struct osim_file_desc *in, int num);
20struct osim_file_desc *alloc_df(void *ctx, uint16_t fid, const char *name);
21struct osim_file_desc *
22add_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
26struct osim_file_desc *
Harald Welte429adec2020-03-20 13:05:40 +010027alloc_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 Welted54c2ee2012-01-17 18:25:50 +010029
Holger Hans Peter Freytherc2b44582015-04-11 19:31:03 +020030extern const struct osim_reader_ops pcsc_reader_ops;
Harald Welted54c2ee2012-01-17 18:25:50 +010031
Harald Welte429adec2020-03-20 13:05:40 +010032void osim_app_profile_register(struct osim_card_app_profile *aprof);
33
34struct osim_card_app_profile *osim_aprof_usim(void *ctx);
35struct osim_card_app_profile *osim_aprof_isim(void *ctx);
Harald Welte2954aa92020-03-21 14:16:10 +010036struct osim_card_app_profile *osim_aprof_hpsim(void *ctx);
Harald Welte429adec2020-03-20 13:05:40 +010037
Harald Welted54c2ee2012-01-17 18:25:50 +010038#endif