mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <gniibe@fsij.org>
This commit is contained in:
parent
9b06633c81
commit
881dcdfd84
7 changed files with 145 additions and 42 deletions
|
@ -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*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue