[PATCH 1/2] conf: move VIR_DOMAIN_USB_HUB_PORTS to the header file

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

 



For reusing in qemu_domain_address.c.
---
 src/conf/domain_addr.c | 2 --
 src/conf/domain_addr.h | 2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/conf/domain_addr.c b/src/conf/domain_addr.c
index 555da59..e0adea9 100644
--- a/src/conf/domain_addr.c
+++ b/src/conf/domain_addr.c
@@ -1825,8 +1825,6 @@ virDomainUSBAddressFindPort(virDomainUSBAddressSetPtr addrs,
 }
 
 
-#define VIR_DOMAIN_USB_HUB_PORTS 8
-
 int
 virDomainUSBAddressSetAddHub(virDomainUSBAddressSetPtr addrs,
                              virDomainHubDefPtr hub)
diff --git a/src/conf/domain_addr.h b/src/conf/domain_addr.h
index 632f0c0..f884b8a 100644
--- a/src/conf/domain_addr.h
+++ b/src/conf/domain_addr.h
@@ -274,6 +274,8 @@ char *
 virDomainUSBAddressPortFormat(unsigned int *port)
     ATTRIBUTE_NONNULL(1);
 
+# define VIR_DOMAIN_USB_HUB_PORTS 8
+
 typedef struct _virDomainUSBAddressHub virDomainUSBAddressHub;
 typedef virDomainUSBAddressHub *virDomainUSBAddressHubPtr;
 struct _virDomainUSBAddressHub {
-- 
2.10.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[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