* ccid-driver.c (struct ccid_driver_s): Add fields last_progress,
authorWerner Koch <wk@gnupg.org>
Mon, 13 Jul 2009 09:59:22 +0000 (09:59 +0000)
committerWerner Koch <wk@gnupg.org>
Mon, 13 Jul 2009 09:59:22 +0000 (09:59 +0000)
commitd0d4931e00ef1ff55c247ef85cc79ae005767b9d
tree2b885f646b77cde42334f5b9d008ed04fdadefb5
parent806b0acad75de522fcc0f0ed69916dff12876c28
* ccid-driver.c (struct ccid_driver_s): Add fields last_progress,

progress_cb and progress_cb_arg.
(ccid_set_progress_cb): New.
(print_progress): New.
(ccid_transceive): Call print_progress for wait time extensions.
* apdu.c (struct reader_table_s): Add field set_progress_cb.
(new_reader_slot): Clear that field.
(open_ccid_reader): Set it to ..
(set_progress_cb_ccid_reader): ... new fucntion.
* app.c (print_progress_line): New.
(lock_reader): Add arg CTRL to set a progress callback and
change all callers to provide it.
(unlock_reader): Remove the progress callback.
scd/ChangeLog
scd/apdu.c
scd/app.c
scd/ccid-driver.c