aboutsummaryrefslogtreecommitdiffstats
path: root/scd/scdaemon.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2021-10-29 01:48:01 +0000
committerNIIBE Yutaka <[email protected]>2021-10-29 01:58:26 +0000
commit48e824b6ea69d21ccbc50aac125d8b442af66727 (patch)
treec59853c839326fb2b771378cf55bdb7354669660 /scd/scdaemon.h
parentcommon: Support MYPROC_SELF_EXE for Solaris (diff)
downloadgnupg-48e824b6ea69d21ccbc50aac125d8b442af66727.tar.gz
gnupg-48e824b6ea69d21ccbc50aac125d8b442af66727.zip
scd: Modify DEVINFO behavior to support looping forever.
* scd/app.c (struct mrsw_lock): Add notify_cond member. (notify_cond): Remove. (card_list_r_lock, card_list_r_unlock): Rename. (card_list_w_lock, card_list_w_unlock): Rename. (card_list_signal, card_list_wait): New, fixing thinko about notify/wakeup with MRSW lock. (app_send_devinfo): Support looping. (select_application): Notify app_send_devinfo thread for newly detected device. (initialize_module_command): Initialize notify_cond member. (app_wait): Remove. * scd/command.c (cmd_devinfo): Use new API of app_send_devinfo. * scd/scdaemon.h (app_wait): Remove. -- GnuPG-bug-id: 5359 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'scd/scdaemon.h')
-rw-r--r--scd/scdaemon.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/scd/scdaemon.h b/scd/scdaemon.h
index 9ff72c12e..096a4b9e2 100644
--- a/scd/scdaemon.h
+++ b/scd/scdaemon.h
@@ -155,7 +155,6 @@ int get_active_connection_count (void);
/*-- app.c --*/
int scd_update_reader_status_file (void);
-void app_wait (void);
-gpg_error_t app_send_devinfo (ctrl_t ctrl);
+gpg_error_t app_send_devinfo (ctrl_t ctrl, int keep_looping);
#endif /*SCDAEMON_H*/