mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: node_device: Add 'validate' argument to virNodeDeviceDefParse
Allow callers to request XML validation against the schema. All callers for now pass 'false'. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
@@ -71,7 +71,7 @@ testMdevctlCmd(virMdevctlCommand cmd_type,
|
||||
}
|
||||
|
||||
if (!(def = virNodeDeviceDefParse(NULL, mdevxml, create, VIRT_TYPE,
|
||||
&parser_callbacks, NULL)))
|
||||
&parser_callbacks, NULL, false)))
|
||||
return -1;
|
||||
|
||||
/* this function will set a stdin buffer containing the json configuration
|
||||
@@ -143,7 +143,7 @@ testMdevctlAutostart(const void *data G_GNUC_UNUSED)
|
||||
g_autoptr(virCommandDryRunToken) dryRunToken = virCommandDryRunTokenNew();
|
||||
|
||||
if (!(def = virNodeDeviceDefParse(NULL, mdevxml, CREATE_DEVICE, VIRT_TYPE,
|
||||
&parser_callbacks, NULL)))
|
||||
&parser_callbacks, NULL, false)))
|
||||
return -1;
|
||||
|
||||
virCommandSetDryRun(dryRunToken, &buf, true, true, NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user