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

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



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


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