[libvirt PATCH 7/8] conf: reduce includes in virnetworkportdef.h

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

 



All the _conf includes are only needed in the C file.

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 src/conf/virnetworkportdef.c | 4 ++++
 src/conf/virnetworkportdef.h | 3 ---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/conf/virnetworkportdef.c b/src/conf/virnetworkportdef.c
index a972b698cc..66d900088a 100644
--- a/src/conf/virnetworkportdef.c
+++ b/src/conf/virnetworkportdef.c
@@ -28,6 +28,10 @@
 #include "virnetworkportdef.h"
 #include "network_conf.h"
 
+#include "netdev_bandwidth_conf.h"
+#include "netdev_vlan_conf.h"
+#include "netdev_vport_profile_conf.h"
+
 #define VIR_FROM_THIS VIR_FROM_NETWORK
 
 VIR_ENUM_IMPL(virNetworkPortPlug,
diff --git a/src/conf/virnetworkportdef.h b/src/conf/virnetworkportdef.h
index 78cf2c1ba4..72da8b6915 100644
--- a/src/conf/virnetworkportdef.h
+++ b/src/conf/virnetworkportdef.h
@@ -28,9 +28,6 @@
 #include "virnetdevbandwidth.h"
 #include "virpci.h"
 #include "virxml.h"
-#include "netdev_vport_profile_conf.h"
-#include "netdev_bandwidth_conf.h"
-#include "netdev_vlan_conf.h"
 
 typedef struct _virNetworkPortDef virNetworkPortDef;
 typedef virNetworkPortDef *virNetworkPortDefPtr;
-- 
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