From 932d2d4ce31b9d2dfb028df2ca683b42fee7ee54 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 19 Mar 2016 21:18:40 +0100 Subject: sim: make osim_reader_ops public --- include/osmocom/sim/sim.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'include/osmocom/sim/sim.h') diff --git a/include/osmocom/sim/sim.h b/include/osmocom/sim/sim.h index d7c42427..ba6fb707 100644 --- a/include/osmocom/sim/sim.h +++ b/include/osmocom/sim/sim.h @@ -324,8 +324,6 @@ struct msgb *osim_new_apdumsg(uint8_t cla, uint8_t ins, uint8_t p1, /* CARD READERS */ -struct osim_reader_ops; - enum osim_proto { OSIM_PROTO_T0 = 0, OSIM_PROTO_T1 = 1, @@ -337,6 +335,13 @@ enum osim_reader_driver { OSIM_READER_DRV_SERIAL = 2, }; +struct osim_reader_ops { + const char *name; + struct osim_reader_hdl *(*reader_open)(int idx, const char *name, void *ctx); + struct osim_card_hdl *(*card_open)(struct osim_reader_hdl *rh, enum osim_proto proto); + int (*transceive)(struct osim_reader_hdl *rh, struct msgb *msg); +}; + struct osim_reader_hdl { /*! \brief member in global list of readers */ struct llist_head list; -- cgit v1.2.3