diff options
author | Harald Welte <laforge@gnumonks.org> | 2014-05-04 16:31:24 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2014-10-26 19:09:24 +0100 |
commit | aad7e0664b310ccc463538a18ac5238cb7c0ac3c (patch) | |
tree | 74e49f4724bc68e6d034ca7de30ab4e85694f20e /include | |
parent | 30115dbd72e121b6b5c29a8224419cc554024b95 (diff) |
sim: Make TETRA SIM (TSIM) support compile
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/sim/sim.h | 9 |
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); |