mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
23738c9530
commit
d4489be467
3 changed files with 44 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue