mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
qemu: Make virQEMUCapsIsMachineSupported static
Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
42adc0b87d
commit
21b2025a0e
@ -2428,6 +2428,20 @@ virQEMUCapsProbeQMPMachineTypes(virQEMUCapsPtr qemuCaps,
|
||||
}
|
||||
|
||||
|
||||
static bool
|
||||
virQEMUCapsIsMachineSupported(virQEMUCapsPtr qemuCaps,
|
||||
const char *canonical_machine)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < qemuCaps->nmachineTypes; i++) {
|
||||
if (STREQ(canonical_machine, qemuCaps->machineTypes[i].name))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
virQEMUCapsProbeQMPMachineProps(virQEMUCapsPtr qemuCaps,
|
||||
qemuMonitorPtr mon)
|
||||
@ -5146,20 +5160,6 @@ virQEMUCapsSupportsVmport(virQEMUCapsPtr qemuCaps,
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
virQEMUCapsIsMachineSupported(virQEMUCapsPtr qemuCaps,
|
||||
const char *canonical_machine)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < qemuCaps->nmachineTypes; i++) {
|
||||
if (STREQ(canonical_machine, qemuCaps->machineTypes[i].name))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* The preferred machine to use if none is listed explicitly
|
||||
* Note that this may differ from QEMU's own default machine
|
||||
|
@ -645,9 +645,6 @@ bool virQEMUCapsSupportsGICVersion(virQEMUCapsPtr qemuCaps,
|
||||
virDomainVirtType virtType,
|
||||
virGICVersion version);
|
||||
|
||||
bool virQEMUCapsIsMachineSupported(virQEMUCapsPtr qemuCaps,
|
||||
const char *canonical_machine);
|
||||
|
||||
const char *virQEMUCapsGetPreferredMachine(virQEMUCapsPtr qemuCaps);
|
||||
|
||||
int virQEMUCapsInitGuestFromBinary(virCapsPtr caps,
|
||||
|
Loading…
Reference in New Issue
Block a user