diff options
author | Werner Koch <wk@gnupg.org> | 2012-02-06 20:52:27 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2012-02-06 20:57:21 +0100 |
commit | 1a0df8506050448f16c63666850e3ae6d94a971b (patch) | |
tree | 3145413b6757e38a6236bd25e20a10b2cc6f33b3 /common/asshelp.h | |
parent | common: Add a global variable to for the default error source. (diff) | |
download | gnupg2-1a0df8506050448f16c63666850e3ae6d94a971b.tar.xz gnupg2-1a0df8506050448f16c63666850e3ae6d94a971b.zip |
common: Add function print_assuan_status.
* common/asshelp2.c: New.
(print_assuan_status): New function.
* common/Makefile.am (common_sources): Add asshelp2.c.
Diffstat (limited to 'common/asshelp.h')
-rw-r--r-- | common/asshelp.h | 11 |
1 files changed, 11 insertions, 0 deletions
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*/ |