diff options
| author | Werner Koch <[email protected]> | 2024-04-25 10:12:35 +0200 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2024-04-25 10:12:35 +0200 |
| commit | 2f9a0895a103f0baf1c2ea38662112c1359bdb90 (patch) | |
| tree | cdf915e61c0de5c1dc9ed02de793e8c7dcc16d31 /src/visibility.c | |
| parent | core: New function gpgrt_add_post_log_func. (diff) | |
| download | libgpg-error-2f9a0895a103f0baf1c2ea38662112c1359bdb90.tar.gz libgpg-error-2f9a0895a103f0baf1c2ea38662112c1359bdb90.zip | |
logging: New function gpgrt_logv_domain.
* src/gpg-error.h.in (gpgrt_logv_domain): New. Also add printf
attributes to the other logv functions.
* src/visibility.c (gpgrt_logv_domain): New.
--
This function can be used instead of gpgrt_logv to provide a somain
string. As of now this has no effect but we may later add an API to
allow selection of diagnostics depending on the domain. There is also
a new (buffer,length) argument which will eventually be used to
provide a domain based gpgrt_log_printhex.
Diffstat (limited to 'src/visibility.c')
| -rw-r--r-- | src/visibility.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/visibility.c b/src/visibility.c index 8c00168..65385be 100644 --- a/src/visibility.c +++ b/src/visibility.c @@ -993,6 +993,17 @@ gpgrt_logv_prefix (int level, const char *prefix, } void +gpgrt_logv_domain (const char *domain, int level, const char *prefix, + const void *buffer, size_t length, + const char *fmt, va_list arg_ptr) +{ + (void)domain; /* Not yet used. */ + (void)buffer; + (void)length; + _gpgrt_logv_prefix (level, prefix, fmt, arg_ptr); +} + +void gpgrt_log_string (int level, const char *string) { _gpgrt_log_string (level, string); |
