[PATCH 01/13] libxl: move libxlDomainEventQueue to libxl_domain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxx>
---
 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 fdc4661..65219df 100644
--- a/src/libxl/libxl_domain.c
+++ b/src/libxl/libxl_domain.c
@@ -539,3 +539,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 a79efcb..511fde6 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@ -99,12 +99,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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]