From aad7e0664b310ccc463538a18ac5238cb7c0ac3c Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 4 May 2014 16:31:24 +0200 Subject: sim: Make TETRA SIM (TSIM) support compile --- include/osmocom/sim/sim.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/osmocom/sim') 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); -- cgit v1.2.3