mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
test: Implement virConnectListAllNodeDevices
Reviewed-by: Erik Skultety <eskultet@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
4afa955365
commit
f52d5fc91c
@ -5367,6 +5367,18 @@ testNodeListDevices(virConnectPtr conn,
|
||||
cap, names, maxnames);
|
||||
}
|
||||
|
||||
static int
|
||||
testConnectListAllNodeDevices(virConnectPtr conn,
|
||||
virNodeDevicePtr **devices,
|
||||
unsigned int flags)
|
||||
{
|
||||
testDriverPtr driver = conn->privateData;
|
||||
|
||||
virCheckFlags(VIR_CONNECT_LIST_NODE_DEVICES_FILTERS_CAP, -1);
|
||||
|
||||
return virNodeDeviceObjListExport(conn, driver->devs, devices,
|
||||
NULL, flags);
|
||||
}
|
||||
|
||||
static virNodeDevicePtr
|
||||
testNodeDeviceLookupByName(virConnectPtr conn, const char *name)
|
||||
@ -7002,6 +7014,7 @@ static virStorageDriver testStorageDriver = {
|
||||
};
|
||||
|
||||
static virNodeDeviceDriver testNodeDeviceDriver = {
|
||||
.connectListAllNodeDevices = testConnectListAllNodeDevices, /* 4.1.0 */
|
||||
.connectNodeDeviceEventRegisterAny = testConnectNodeDeviceEventRegisterAny, /* 2.2.0 */
|
||||
.connectNodeDeviceEventDeregisterAny = testConnectNodeDeviceEventDeregisterAny, /* 2.2.0 */
|
||||
.nodeNumOfDevices = testNodeNumOfDevices, /* 0.7.2 */
|
||||
|
Loading…
Reference in New Issue
Block a user