mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
conf: move anonymous backend struct from virDomainNetDef into its own struct
This will allow us to call parser/formatter functions with a pointer to just the backend part. Signed-off-by: Laine Stump <laine@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
d3307a8fd2
commit
7f6bb51eb9
@ -1051,6 +1051,11 @@ struct _virDomainActualNetDef {
|
||||
unsigned int class_id; /* class ID for bandwidth 'floor' */
|
||||
};
|
||||
|
||||
struct _virDomainNetBackend {
|
||||
char *tap;
|
||||
char *vhost;
|
||||
};
|
||||
|
||||
/* Stores the virtual network interface configuration */
|
||||
struct _virDomainNetDef {
|
||||
virDomainNetType type;
|
||||
@ -1089,10 +1094,7 @@ struct _virDomainNetDef {
|
||||
virTristateSwitch rss_hash_report;
|
||||
} virtio;
|
||||
} driver;
|
||||
struct {
|
||||
char *tap;
|
||||
char *vhost;
|
||||
} backend;
|
||||
virDomainNetBackend backend;
|
||||
virDomainNetTeamingInfo *teaming;
|
||||
union {
|
||||
virDomainChrSourceDef *vhostuser;
|
||||
|
@ -172,6 +172,8 @@ typedef struct _virDomainMomentObjList virDomainMomentObjList;
|
||||
|
||||
typedef struct _virDomainNVRAMDef virDomainNVRAMDef;
|
||||
|
||||
typedef struct _virDomainNetBackend virDomainNetBackend;
|
||||
|
||||
typedef struct _virDomainNetDef virDomainNetDef;
|
||||
|
||||
typedef struct _virDomainNetTeamingInfo virDomainNetTeamingInfo;
|
||||
|
Loading…
x
Reference in New Issue
Block a user