mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
0a4a03e531
commit
0ac671f8a2
10 changed files with 27 additions and 12 deletions
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue