[PATCHv2 3/3] Passing virDaemonLogConfig to DaemonSetupLogging

2020-03-08 Thread Lan
Passing virDaemonLogConfig to the shared function DaemonSetupLogging instead of passing *DaemonConfig to *SetupLogging functions Signed-off-by: Lan Bai --- src/libvirt_private.syms | 2 ++ src/locking/lock_daemon.c | 12 ++-- src/logging/log_daemon.c | 14 -- src/remote

[PATCHv2 1/3] Share Dup Daemon Function *SetupLogging

2020-03-08 Thread Lan
One of the BiteSizedTasks Introduce src/util/virdaemon.c/h files Introduce a new function virDaemonSetupLogging (src/util/virdaemon.c) for shared code in virLockDaemonSetupLogging (src/locking/lock_daemon.c) virLogDaemonSetupLogging (src/logging/log_daemon.c) daemonSetupLogging (src/remote/remote

[PATCHv2 2/3] Alloc and Free virDaemonLogConfig

2020-03-08 Thread Lan
Introduce New functions virDaemonLogConfigNew/virDaemonLogConfigFree for alloc and free virDaemonLogConfig Signed-off-by: Lan Bai --- src/util/Makefile.inc.am | 2 +- src/util/virdaemon.c | 26 ++ src/util/virdaemon.h | 11 +++ 3 files changed, 38 inserti

[PATCHv2 0/3] Share duplicated daemon code in *SetupLogging functions

2020-03-08 Thread Lan
This patch is part of the bite sized task, Share duplicated daemon code. A new function is introduced for shared code in *SetupLogging functions. Commit 1: Share Dup Daemon Function *SetupLogging Introduce src/util/virdaemon.c/h files. Introduce new function virDaemonSetupLogging for shared code