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
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
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
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