diff options
author | Werner Koch <[email protected]> | 2019-01-22 08:02:17 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-01-22 08:02:17 +0000 |
commit | 03cf23b43ec5fea8a355d3ba2200e86a8efc589b (patch) | |
tree | e3d75a006782a881ffc0e737718213f80d1b96c6 /common/status.h | |
parent | scd: Support CHV-STATUS and CHECKPIN for PIV. (diff) | |
download | gnupg-03cf23b43ec5fea8a355d3ba2200e86a8efc589b.tar.gz gnupg-03cf23b43ec5fea8a355d3ba2200e86a8efc589b.zip |
common: Add generic status print function.
* common/status.c (gnupg_set_status_fd): New.
(gnupg_status_printf): New.
* po/Makevars (XGETTEXT_OPTIONS): Add gnupg-status_printf.
--
Some of the extra tools take a --status-fd option to print certain
status messages. A generic printf style print function thus makes
sense.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/status.h')
-rw-r--r-- | common/status.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/status.h b/common/status.h index dc62f3629..aeab54202 100644 --- a/common/status.h +++ b/common/status.h @@ -163,6 +163,10 @@ enum const char *get_status_string (int code); +void gnupg_set_status_fd (int fd); +void gnupg_status_printf (int no, const char *format, + ...) GPGRT_ATTR_PRINTF(2,3); + const char *get_inv_recpsgnr_code (gpg_error_t err); |