diff options
author | Werner Koch <[email protected]> | 2018-09-05 14:57:30 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-09-05 14:57:30 +0000 |
commit | d4489be467e7229e17fb17a0489bf711d6ce66d6 (patch) | |
tree | 17ed779fc756f6d93b19dc5cbb7e02b5a7de3739 /common/asshelp.h | |
parent | artwork: State license of the logo (diff) | |
download | gnupg-d4489be467e7229e17fb17a0489bf711d6ce66d6.tar.gz gnupg-d4489be467e7229e17fb17a0489bf711d6ce66d6.zip |
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 <[email protected]>
Diffstat (limited to 'common/asshelp.h')
-rw-r--r-- | common/asshelp.h | 6 |
1 files changed, 6 insertions, 0 deletions
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, |