diff options
author | Werner Koch <wk@gnupg.org> | 2016-08-29 11:45:47 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-08-29 11:51:00 +0200 |
commit | 2aa0701013f703ad93e17da3345c493c08aa04ee (patch) | |
tree | 42e9b6da0d5cc00e5d3c2a9ec6c34a8f4d5659de /common/logging.h | |
parent | gpg: Make decryption of -R work w/o --try-secret-key or --default-key. (diff) | |
download | gnupg2-2aa0701013f703ad93e17da3345c493c08aa04ee.tar.xz gnupg2-2aa0701013f703ad93e17da3345c493c08aa04ee.zip |
common: Add a default socket name feature.
* common/logging.c (log_set_socket_dir_cb): New.
(socket_dir_cb): New.
(set_file_fd): Allow "socket://".
(fun_writer): Implement default socket name.
* common/init.c (_init_common_subsystems): Register default socket.
--
This change allows the use of
log-file socket://
in any configuration file.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'common/logging.h')
-rw-r--r-- | common/logging.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/logging.h b/common/logging.h index 2f0b504a6..165a573ba 100644 --- a/common/logging.h +++ b/common/logging.h @@ -42,6 +42,7 @@ int log_get_errorcount (int clear); void log_inc_errorcount (void); void log_set_file( const char *name ); void log_set_fd (int fd); +void log_set_socket_dir_cb (const char *(*fnc)(void)); void log_set_pid_suffix_cb (int (*cb)(unsigned long *r_value)); void log_set_prefix (const char *text, unsigned int flags); const char *log_get_prefix (unsigned int *flags); |