aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-05-03 14:23:44 +0200
committerHarald Welte <laforge@gnumonks.org>2014-10-26 19:09:23 +0100
commit2656e65bed12680d288c55dbe53e1d6c92bdfdc5 (patch)
tree3730f3f286223fa7b83b1e364e5417d6eb80c189 /include
parent1e0dfdad69fcb48d8bc134be4ddabc72d5dfc9e3 (diff)
sim: Add sfi to EF_*() macros
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/sim/sim.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/include/osmocom/sim/sim.h b/include/osmocom/sim/sim.h
index 7549df6..e1e9997 100644
--- a/include/osmocom/sim/sim.h
+++ b/include/osmocom/sim/sim.h
@@ -138,6 +138,8 @@ enum osim_ef_type {
#define F_OPTIONAL 0x0001
+#define SFI_NONE 0xFF
+
struct osim_file_desc {
struct llist_head list; /*!< local element in list */
struct llist_head child_list; /*!< list of children EF in DF */
@@ -172,9 +174,10 @@ struct osim_file {
struct osim_decoded_data *decoded_data;
};
-#define EF(pfid, pns, pflags, pnl, ptype, smin, srec, pdec, penc) \
+#define EF(pfid, sfi, pns, pflags, pnl, ptype, smin, srec, pdec, penc) \
{ \
.fid = pfid, \
+ .sfid = sfi, \
.type = TYPE_EF, \
.ef_type = ptype, \
.short_name = pns, \
@@ -185,22 +188,22 @@ struct osim_file {
}
-#define EF_TRANSP(fid, ns, flags, smin, srec, nl, dec, enc) \
- EF(fid, ns, flags, nl, EF_TYPE_TRANSP, \
+#define EF_TRANSP(fid, sfi, ns, flags, smin, srec, nl, dec, enc) \
+ EF(fid, sfi, ns, flags, nl, EF_TYPE_TRANSP, \
smin, srec, dec, enc)
-#define EF_TRANSP_N(fid, ns, flags, smin, srec, nl) \
- EF_TRANSP(fid, ns, flags, smin, srec, \
+#define EF_TRANSP_N(fid, sfi, ns, flags, smin, srec, nl) \
+ EF_TRANSP(fid, sfi, ns, flags, smin, srec, \
nl, &default_decode, NULL)
-#define EF_CYCLIC(fid, ns, flags, smin, srec, nl, dec, enc) \
- EF(fid, ns, flags, nl, EF_TYPE_RECORD_CYCLIC, \
+#define EF_CYCLIC(fid, sfi, ns, flags, smin, srec, nl, dec, enc) \
+ EF(fid, sfi, ns, flags, nl, EF_TYPE_RECORD_CYCLIC, \
smin, srec, dec, enc)
-#define EF_CYCLIC_N(fid, ns, flags, smin, srec, nl) \
- EF_CYCLIC(fid, ns, flags, smin, srec, nl, \
+#define EF_CYCLIC_N(fid, sfi, ns, flags, smin, srec, nl) \
+ EF_CYCLIC(fid, sfi, ns, flags, smin, srec, nl, \
&default_decode, NULL)
-#define EF_LIN_FIX(fid, ns, flags, smin, srec, nl, dec, enc) \
- EF(fid, ns, flags, nl, EF_TYPE_RECORD_FIXED, \
+#define EF_LIN_FIX(fid, sfi, ns, flags, smin, srec, nl, dec, enc) \
+ EF(fid, sfi, ns, flags, nl, EF_TYPE_RECORD_FIXED, \
smin, srec, dec, enc)
#define EF_LIN_FIX_N(fid, sfi, ns, flags, smin, srec, nl) \
EF_LIN_FIX(fid, sfi, ns, flags, smin, srec, nl, \