mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Remove virConnectPtr from all node device XML APIs
The virConnectPtr is no longer required for error reporting since
that is recorded in a thread local. Remove use of virConnectPtr
from all APIs in node_device_conf.{h,c} and update all callers to
match
This commit is contained in:
@@ -29,10 +29,10 @@ static int testCompareXMLToXMLFiles(const char *xml) {
|
||||
if (virtTestLoadFile(xml, &xmlPtr, MAX_FILE) < 0)
|
||||
goto fail;
|
||||
|
||||
if (!(dev = virNodeDeviceDefParseString(NULL, xmlData, EXISTING_DEVICE)))
|
||||
if (!(dev = virNodeDeviceDefParseString(xmlData, EXISTING_DEVICE)))
|
||||
goto fail;
|
||||
|
||||
if (!(actual = virNodeDeviceDefFormat(NULL, dev)))
|
||||
if (!(actual = virNodeDeviceDefFormat(dev)))
|
||||
goto fail;
|
||||
|
||||
if (STRNEQ(xmlData, actual)) {
|
||||
|
||||
Reference in New Issue
Block a user