[libvirt PATCH 4/4] virclosecallbacks: move to src/hypervisor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just like virhostdev, this depends on domain_conf and
it's shared by multiple hypervisor drivers.

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 build-aux/syntax-check.mk                    |  3 ---
 po/POTFILES.in                               |  2 +-
 src/bhyve/Makefile.inc.am                    |  1 +
 src/hypervisor/Makefile.inc.am               |  2 ++
 src/{util => hypervisor}/virclosecallbacks.c |  0
 src/{util => hypervisor}/virclosecallbacks.h |  0
 src/libvirt_private.syms                     | 17 +++++++++--------
 src/util/Makefile.inc.am                     |  2 --
 8 files changed, 13 insertions(+), 14 deletions(-)
 rename src/{util => hypervisor}/virclosecallbacks.c (100%)
 rename src/{util => hypervisor}/virclosecallbacks.h (100%)

diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk
index 7d521c1295..b829c8a18b 100644
--- a/build-aux/syntax-check.mk
+++ b/build-aux/syntax-check.mk
@@ -2118,9 +2118,6 @@ exclude_file_name_regexp--sc_prohibit_pthread_create = \
 exclude_file_name_regexp--sc_prohibit_readdir = \
   ^(tests/(.*mock|virfilewrapper)\.c|tools/nss/libvirt_nss\.c)$$
 
-exclude_file_name_regexp--sc_prohibit_cross_inclusion = \
-  ^(src/util/virclosecallbacks\.h)$$
-
 exclude_file_name_regexp--sc_prohibit_dirent_d_type = \
   ^(src/util/vircgroup.c)$
 
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 975de75037..fe361204bb 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -80,6 +80,7 @@
 @SRCDIR@/src/hyperv/hyperv_wmi.c
 @SRCDIR@/src/hypervisor/domain_cgroup.c
 @SRCDIR@/src/hypervisor/domain_driver.c
+@SRCDIR@/src/hypervisor/virclosecallbacks.c
 @SRCDIR@/src/hypervisor/virhostdev.c
 @SRCDIR@/src/interface/interface_backend_netcf.c
 @SRCDIR@/src/interface/interface_backend_udev.c
@@ -232,7 +233,6 @@
 @SRCDIR@/src/util/vircgroupv1.c
 @SRCDIR@/src/util/vircgroupv2.c
 @SRCDIR@/src/util/vircgroupv2devices.c
-@SRCDIR@/src/util/virclosecallbacks.c
 @SRCDIR@/src/util/vircommand.c
 @SRCDIR@/src/util/virconf.c
 @SRCDIR@/src/util/vircrypto.c
diff --git a/src/bhyve/Makefile.inc.am b/src/bhyve/Makefile.inc.am
index 6be2437f23..2536d12ab3 100644
--- a/src/bhyve/Makefile.inc.am
+++ b/src/bhyve/Makefile.inc.am
@@ -43,6 +43,7 @@ libvirt_driver_bhyve_impl_la_CFLAGS = \
 	-I$(srcdir)/access \
 	-I$(builddir)/access \
 	-I$(srcdir)/conf \
+	-I$(srcdir)/hypervisor \
 	$(AM_CFLAGS) \
 	$(NULL)
 libvirt_driver_bhyve_impl_la_LDFLAGS = $(AM_LDFLAGS)
diff --git a/src/hypervisor/Makefile.inc.am b/src/hypervisor/Makefile.inc.am
index 3bd775a4a5..bc48ab1266 100644
--- a/src/hypervisor/Makefile.inc.am
+++ b/src/hypervisor/Makefile.inc.am
@@ -5,6 +5,8 @@ HYPERVISOR_SOURCES = \
 	hypervisor/domain_cgroup.c \
 	hypervisor/domain_driver.h \
 	hypervisor/domain_driver.c \
+	hypervisor/virclosecallbacks.h \
+	hypervisor/virclosecallbacks.c \
 	hypervisor/virhostdev.h \
 	hypervisor/virhostdev.c \
 	$(NULL)
diff --git a/src/util/virclosecallbacks.c b/src/hypervisor/virclosecallbacks.c
similarity index 100%
rename from src/util/virclosecallbacks.c
rename to src/hypervisor/virclosecallbacks.c
diff --git a/src/util/virclosecallbacks.h b/src/hypervisor/virclosecallbacks.h
similarity index 100%
rename from src/util/virclosecallbacks.h
rename to src/hypervisor/virclosecallbacks.h
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 85b1eca72f..3b7c0d8043 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -1406,6 +1406,15 @@ virDomainDriverParseBlkioDeviceStr;
 virDomainDriverSetupPersistentDefBlkioParams;
 
 
+# hypervisor/virclosecallbacks.h
+virCloseCallbacksGet;
+virCloseCallbacksGetConn;
+virCloseCallbacksNew;
+virCloseCallbacksRun;
+virCloseCallbacksSet;
+virCloseCallbacksUnset;
+
+
 # hypervisor/virhostdev.h
 virHostdevFindUSBDevice;
 virHostdevManagerGetDefault;
@@ -1798,14 +1807,6 @@ virCgroupV2DevicesGetPerms;
 virCgroupV2DevicesPrepareProg;
 virCgroupV2DevicesRemoveProg;
 
-# util/virclosecallbacks.h
-virCloseCallbacksGet;
-virCloseCallbacksGetConn;
-virCloseCallbacksNew;
-virCloseCallbacksRun;
-virCloseCallbacksSet;
-virCloseCallbacksUnset;
-
 # util/vircommand.h
 virCommandAbort;
 virCommandAddArg;
diff --git a/src/util/Makefile.inc.am b/src/util/Makefile.inc.am
index a340fdeffb..ddb3b43c5f 100644
--- a/src/util/Makefile.inc.am
+++ b/src/util/Makefile.inc.am
@@ -35,8 +35,6 @@ UTIL_SOURCES = \
 	util/vircgroupv2.h \
 	util/vircgroupv2devices.c \
 	util/vircgroupv2devices.h \
-	util/virclosecallbacks.c \
-	util/virclosecallbacks.h \
 	util/vircommand.c \
 	util/vircommand.h \
 	util/vircommandpriv.h \
-- 
2.24.1





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux