ccid_main_functionfs: Fix full chain of IN/OUT EP
which is already sufficient to make pcsc_scan happy and list all
eight cards/slots like
Reader 1: sysmoOCTSIM Test Reader [Osmocom CCID Interface] (2342) 01 00
Event number: 0
Card state: Card removed,
Change-Id: I37bd952ef0add662d565150f70e83d85ffd0c254
diff --git a/ccid/ccid_device.h b/ccid/ccid_device.h
index c7cef47..4cdb325 100644
--- a/ccid/ccid_device.h
+++ b/ccid/ccid_device.h
@@ -63,8 +63,12 @@
/* slots within the reader */
struct ccid_slot slot[NR_SLOTS];
/* set of function pointers implementing specific operations */
- const struct ccid_ops ops;
+ const struct ccid_ops *ops;
const char *name;
+ /* user-supplied opaque data */
+ void *priv;
};
+void ccid_instance_init(struct ccid_instance *ci, const struct ccid_ops *ops, const char *name,
+ void *priv);
int ccid_handle_out(struct ccid_instance *ci, struct msgb *msg);