mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
dirmngr: New function dirmngr_status_printf.
* dirmngr/server.c (dirmngr_status_printf): New. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
872137b592
commit
9b88cfa096
@ -229,6 +229,9 @@ int dirmngr_assuan_log_monitor (assuan_context_t ctx, unsigned int cat,
|
||||
void start_command_handler (gnupg_fd_t fd);
|
||||
gpg_error_t dirmngr_status (ctrl_t ctrl, const char *keyword, ...);
|
||||
gpg_error_t dirmngr_status_help (ctrl_t ctrl, const char *text);
|
||||
gpg_error_t dirmngr_status_printf (ctrl_t ctrl, const char *keyword,
|
||||
const char *format,
|
||||
...) GPGRT_ATTR_PRINTF(3,4);
|
||||
gpg_error_t dirmngr_tick (ctrl_t ctrl);
|
||||
|
||||
/*-- http-ntbtls.c --*/
|
||||
|
@ -2776,6 +2776,24 @@ dirmngr_status_help (ctrl_t ctrl, const char *text)
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
/* This function is similar to print_assuan_status but takes a CTRL
|
||||
* arg instead of an assuan context as first argument. */
|
||||
gpg_error_t
|
||||
dirmngr_status_printf (ctrl_t ctrl, const char *keyword,
|
||||
const char *format, ...)
|
||||
{
|
||||
gpg_error_t err;
|
||||
va_list arg_ptr;
|
||||
assuan_context_t ctx = ctrl->server_local->assuan_ctx;
|
||||
|
||||
va_start (arg_ptr, format);
|
||||
err = vprint_assuan_status (ctx, keyword, format, arg_ptr);
|
||||
va_end (arg_ptr);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
/* Send a tick progress indicator back. Fixme: This is only done for
|
||||
the currently active channel. */
|
||||
gpg_error_t
|
||||
|
Loading…
x
Reference in New Issue
Block a user