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

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

 



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

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