mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
conf: drop virCapsPtr param from domain validate callback
None of the impls of this callback require the virCapsPtr param. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
33b62676f8
commit
04c960dd64
@ -7115,7 +7115,7 @@ virDomainDefValidateInternal(const virDomainDef *def,
|
||||
*/
|
||||
int
|
||||
virDomainDefValidate(virDomainDefPtr def,
|
||||
virCapsPtr caps,
|
||||
virCapsPtr caps G_GNUC_UNUSED,
|
||||
unsigned int parseFlags,
|
||||
virDomainXMLOptionPtr xmlopt)
|
||||
{
|
||||
@ -7130,7 +7130,7 @@ virDomainDefValidate(virDomainDefPtr def,
|
||||
|
||||
/* call the domain config callback */
|
||||
if (xmlopt->config.domainValidateCallback &&
|
||||
xmlopt->config.domainValidateCallback(def, caps, xmlopt->config.priv) < 0)
|
||||
xmlopt->config.domainValidateCallback(def, xmlopt->config.priv) < 0)
|
||||
return -1;
|
||||
|
||||
/* iterate the devices */
|
||||
|
@ -2671,7 +2671,6 @@ typedef void (*virDomainDefPostParseDataFree)(void *parseOpaque);
|
||||
* for configurations that were previously accepted. This shall not modify the
|
||||
* config. */
|
||||
typedef int (*virDomainDefValidateCallback)(const virDomainDef *def,
|
||||
virCapsPtr caps,
|
||||
void *opaque);
|
||||
|
||||
/* Called once per device, for adjusting per-device settings while
|
||||
|
@ -4972,7 +4972,6 @@ qemuDomainValidateCpuCount(const virDomainDef *def,
|
||||
|
||||
static int
|
||||
qemuDomainDefValidate(const virDomainDef *def,
|
||||
virCapsPtr caps G_GNUC_UNUSED,
|
||||
void *opaque)
|
||||
{
|
||||
virQEMUDriverPtr driver = opaque;
|
||||
|
@ -259,7 +259,6 @@ vzDomainDefPostParse(virDomainDefPtr def,
|
||||
|
||||
static int
|
||||
vzDomainDefValidate(const virDomainDef *def,
|
||||
virCapsPtr caps G_GNUC_UNUSED,
|
||||
void *opaque)
|
||||
{
|
||||
if (vzCheckUnsupportedControllers(def, opaque) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user