mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 13:05:27 +00:00
libxl: use virDomainObjResetJob()
This patch removes and replaces libxlDomainObjResetJob() with general virDomainObjResetJob(). Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
cee50d1187
commit
2ee4c061be
@ -44,15 +44,6 @@
|
||||
VIR_LOG_INIT("libxl.libxl_domain");
|
||||
|
||||
|
||||
static void
|
||||
libxlDomainObjResetJob(libxlDomainObjPrivate *priv)
|
||||
{
|
||||
virDomainJobObj *job = &priv->job;
|
||||
|
||||
job->active = VIR_JOB_NONE;
|
||||
job->owner = 0;
|
||||
}
|
||||
|
||||
static void
|
||||
libxlDomainObjFreeJob(libxlDomainObjPrivate *priv)
|
||||
{
|
||||
@ -92,7 +83,7 @@ libxlDomainObjBeginJob(libxlDriverPrivate *driver G_GNUC_UNUSED,
|
||||
goto error;
|
||||
}
|
||||
|
||||
libxlDomainObjResetJob(priv);
|
||||
virDomainObjResetJob(&priv->job);
|
||||
|
||||
VIR_DEBUG("Starting job: %s", virDomainJobTypeToString(job));
|
||||
priv->job.active = job;
|
||||
@ -140,7 +131,7 @@ libxlDomainObjEndJob(libxlDriverPrivate *driver G_GNUC_UNUSED,
|
||||
VIR_DEBUG("Stopping job: %s",
|
||||
virDomainJobTypeToString(job));
|
||||
|
||||
libxlDomainObjResetJob(priv);
|
||||
virDomainObjResetJob(&priv->job);
|
||||
virCondSignal(&priv->job.cond);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user