From 03cf23b43ec5fea8a355d3ba2200e86a8efc589b Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 22 Jan 2019 09:02:17 +0100 Subject: 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 --- common/status.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/status.h') 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); -- cgit v1.2.3