aboutsummaryrefslogtreecommitdiffstats
path: root/common/asshelp.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-09-05 08:55:10 +0000
committerWerner Koch <[email protected]>2016-09-05 09:58:48 +0000
commit0ac671f8a2b65a4b339f615c6420287a549779fa (patch)
tree97608684b97d7d01da96f6670e2bada91f01f81f /common/asshelp.h
parentgpg: New export filter drop-subkey. (diff)
downloadgnupg-0ac671f8a2b65a4b339f615c6420287a549779fa.tar.gz
gnupg-0ac671f8a2b65a4b339f615c6420287a549779fa.zip
common: Add an assuan logging monitor.
* common/asshelp.c (my_log_monitor): New var. (my_libassuan_log_handler): Run that monitor. (setup_libassuan_logging): Add arg to set a log monitor and change all callers. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/asshelp.h')
-rw-r--r--common/asshelp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/asshelp.h b/common/asshelp.h
index 4eb1d9267..609b203da 100644
--- a/common/asshelp.h
+++ b/common/asshelp.h
@@ -38,7 +38,10 @@
/*-- asshelp.c --*/
-void setup_libassuan_logging (unsigned int *debug_var_address);
+void setup_libassuan_logging (unsigned int *debug_var_address,
+ int (*log_monitor)(assuan_context_t ctx,
+ unsigned int cat,
+ const char *msg));
void set_libassuan_log_cats (unsigned int newcats);