mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
qemu: Move qemuDomainNetVLAN
Move function into qemu_domain.c.
This commit is contained in:
parent
de71e0e500
commit
731ed05ce9
@ -259,12 +259,6 @@ qemuBuildObjectCommandlineFromJSON(const char *type,
|
||||
}
|
||||
|
||||
|
||||
int qemuDomainNetVLAN(virDomainNetDefPtr def)
|
||||
{
|
||||
return qemuDomainDeviceAliasIndex(&def->info, "net");
|
||||
}
|
||||
|
||||
|
||||
char *qemuDeviceDriveHostAlias(virDomainDiskDefPtr disk,
|
||||
virQEMUCapsPtr qemuCaps)
|
||||
{
|
||||
|
@ -227,8 +227,6 @@ char *qemuBuildRedirdevDevStr(virDomainDefPtr def,
|
||||
|
||||
int qemuNetworkPrepareDevices(virDomainDefPtr def);
|
||||
|
||||
int qemuDomainNetVLAN(virDomainNetDefPtr def);
|
||||
|
||||
int qemuGetDriveSourceString(virStorageSourcePtr src,
|
||||
virConnectPtr conn,
|
||||
char **source);
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include "qemu_domain.h"
|
||||
#include "qemu_alias.h"
|
||||
#include "qemu_command.h"
|
||||
#include "qemu_parse_command.h"
|
||||
#include "qemu_capabilities.h"
|
||||
@ -4428,3 +4429,10 @@ qemuDomainSupportsNetdev(virDomainDefPtr def,
|
||||
return false;
|
||||
return virQEMUCapsGet(qemuCaps, QEMU_CAPS_NETDEV);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
qemuDomainNetVLAN(virDomainNetDefPtr def)
|
||||
{
|
||||
return qemuDomainDeviceAliasIndex(&def->info, "net");
|
||||
}
|
||||
|
@ -521,5 +521,6 @@ bool qemuDomainSupportsNetdev(virDomainDefPtr def,
|
||||
virQEMUCapsPtr qemuCaps,
|
||||
virDomainNetDefPtr net);
|
||||
|
||||
int qemuDomainNetVLAN(virDomainNetDefPtr def);
|
||||
|
||||
#endif /* __QEMU_DOMAIN_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user