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

[libvirt] [PATCH 03/10] linkstate: Internal API for interface link state



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

diff --git a/src/driver.h b/src/driver.h
index 5136fb5..8101df3 100644
--- a/src/driver.h
+++ b/src/driver.h
@@ -351,7 +351,17 @@ typedef int
                     (virDomainPtr domain,
                      const char *path,
                      struct _virDomainInterfaceStats *stats);
-
+typedef int
+    (*virDrvDomainInterfaceLinkSetState)
+                    (virDomainPtr domain,
+                     const char *path,
+                     unsigned int state,
+                     unsigned int flags);
+typedef int
+    (*virDrvDomainInterfaceLinkGetState)
+                    (virDomainPtr domain,
+                     const char *path,
+                     unsigned int flags);
 typedef int
     (*virDrvDomainMemoryStats)
                     (virDomainPtr domain,
@@ -801,6 +811,8 @@ struct _virDriver {
     virDrvDomainMigrateFinish	domainMigrateFinish;
     virDrvDomainBlockStats      domainBlockStats;
     virDrvDomainInterfaceStats  domainInterfaceStats;
+    virDrvDomainInterfaceLinkSetState   domainInterfaceLinkSetState;
+    virDrvDomainInterfaceLinkGetState   domainInterfaceLinkGetState;
     virDrvDomainMemoryStats     domainMemoryStats;
     virDrvDomainBlockPeek	domainBlockPeek;
     virDrvDomainMemoryPeek      domainMemoryPeek;
-- 
1.7.6


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