diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gpg-error.def.in | 1 | ||||
-rw-r--r-- | src/gpg-error.h.in | 10 | ||||
-rw-r--r-- | src/gpg-error.vers | 1 | ||||
-rw-r--r-- | src/visibility.c | 11 | ||||
-rw-r--r-- | src/visibility.h | 2 |
5 files changed, 22 insertions, 3 deletions
diff --git a/src/gpg-error.def.in b/src/gpg-error.def.in index eab681d..a7525a8 100644 --- a/src/gpg-error.def.in +++ b/src/gpg-error.def.in @@ -248,5 +248,6 @@ EXPORTS gpgrt_wipememory @189 gpgrt_add_post_log_func @190 + gpgrt_logv_domain @191 ;; end of file with public symbols for Windows. diff --git a/src/gpg-error.h.in b/src/gpg-error.h.in index d00bf1b..3eacc1a 100644 --- a/src/gpg-error.h.in +++ b/src/gpg-error.h.in @@ -1010,9 +1010,13 @@ int gpgrt_log_get_fd (void); gpgrt_stream_t gpgrt_log_get_stream (void); void gpgrt_log (int level, const char *fmt, ...) GPGRT_ATTR_PRINTF(2,3); -void gpgrt_logv (int level, const char *fmt, va_list arg_ptr); -void gpgrt_logv_prefix (int level, const char *prefix, - const char *fmt, va_list arg_ptr); +void gpgrt_logv (int level, const char *fmt, + va_list arg_ptr) GPGRT_ATTR_PRINTF(2,0); +void gpgrt_logv_prefix (int level, const char *prefix, const char *fmt, + va_list arg_ptr) GPGRT_ATTR_PRINTF(3,0); +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) GPGRT_ATTR_PRINTF(6,0); void gpgrt_log_string (int level, const char *string); void gpgrt_log_bug (const char *fmt, ...) GPGRT_ATTR_NR_PRINTF(1,2); void gpgrt_log_fatal (const char *fmt, ...) GPGRT_ATTR_NR_PRINTF(1,2); diff --git a/src/gpg-error.vers b/src/gpg-error.vers index b095edf..9287fbf 100644 --- a/src/gpg-error.vers +++ b/src/gpg-error.vers @@ -212,6 +212,7 @@ GPG_ERROR_1.0 { gpgrt_wipememory; gpgrt_add_post_log_func; + gpgrt_logv_domain; local: *; 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); diff --git a/src/visibility.h b/src/visibility.h index 8f3bd8c..e1bf045 100644 --- a/src/visibility.h +++ b/src/visibility.h @@ -188,6 +188,7 @@ MARK_VISIBLE (gpgrt_add_post_log_func) MARK_VISIBLE (gpgrt_log) MARK_VISIBLE (gpgrt_logv) MARK_VISIBLE (gpgrt_logv_prefix) +MARK_VISIBLE (gpgrt_logv_domain) MARK_VISIBLE (gpgrt_log_string) MARK_VISIBLE (gpgrt_log_bug) MARK_VISIBLE (gpgrt_log_fatal) @@ -380,6 +381,7 @@ MARK_VISIBLE (gpgrt_absfnameconcat) #define gpgrt_log _gpgrt_USE_UNDERSCORED_FUNCTION #define gpgrt_logv _gpgrt_USE_UNDERSCORED_FUNCTION #define gpgrt_logv_prefix _gpgrt_USE_UNDERSCORED_FUNCTION +#define gpgrt_logv_domain _gpgrt_USE_UNDERSCORED_FUNCTION #define gpgrt_log_string _gpgrt_USE_UNDERSCORED_FUNCTION #define gpgrt_log_bug _gpgrt_USE_UNDERSCORED_FUNCTION #define gpgrt_log_fatal _gpgrt_USE_UNDERSCORED_FUNCTION |