mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
virnetdevvportprofile: Turn virNetDevVPortProfileLinkOp enum into a proper typedef
This allows us to declare variables without using 'enum virNetDev....' and will become more useful in the near future (when virReportEnumRangeError() is fixed). Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
ed80ce426e
commit
4af0c1d60e
@ -69,12 +69,12 @@ VIR_LOG_INIT("util.netdevvportprofile");
|
||||
# define LLDPAD_PID_FILE "/var/run/lldpad.pid"
|
||||
|
||||
|
||||
enum virNetDevVPortProfileLinkOp {
|
||||
typedef enum {
|
||||
VIR_NETDEV_VPORT_PROFILE_LINK_OP_ASSOCIATE = 0x1,
|
||||
VIR_NETDEV_VPORT_PROFILE_LINK_OP_DISASSOCIATE = 0x2,
|
||||
VIR_NETDEV_VPORT_PROFILE_LINK_OP_PREASSOCIATE = 0x3,
|
||||
VIR_NETDEV_VPORT_PROFILE_LINK_OP_PREASSOCIATE_RR = 0x4,
|
||||
};
|
||||
} virNetDevVPortProfileLinkOp;
|
||||
|
||||
#endif
|
||||
|
||||
@ -1024,7 +1024,7 @@ virNetDevVPortProfileOp8021Qbg(const char *ifname,
|
||||
const virMacAddr *macaddr,
|
||||
int vf,
|
||||
const virNetDevVPortProfile *virtPort,
|
||||
enum virNetDevVPortProfileLinkOp virtPortOp,
|
||||
virNetDevVPortProfileLinkOp virtPortOp,
|
||||
bool setlink_only)
|
||||
{
|
||||
int op = PORT_REQUEST_ASSOCIATE;
|
||||
@ -1093,7 +1093,7 @@ virNetDevVPortProfileOp8021Qbh(const char *ifname,
|
||||
int32_t vf,
|
||||
const virNetDevVPortProfile *virtPort,
|
||||
const unsigned char *vm_uuid,
|
||||
enum virNetDevVPortProfileLinkOp virtPortOp)
|
||||
virNetDevVPortProfileLinkOp virtPortOp)
|
||||
{
|
||||
int rc = 0;
|
||||
char *physfndev = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user