mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: capabilities: Refactor API for setting guest capability features
Remove the need to pass around strings and switch to the enum values instead. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -110,8 +110,7 @@ testQemuAddI686Guest(virCapsPtr caps)
|
||||
machines)))
|
||||
goto error;
|
||||
|
||||
if (!virCapabilitiesAddGuestFeature(guest, "cpuselection", true, false))
|
||||
goto error;
|
||||
virCapabilitiesAddGuestFeature(guest, VIR_CAPS_GUEST_FEATURE_TYPE_CPUSELECTION);
|
||||
|
||||
machines = NULL;
|
||||
|
||||
@@ -161,8 +160,7 @@ testQemuAddX86_64Guest(virCapsPtr caps)
|
||||
machines)))
|
||||
goto error;
|
||||
|
||||
if (!virCapabilitiesAddGuestFeature(guest, "cpuselection", true, false))
|
||||
goto error;
|
||||
virCapabilitiesAddGuestFeature(guest, VIR_CAPS_GUEST_FEATURE_TYPE_CPUSELECTION);
|
||||
|
||||
machines = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user