From c28f4cdd6d4d9155e431775baf5e897f0a388ad3 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 11 Mar 2016 09:35:07 +0700 Subject: 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. --- include/osmocom/sim/sim.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/osmocom/sim') 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 { -- cgit v1.2.3