From 7674960ffadd5d7cb1a58ecee77252fe19e1e86f Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 19 Sep 2012 20:55:54 +0200 Subject: sim: add decoding of status words --- include/osmocom/sim/sim.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include/osmocom/sim') diff --git a/include/osmocom/sim/sim.h b/include/osmocom/sim/sim.h index 6ead7ffb..1b136938 100644 --- a/include/osmocom/sim/sim.h +++ b/include/osmocom/sim/sim.h @@ -218,7 +218,7 @@ struct osim_card_sw { } u; }; -#define OSIM_CARD_SW_LAST { \ +#define OSIM_CARD_SW_LAST (const struct osim_card_sw) { \ .code = 0, .mask = 0, .type = SW_TYPE_NONE, \ .class = SW_CLS_NONE, .u.str = NULL \ } @@ -226,9 +226,15 @@ struct osim_card_sw { struct osim_card_profile { const char *name; struct osim_file_desc *mf; - struct osim_card_sw **sws; + const struct osim_card_sw **sws; }; +const struct osim_card_sw *osim_find_sw(const struct osim_card_profile *cp, + uint16_t sw); + +struct osim_card_hdl; +char *osim_print_sw(const struct osim_card_hdl *ch, uint16_t sw_in); + extern const struct tlv_definition ts102221_fcp_tlv_def; const struct value_string ts102221_fcp_vals[14]; -- cgit v1.2.3