aboutsummaryrefslogtreecommitdiffstats
path: root/src/visibility.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-04-22 12:47:53 +0000
committerWerner Koch <[email protected]>2024-04-22 12:47:53 +0000
commit319a505623c197d06ca3e76f30691fe65a982d6f (patch)
treeca4dfdb7f76a0a389487dcdcd6e70913c72afe47 /src/visibility.h
parentlogging: Indent continuation lines of log_printhex. (diff)
downloadlibgpg-error-319a505623c197d06ca3e76f30691fe65a982d6f.tar.gz
libgpg-error-319a505623c197d06ca3e76f30691fe65a982d6f.zip
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.
Diffstat (limited to 'src/visibility.h')
-rw-r--r--src/visibility.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/visibility.h b/src/visibility.h
index 75aec0d..8f3bd8c 100644
--- a/src/visibility.h
+++ b/src/visibility.h
@@ -184,6 +184,7 @@ MARK_VISIBLE (gpgrt_log_get_prefix)
MARK_VISIBLE (gpgrt_log_test_fd)
MARK_VISIBLE (gpgrt_log_get_fd)
MARK_VISIBLE (gpgrt_log_get_stream)
+MARK_VISIBLE (gpgrt_add_post_log_func)
MARK_VISIBLE (gpgrt_log)
MARK_VISIBLE (gpgrt_logv)
MARK_VISIBLE (gpgrt_logv_prefix)
@@ -375,6 +376,7 @@ MARK_VISIBLE (gpgrt_absfnameconcat)
#define gpgrt_log_test_fd _gpgrt_USE_UNDERSCORED_FUNCTION
#define gpgrt_log_get_fd _gpgrt_USE_UNDERSCORED_FUNCTION
#define gpgrt_log_get_stream _gpgrt_USE_UNDERSCORED_FUNCTION
+#define gpgrt_add_post_log_func _gpgrt_USE_UNDERSCORED_FUNCTION
#define gpgrt_log _gpgrt_USE_UNDERSCORED_FUNCTION
#define gpgrt_logv _gpgrt_USE_UNDERSCORED_FUNCTION
#define gpgrt_logv_prefix _gpgrt_USE_UNDERSCORED_FUNCTION