From 2aa0701013f703ad93e17da3345c493c08aa04ee Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 29 Aug 2016 11:45:47 +0200 Subject: 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 --- common/logging.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common/logging.h') 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); -- cgit v1.2.3