aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-03-19 21:18:40 +0100
committerHarald Welte <laforge@gnumonks.org>2016-03-19 21:18:40 +0100
commit932d2d4ce31b9d2dfb028df2ca683b42fee7ee54 (patch)
treeaaac9758ccfa727dbe3ae179db1a2eb433e5ade9
parent6c33ae2605b038391a80dd5defb76a5fabb5dd2b (diff)
sim: make osim_reader_ops public
-rw-r--r--include/osmocom/sim/sim.h9
-rw-r--r--src/sim/sim_int.h7
2 files changed, 7 insertions, 9 deletions
diff --git a/include/osmocom/sim/sim.h b/include/osmocom/sim/sim.h
index d7c4242..ba6fb70 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;
diff --git a/src/sim/sim_int.h b/src/sim/sim_int.h
index 7024743..7b07b83 100644
--- a/src/sim/sim_int.h
+++ b/src/sim/sim_int.h
@@ -29,13 +29,6 @@ add_adf_with_ef(struct osim_file_desc *parent,
const char *name, const struct osim_file_desc *in,
int num);
-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);
-};
-
extern const struct osim_reader_ops pcsc_reader_ops;
#endif