aboutsummaryrefslogtreecommitdiffstats
path: root/scd/scdaemon.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2017-01-26 13:02:41 +0000
committerNIIBE Yutaka <[email protected]>2017-01-26 13:02:41 +0000
commit881dcdfd84ebad36bff20c895e629025bed9d94e (patch)
tree09cd09205463d53951090ea06a943172770c4c00 /scd/scdaemon.h
parentscd: Fix APP reference counting. (diff)
downloadgnupg-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/scdaemon.h')
-rw-r--r--scd/scdaemon.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/scd/scdaemon.h b/scd/scdaemon.h
index d0bc98efe..9d92ff2c3 100644
--- a/scd/scdaemon.h
+++ b/scd/scdaemon.h
@@ -125,6 +125,7 @@ void send_status_info (ctrl_t ctrl, const char *keyword, ...)
void send_status_direct (ctrl_t ctrl, const char *keyword, const char *args);
void scd_update_reader_status_file (void);
void send_client_notifications (app_t app, int removal);
+void update_fdset_for_usb (int scanned, int all_have_intr_endp);
#endif /*SCDAEMON_H*/