libxl: move libxlDomainEventQueue to libxl_domain

Move libxlDomainEventQueue from libxl_driver to libxl_domain for
use by other libxl modules.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
This commit is contained in:
Jim Fehlig 2014-02-25 18:51:52 -07:00
parent 3d4b4f5ac6
commit 62ad199cc8
3 changed files with 10 additions and 6 deletions

View File

@ -549,3 +549,9 @@ cleanup:
VIR_FREE(log_file); VIR_FREE(log_file);
return ret; return ret;
} }
void
libxlDomainEventQueue(libxlDriverPrivatePtr driver, virObjectEventPtr event)
{
virObjectEventStateQueue(driver->domainEventState, event);
}

View File

@ -91,4 +91,8 @@ libxlDomainObjEndJob(libxlDriverPrivatePtr driver,
virDomainObjPtr obj) virDomainObjPtr obj)
ATTRIBUTE_RETURN_CHECK; ATTRIBUTE_RETURN_CHECK;
void
libxlDomainEventQueue(libxlDriverPrivatePtr driver,
virObjectEventPtr event);
#endif /* LIBXL_DOMAIN_H */ #endif /* LIBXL_DOMAIN_H */

View File

@ -106,12 +106,6 @@ libxlDomObjFromDomain(virDomainPtr dom)
return vm; return vm;
} }
static void
libxlDomainEventQueue(libxlDriverPrivatePtr driver, virObjectEventPtr event)
{
virObjectEventStateQueue(driver->domainEventState, event);
}
static int static int
libxlAutostartDomain(virDomainObjPtr vm, libxlAutostartDomain(virDomainObjPtr vm,
void *opaque) void *opaque)