Move libxlDomainEventQueue from libxl_driver to libxl_domain for
use by other libxl modules.
Signed-off-by: Jim Fehlig <jfehlig(a)suse.com>
---
src/libxl/libxl_domain.c | 6 ++++++
src/libxl/libxl_domain.h | 4 ++++
src/libxl/libxl_driver.c | 6 ------
3 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/libxl/libxl_domain.c b/src/libxl/libxl_domain.c
index 274fb6c..e5a5720 100644
--- a/src/libxl/libxl_domain.c
+++ b/src/libxl/libxl_domain.c
@@ -548,3 +548,9 @@ cleanup:
VIR_FREE(log_file);
return ret;
}
+
+void
+libxlDomainEventQueue(libxlDriverPrivatePtr driver, virObjectEventPtr event)
+{
+ virObjectEventStateQueue(driver->domainEventState, event);
+}
diff --git a/src/libxl/libxl_domain.h b/src/libxl/libxl_domain.h
index 0a29d38..dd57e57 100644
--- a/src/libxl/libxl_domain.h
+++ b/src/libxl/libxl_domain.h
@@ -91,4 +91,8 @@ libxlDomainObjEndJob(libxlDriverPrivatePtr driver,
virDomainObjPtr obj)
ATTRIBUTE_RETURN_CHECK;
+void
+libxlDomainEventQueue(libxlDriverPrivatePtr driver,
+ virObjectEventPtr event);
+
#endif /* LIBXL_DOMAIN_H */
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index ae7342a..1c4d61b 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@ -102,12 +102,6 @@ libxlDomObjFromDomain(virDomainPtr dom)
return vm;
}
-static void
-libxlDomainEventQueue(libxlDriverPrivatePtr driver, virObjectEventPtr event)
-{
- virObjectEventStateQueue(driver->domainEventState, event);
-}
-
static int
libxlAutostartDomain(virDomainObjPtr vm,
void *opaque)
--
1.8.1.4