summaryrefslogtreecommitdiffstats
path: root/include/osmocom/sim
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-09-19 20:55:54 +0200
committerHarald Welte <laforge@gnumonks.org>2014-10-26 19:09:23 +0100
commit7674960ffadd5d7cb1a58ecee77252fe19e1e86f (patch)
tree3f18d49d9cc6643a7cfb0547039ea10c4ff1918e /include/osmocom/sim
parent43eabeeeaa993b6628e0490fbf6b78f24cee4788 (diff)
sim: add decoding of status words
Diffstat (limited to 'include/osmocom/sim')
-rw-r--r--include/osmocom/sim/sim.h10
1 files changed, 8 insertions, 2 deletions
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];