[libvirt] Re: [PATCH 05/12] Domain Events - Driver API

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

 



Additions to the driver API

 driver.h |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/src/driver.h b/src/driver.h
index 0540f80..c88dea8 100644
--- a/src/driver.h
+++ b/src/driver.h
@@ -280,6 +280,22 @@ typedef unsigned long long
     (*virDrvNodeGetFreeMemory)
                     (virConnectPtr conn);
 
+typedef int
+    (*virDrvDomainEventRegister)
+                    (virConnectPtr conn,
+                     void *callback,
+                     void *opaque);
+
+typedef int
+    (*virDrvDomainEventDeregister)
+                    (virConnectPtr conn,
+                     void *callback);
+
+typedef void
+    (*virDrvDomainEventDispatch)
+                    (virDomainPtr dom,
+                     virDomainEventType evt);
+
 /**
  * _virDriver:
  *
@@ -352,6 +368,9 @@ struct _virDriver {
     virDrvDomainMemoryPeek      domainMemoryPeek;
     virDrvNodeGetCellsFreeMemory	nodeGetCellsFreeMemory;
     virDrvNodeGetFreeMemory		getFreeMemory;
+    virDrvDomainEventRegister         domainEventRegister;
+    virDrvDomainEventDeregister       domainEventDeregister;
+    virDrvDomainEventDispatch         domainEventDispatch;
 };
 
 typedef int

--
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]