From d4489be467e7229e17fb17a0489bf711d6ce66d6 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 5 Sep 2018 16:57:30 +0200 Subject: common: New function status_printf. * common/asshelp2.c (set_assuan_context_func): New. (status_printf): New. * po/Makevars (XGETTEXT_OPTIONS): Add status_printf -- This is a first patch to unify the status printing functions. Signed-off-by: Werner Koch --- common/asshelp.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/asshelp.h') diff --git a/common/asshelp.h b/common/asshelp.h index bf1bd1705..c2c87e3c4 100644 --- a/common/asshelp.h +++ b/common/asshelp.h @@ -82,8 +82,14 @@ gpg_error_t get_assuan_server_version (assuan_context_t ctx, /*-- asshelp2.c --*/ +void set_assuan_context_func (assuan_context_t (*func)(ctrl_t ctrl)); + /* Helper function to print an assuan status line using a printf format string. */ + +gpg_error_t status_printf (ctrl_t ctrl, int no, const char *format, + ...) GPGRT_ATTR_PRINTF(3,4); + gpg_error_t print_assuan_status (assuan_context_t ctx, const char *keyword, const char *format, -- cgit v1.2.3