summaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-03-11 09:35:07 +0700
committerHarald Welte <laforge@gnumonks.org>2016-03-11 22:05:25 +0700
commitc28f4cdd6d4d9155e431775baf5e897f0a388ad3 (patch)
tree30a2b49019b0539dee02a02fd468082880ca6a31 /include/osmocom
parent1cc66f093f2ecd85b3dfb9ba411c45102cc1ac65 (diff)
sim: Add osim_file_find_{fid,sfid}() functions
We don't always want to look-up by name, but the latter is the only implemented 'find' function so far. Let's change that.
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/sim/sim.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocom/sim/sim.h b/include/osmocom/sim/sim.h
index bb4b7d8e..e818a657 100644
--- a/include/osmocom/sim/sim.h
+++ b/include/osmocom/sim/sim.h
@@ -242,6 +242,12 @@ struct osim_file {
struct osim_file_desc *
osim_file_find_name(struct osim_file_desc *parent, const char *name);
+struct osim_file_desc *
+osim_file_find_fid(struct osim_file_desc *parent, uint16_t fid);
+
+struct osim_file_desc *
+osim_file_find_sfid(struct osim_file_desc *parent, uint8_t sfid);
+
/* STATUS WORDS */
enum osim_card_sw_type {