mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
hypervisor: domain_job: rename members in virDomainObjPrivateJobCallbacks
This patch alters members of virDomainObjPrivateJobCallbacks to make the code more consistent. Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
badb7972fd
commit
e8046532a7
@ -201,6 +201,6 @@ struct _virDomainObjPrivateJobCallbacks {
|
||||
virDomainObjPrivateJobAlloc allocJobPrivate;
|
||||
virDomainObjPrivateJobFree freeJobPrivate;
|
||||
virDomainObjPrivateJobReset resetJobPrivate;
|
||||
virDomainObjPrivateJobFormat formatJob;
|
||||
virDomainObjPrivateJobParse parseJob;
|
||||
virDomainObjPrivateJobFormat formatJobPrivate;
|
||||
virDomainObjPrivateJobParse parseJobPrivate;
|
||||
};
|
||||
|
@ -364,8 +364,8 @@ static virDomainObjPrivateJobCallbacks qemuPrivateJobCallbacks = {
|
||||
.allocJobPrivate = qemuJobAllocPrivate,
|
||||
.freeJobPrivate = qemuJobFreePrivate,
|
||||
.resetJobPrivate = qemuJobResetPrivate,
|
||||
.formatJob = qemuDomainFormatJobPrivate,
|
||||
.parseJob = qemuDomainParseJobPrivate,
|
||||
.formatJobPrivate = qemuDomainFormatJobPrivate,
|
||||
.parseJobPrivate = qemuDomainParseJobPrivate,
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -1294,7 +1294,7 @@ qemuDomainObjPrivateXMLFormatJob(virBuffer *buf,
|
||||
}
|
||||
|
||||
if (priv->job.cb &&
|
||||
priv->job.cb->formatJob(&childBuf, &priv->job, vm) < 0)
|
||||
priv->job.cb->formatJobPrivate(&childBuf, &priv->job, vm) < 0)
|
||||
return -1;
|
||||
|
||||
virXMLFormatElement(buf, "job", &attrBuf, &childBuf);
|
||||
@ -1362,7 +1362,7 @@ qemuDomainObjPrivateXMLParseJob(virDomainObj *vm,
|
||||
}
|
||||
|
||||
if (priv->job.cb &&
|
||||
priv->job.cb->parseJob(ctxt, job, vm) < 0)
|
||||
priv->job.cb->parseJobPrivate(ctxt, job, vm) < 0)
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user