From 1a0df8506050448f16c63666850e3ae6d94a971b Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 6 Feb 2012 20:52:27 +0100 Subject: common: Add function print_assuan_status. * common/asshelp2.c: New. (print_assuan_status): New function. * common/Makefile.am (common_sources): Add asshelp2.c. --- common/asshelp.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'common/asshelp.h') diff --git a/common/asshelp.h b/common/asshelp.h index 728c03949..68be28961 100644 --- a/common/asshelp.h +++ b/common/asshelp.h @@ -25,6 +25,8 @@ #include "session-env.h" +/*-- asshelp.c --*/ + void setup_libassuan_logging (unsigned int *debug_var_address); void set_libassuan_log_cats (unsigned int newcats); @@ -62,5 +64,14 @@ start_new_dirmngr (assuan_context_t *r_ctx, ctrl_t status_cb_arg); +/*-- asshelp2.c --*/ + +/* Helper function to print an assuan status line using a printf + format string. */ +gpg_error_t print_assuan_status (assuan_context_t ctx, + const char *keyword, + const char *format, + ...) JNLIB_GCC_A_PRINTF(3,4); + #endif /*GNUPG_COMMON_ASSHELP_H*/ -- cgit v1.2.3