mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 07:42:56 +00:00
test driver: Implement virConnectGetType.
Signed-off-by: Tomáš Ryšavý <tom.rysavy.0@gmail.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
5418719597
commit
5cdc3b8227
@ -1521,6 +1521,12 @@ 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;
|
||||
@ -6696,6 +6702,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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user