qemu: Move qemuDomainNetVLAN

Move function into qemu_domain.c.
This commit is contained in:
John Ferlan 2016-02-16 10:11:34 -05:00
parent de71e0e500
commit 731ed05ce9
4 changed files with 9 additions and 8 deletions

View File

@ -259,12 +259,6 @@ qemuBuildObjectCommandlineFromJSON(const char *type,
}
int qemuDomainNetVLAN(virDomainNetDefPtr def)
{
return qemuDomainDeviceAliasIndex(&def->info, "net");
}
char *qemuDeviceDriveHostAlias(virDomainDiskDefPtr disk,
virQEMUCapsPtr qemuCaps)
{

View File

@ -227,8 +227,6 @@ char *qemuBuildRedirdevDevStr(virDomainDefPtr def,
int qemuNetworkPrepareDevices(virDomainDefPtr def);
int qemuDomainNetVLAN(virDomainNetDefPtr def);
int qemuGetDriveSourceString(virStorageSourcePtr src,
virConnectPtr conn,
char **source);

View File

@ -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");
}

View File

@ -521,5 +521,6 @@ bool qemuDomainSupportsNetdev(virDomainDefPtr def,
virQEMUCapsPtr qemuCaps,
virDomainNetDefPtr net);
int qemuDomainNetVLAN(virDomainNetDefPtr def);
#endif /* __QEMU_DOMAIN_H__ */