diff options
author | NIIBE Yutaka <[email protected]> | 2017-01-26 13:02:41 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2017-01-26 13:02:41 +0000 |
commit | 881dcdfd84ebad36bff20c895e629025bed9d94e (patch) | |
tree | 09cd09205463d53951090ea06a943172770c4c00 /scd/ccid-driver.h | |
parent | scd: Fix APP reference counting. (diff) | |
download | gnupg-881dcdfd84ebad36bff20c895e629025bed9d94e.tar.gz gnupg-881dcdfd84ebad36bff20c895e629025bed9d94e.zip |
scd: Only submit apdu_get_status when needed.
* scd/apdu.c (apdu_dev_list_finish): Return Boolean value if
all device support INTERRUPT transfer.
* scd/ccid-driver.c (ccid_dev_scan_finish): Likewise.
* scd/app.c (app_new_register): Fix initial value of card_status.
(select_application): Call update_fdset_for_usb.
(scd_update_reader_status_file): Ditto.
* scd/scdaemon.c (update_fdset_for_usb, need_tick): New.
(handle_connections): Call handle_tick when select returns.
Let select watch USB file descriptors, too.
Call libusb_handle_events_timeout_completed for INTERRUPT transfer.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'scd/ccid-driver.h')
-rw-r--r-- | scd/ccid-driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/ccid-driver.h b/scd/ccid-driver.h index 9e71f5eb1..8e9f9e251 100644 --- a/scd/ccid-driver.h +++ b/scd/ccid-driver.h @@ -115,7 +115,7 @@ int ccid_set_debug_level (int level); char *ccid_get_reader_list (void); gpg_error_t ccid_dev_scan (int *idx_max, struct ccid_dev_table **t_p); -void ccid_dev_scan_finish (struct ccid_dev_table *tbl, int max); +int ccid_dev_scan_finish (struct ccid_dev_table *tbl, int max); unsigned int ccid_get_BAI (int, struct ccid_dev_table *tbl); int ccid_compare_BAI (ccid_driver_t handle, unsigned int); int ccid_open_reader (const char *spec_reader_name, |