bind9/bin
Ondřej Surý b2dda86254 Replace isc_log_create/destroy with isc_logconfig_get()
Add isc_logconfig_get() function to get the current logconfig and use
the getter to replace most of the little dancing around setting up
logging in the tools. Thus:

    isc_log_create(mctx, &lctx, &logconfig);
    isc_log_setcontext(lctx);
    dns_log_setcontext(lctx);
    ...
    ...use lcfg...
    ...
    isc_log_destroy();

is now only:

    logconfig = isc_logconfig_get(lctx);
    ...use lcfg...

For thread-safety, isc_logconfig_get() should be surrounded by RCU read
lock, but since we never use isc_logconfig_get() in threaded context,
the only place where it is actually used (but not really needed) is
named_log_init().
2024-08-20 12:50:39 +00:00
..
check Replace isc_log_create/destroy with isc_logconfig_get() 2024-08-20 12:50:39 +00:00
confgen use only c23 or c11 noreturn specifiers 2024-08-07 18:27:40 +03:00
delv Replace isc_log_create/destroy with isc_logconfig_get() 2024-08-20 12:50:39 +00:00
dig Replace isc_log_create/destroy with isc_logconfig_get() 2024-08-20 12:50:39 +00:00
dnssec Replace isc_log_create/destroy with isc_logconfig_get() 2024-08-20 12:50:39 +00:00
named Replace isc_log_create/destroy with isc_logconfig_get() 2024-08-20 12:50:39 +00:00
nsupdate Replace isc_log_create/destroy with isc_logconfig_get() 2024-08-20 12:50:39 +00:00
plugins Remove 'inst != NULL' from cleanup check in plugin_register 2023-04-04 23:51:22 +00:00
rndc Replace isc_log_create/destroy with isc_logconfig_get() 2024-08-20 12:50:39 +00:00
tests Replace isc_log_create/destroy with isc_logconfig_get() 2024-08-20 12:50:39 +00:00
tools Replace isc_log_create/destroy with isc_logconfig_get() 2024-08-20 12:50:39 +00:00
Makefile.am Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00