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

[libvirt] [PATCH 2/4] Define internal driver API for new virInterface functions



---
 src/driver.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/driver.h b/src/driver.h
index ca759ff..2502c63 100644
--- a/src/driver.h
+++ b/src/driver.h
@@ -508,6 +508,12 @@ typedef int
         (*virDrvListInterfaces)         (virConnectPtr conn,
                                          char **const names,
                                          int maxnames);
+typedef int
+        (*virDrvNumOfDefinedInterfaces) (virConnectPtr conn);
+typedef int
+        (*virDrvListDefinedInterfaces)  (virConnectPtr conn,
+                                         char **const names,
+                                         int maxnames);
 typedef virInterfacePtr
         (*virDrvInterfaceLookupByName)  (virConnectPtr conn,
                                          const char *name);
@@ -551,6 +557,8 @@ struct _virInterfaceDriver {
     virDrvClose                      close;
     virDrvNumOfInterfaces            numOfInterfaces;
     virDrvListInterfaces             listInterfaces;
+    virDrvNumOfDefinedInterfaces     numOfDefinedInterfaces;
+    virDrvListDefinedInterfaces      listDefinedInterfaces;
     virDrvInterfaceLookupByName      interfaceLookupByName;
     virDrvInterfaceLookupByMACString interfaceLookupByMACString;
     virDrvInterfaceGetXMLDesc        interfaceGetXMLDesc;
-- 
1.6.0.6


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