mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-05 13:17:51 +03: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,
|
char *qemuDeviceDriveHostAlias(virDomainDiskDefPtr disk,
|
||||||
virQEMUCapsPtr qemuCaps)
|
virQEMUCapsPtr qemuCaps)
|
||||||
{
|
{
|
||||||
|
@ -227,8 +227,6 @@ char *qemuBuildRedirdevDevStr(virDomainDefPtr def,
|
|||||||
|
|
||||||
int qemuNetworkPrepareDevices(virDomainDefPtr def);
|
int qemuNetworkPrepareDevices(virDomainDefPtr def);
|
||||||
|
|
||||||
int qemuDomainNetVLAN(virDomainNetDefPtr def);
|
|
||||||
|
|
||||||
int qemuGetDriveSourceString(virStorageSourcePtr src,
|
int qemuGetDriveSourceString(virStorageSourcePtr src,
|
||||||
virConnectPtr conn,
|
virConnectPtr conn,
|
||||||
char **source);
|
char **source);
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include "qemu_domain.h"
|
#include "qemu_domain.h"
|
||||||
|
#include "qemu_alias.h"
|
||||||
#include "qemu_command.h"
|
#include "qemu_command.h"
|
||||||
#include "qemu_parse_command.h"
|
#include "qemu_parse_command.h"
|
||||||
#include "qemu_capabilities.h"
|
#include "qemu_capabilities.h"
|
||||||
@ -4428,3 +4429,10 @@ qemuDomainSupportsNetdev(virDomainDefPtr def,
|
|||||||
return false;
|
return false;
|
||||||
return virQEMUCapsGet(qemuCaps, QEMU_CAPS_NETDEV);
|
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,
|
virQEMUCapsPtr qemuCaps,
|
||||||
virDomainNetDefPtr net);
|
virDomainNetDefPtr net);
|
||||||
|
|
||||||
|
int qemuDomainNetVLAN(virDomainNetDefPtr def);
|
||||||
|
|
||||||
#endif /* __QEMU_DOMAIN_H__ */
|
#endif /* __QEMU_DOMAIN_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user