scd: Add INTERRUPT endp support to CCID driver.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 26 Jan 2017 07:54:40 +0000 (16:54 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 26 Jan 2017 07:54:40 +0000 (16:54 +0900)
commitbb5ceb78c333129a44c0144f2cf49b17ede898f1
treed044d6a5430053eec0464606de085f4d1763873a
parent3f4f20ee6eff052c88647b820d9ecfdbd8df0f40
scd: Add INTERRUPT endp support to CCID driver.

* scd/app.c (scd_update_reader_status_file): Fix releas of APP.
* scd/ccid-driver.c (struct ccid_driver_s): Add INTR_BUF.
(intr_cb, ccid_setup_intr): New.
(ccid_open_usb_reader): Call ccid_setup_intr.
(ccid_slot_status): Return CCID_DRIVER_ERR_NO_READER when removed.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/app.c
scd/ccid-driver.c