Home GnuPG

core: New function gpgrt_add_post_log_func.

Description

core: New function gpgrt_add_post_log_func.

* src/gpg-error.h.in (gpgrt_add_post_log_func): New.
* src/gpg-error.vers: Add new function
* src/gpg-error.def.in: Ditto.
* src/visibility.c (gpgrt_add_post_log_func): New.
* src/logging.c (struct post_log_func_item_s): New.
(post_log_func_list): New.
(_gpgrt_add_post_log_func): new.
(run_post_log_funcs): New.
(_gpgrt_logv_internal): Call for fatal and bug log levels.

This is required in case an application or library needs to do do some
quick cleanups after a log_fatal.

Details

Provenance
wernerAuthored on Apr 22 2024, 2:47 PM
Parents
rE6ab3e9ac43ba: logging: Indent continuation lines of log_printhex.
Branches
Unknown
Tags
Unknown