[PATCH 4/8] test driver: Implement virConnectGetType.

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

 



Signed-off-by: Tomáš Ryšavý <tom.rysavy.0@xxxxxxxxx>
---
 src/test/test_driver.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index afddc06..811bbeb 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -1525,6 +1525,10 @@ static char * testConnectGetSysinfo(virConnectPtr conn ATTRIBUTE_UNUSED,
     return ret;
 }
 
+static const char *testConnectGetType(virConnectPtr conn ATTRIBUTE_UNUSED) {
+    return "TEST";
+}
+
 static int testConnectNumOfDomains(virConnectPtr conn)
 {
     testDriverPtr privconn = conn->privateData;
@@ -6700,6 +6704,7 @@ static virHypervisorDriver testHypervisorDriver = {
     .nodeGetInfo = testNodeGetInfo, /* 0.1.1 */
     .connectGetCapabilities = testConnectGetCapabilities, /* 0.2.1 */
     .connectGetSysinfo = testConnectGetSysinfo, /* 2.3.0 */
+    .connectGetType = testConnectGetType, /* 2.3.0 */
     .connectListDomains = testConnectListDomains, /* 0.1.1 */
     .connectNumOfDomains = testConnectNumOfDomains, /* 0.1.1 */
     .connectListAllDomains = testConnectListAllDomains, /* 0.9.13 */
-- 
2.9.3

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