mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 01:04:59 +00:00
Move virNetDevVPort enum impl into virnetdevvportprofile.c
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>
This commit is contained in:
parent
1606d89c86
commit
1fb4d8923f
@ -30,13 +30,6 @@
|
||||
#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)
|
||||
{
|
||||
|
@ -29,6 +29,12 @@
|
||||
|
||||
#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",
|
||||
|
Loading…
Reference in New Issue
Block a user