]> xenbits.xensource.com Git - libvirt.git/commitdiff
Move virNetDevVPort enum impl into virnetdevvportprofile.c
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 10 Oct 2013 15:41:05 +0000 (16:41 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 11 Oct 2013 10:45:54 +0000 (11:45 +0100)
The enum for virNetDevVPort is declared in the header file
virnetdevvportprofile.h, but for some reason the impl is
in netdev_vport_profile_conf.c.

This causes a dep from src/util onto src/conf which is not
allowed. Move the enum impl into virnetdevvportprofile.c
to break the circle.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/conf/netdev_vport_profile_conf.c
src/util/virnetdevvportprofile.c

index e8199e2d081a69c3f5fc3004718b72486ebd86a4..a16a04a8365d68c0ae5234730f6df0448577f64a 100644 (file)
 #define VIR_FROM_THIS VIR_FROM_NONE
 
 
-VIR_ENUM_IMPL(virNetDevVPort, VIR_NETDEV_VPORT_PROFILE_LAST,
-              "none",
-              "802.1Qbg",
-              "802.1Qbh",
-              "openvswitch")
-
-
 virNetDevVPortProfilePtr
 virNetDevVPortProfileParse(xmlNodePtr node, unsigned int flags)
 {
index 07155b9f3984699c21e9529a5cc9f61cfca33164..1cae20a2767f5be7a5bf83dfe9082076aff1c6a5 100644 (file)
 
 #define VIR_FROM_THIS VIR_FROM_NET
 
+VIR_ENUM_IMPL(virNetDevVPort, VIR_NETDEV_VPORT_PROFILE_LAST,
+              "none",
+              "802.1Qbg",
+              "802.1Qbh",
+              "openvswitch")
+
 VIR_ENUM_IMPL(virNetDevVPortProfileOp, VIR_NETDEV_VPORT_PROFILE_OP_LAST,
               "create",
               "save",