aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/sim/sim.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/osmocom/sim/sim.h b/include/osmocom/sim/sim.h
index 4e63905e..0c6352c5 100644
--- a/include/osmocom/sim/sim.h
+++ b/include/osmocom/sim/sim.h
@@ -134,6 +134,7 @@ enum osim_ef_type {
EF_TYPE_TRANSP,
EF_TYPE_RECORD_FIXED,
EF_TYPE_RECORD_CYCLIC,
+ EF_TYPE_KEY, /* TETRA */
};
#define F_OPTIONAL 0x0001
@@ -209,6 +210,14 @@ struct osim_file {
EF_LIN_FIX(fid, sfi, ns, flags, smin, srec, nl, \
&default_decode, NULL)
+#define EF_KEY(fid, sfi, ns, flags, smin, srec, nl, dec, enc) \
+ EF(fid, sfi, ns, flags, nl, EF_TYPE_KEY, \
+ smin, srec, dec, enc)
+#define EF_KEY_N(fid, sfi, ns, flags, smin, srec, nl) \
+ EF_KEY(fid, sfi, ns, flags, smin, srec, nl, \
+ &default_decode, NULL)
+
+
struct osim_file_desc *
osim_file_find_name(struct osim_file_desc *parent, const char *name);