diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 706414b38e..679f558508 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -259,12 +259,6 @@ qemuBuildObjectCommandlineFromJSON(const char *type, } -int qemuDomainNetVLAN(virDomainNetDefPtr def) -{ - return qemuDomainDeviceAliasIndex(&def->info, "net"); -} - - char *qemuDeviceDriveHostAlias(virDomainDiskDefPtr disk, virQEMUCapsPtr qemuCaps) { diff --git a/src/qemu/qemu_command.h b/src/qemu/qemu_command.h index 8d5d88d090..776954e5f5 100644 --- a/src/qemu/qemu_command.h +++ b/src/qemu/qemu_command.h @@ -227,8 +227,6 @@ char *qemuBuildRedirdevDevStr(virDomainDefPtr def, int qemuNetworkPrepareDevices(virDomainDefPtr def); -int qemuDomainNetVLAN(virDomainNetDefPtr def); - int qemuGetDriveSourceString(virStorageSourcePtr src, virConnectPtr conn, char **source); diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 4e9a737ac8..7223b9e296 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -24,6 +24,7 @@ #include #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"); +} diff --git a/src/qemu/qemu_domain.h b/src/qemu/qemu_domain.h index 59875c1334..f0b47e78a6 100644 --- a/src/qemu/qemu_domain.h +++ b/src/qemu/qemu_domain.h @@ -521,5 +521,6 @@ bool qemuDomainSupportsNetdev(virDomainDefPtr def, virQEMUCapsPtr qemuCaps, virDomainNetDefPtr net); +int qemuDomainNetVLAN(virDomainNetDefPtr def); #endif /* __QEMU_DOMAIN_H__ */