qemu: Export a few functions

We're going to need them in a minute.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Andrea Bolognani 2024-08-28 14:40:51 +02:00
parent 21562c4df6
commit d292c5ba17
2 changed files with 16 additions and 4 deletions

View File

@ -9045,8 +9045,9 @@ qemuFindAgentConfig(virDomainDef *def)
return NULL;
}
static bool
/* You should normally avoid this function and use
* qemuDomainMachineIsQ35() instead. */
bool
qemuDomainMachineIsQ35(const char *machine,
const virArch arch)
{
@ -9062,7 +9063,9 @@ qemuDomainMachineIsQ35(const char *machine,
}
static bool
/* You should normally avoid this function and use
* qemuDomainMachineIsI440FX() instead. */
bool
qemuDomainMachineIsI440FX(const char *machine,
const virArch arch)
{
@ -9179,7 +9182,10 @@ qemuDomainMachineIsMipsMalta(const char *machine,
return false;
}
static bool
/* You should normally avoid this function and use
* qemuDomainMachineIsXenFV() instead. */
bool
qemuDomainMachineIsXenFV(const char *machine,
const virArch arch)
{

View File

@ -823,10 +823,16 @@ virDomainChrDef *qemuFindAgentConfig(virDomainDef *def);
/* You should normally avoid these functions and use the variant that
* doesn't have "Machine" in the name instead. */
bool qemuDomainMachineIsQ35(const char *machine,
const virArch arch);
bool qemuDomainMachineIsI440FX(const char *machine,
const virArch arch);
bool qemuDomainMachineIsARMVirt(const char *machine,
const virArch arch);
bool qemuDomainMachineIsPSeries(const char *machine,
const virArch arch);
bool qemuDomainMachineIsXenFV(const char *machine,
const virArch arch);
bool qemuDomainMachineHasBuiltinIDE(const char *machine,
const virArch arch);