mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
Remove virConnectPtr arg from virNWFilterDefParse*
None of the virNWFilterDefParse* methods require a virConnectPtr
arg, so just drop it
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit b77b16ce41
)
This commit is contained in:
parent
2a564e421b
commit
73e236cedf
@ -2649,8 +2649,7 @@ cleanup:
|
||||
|
||||
|
||||
static virNWFilterDefPtr
|
||||
virNWFilterDefParse(virConnectPtr conn ATTRIBUTE_UNUSED,
|
||||
const char *xmlStr,
|
||||
virNWFilterDefParse(const char *xmlStr,
|
||||
const char *filename) {
|
||||
virNWFilterDefPtr def = NULL;
|
||||
xmlDocPtr xml;
|
||||
@ -2665,18 +2664,16 @@ virNWFilterDefParse(virConnectPtr conn ATTRIBUTE_UNUSED,
|
||||
|
||||
|
||||
virNWFilterDefPtr
|
||||
virNWFilterDefParseString(virConnectPtr conn,
|
||||
const char *xmlStr)
|
||||
virNWFilterDefParseString(const char *xmlStr)
|
||||
{
|
||||
return virNWFilterDefParse(conn, xmlStr, NULL);
|
||||
return virNWFilterDefParse(xmlStr, NULL);
|
||||
}
|
||||
|
||||
|
||||
virNWFilterDefPtr
|
||||
virNWFilterDefParseFile(virConnectPtr conn,
|
||||
const char *filename)
|
||||
virNWFilterDefParseFile(const char *filename)
|
||||
{
|
||||
return virNWFilterDefParse(conn, NULL, filename);
|
||||
return virNWFilterDefParse(NULL, filename);
|
||||
}
|
||||
|
||||
|
||||
@ -3074,7 +3071,7 @@ virNWFilterObjLoad(virConnectPtr conn,
|
||||
virNWFilterDefPtr def;
|
||||
virNWFilterObjPtr nwfilter;
|
||||
|
||||
if (!(def = virNWFilterDefParseFile(conn, path))) {
|
||||
if (!(def = virNWFilterDefParseFile(path))) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -714,10 +714,8 @@ int virNWFilterLoadAllConfigs(virConnectPtr conn,
|
||||
char *virNWFilterConfigFile(const char *dir,
|
||||
const char *name);
|
||||
|
||||
virNWFilterDefPtr virNWFilterDefParseString(virConnectPtr conn,
|
||||
const char *xml);
|
||||
virNWFilterDefPtr virNWFilterDefParseFile(virConnectPtr conn,
|
||||
const char *filename);
|
||||
virNWFilterDefPtr virNWFilterDefParseString(const char *xml);
|
||||
virNWFilterDefPtr virNWFilterDefParseFile(const char *filename);
|
||||
|
||||
void virNWFilterObjLock(virNWFilterObjPtr obj);
|
||||
void virNWFilterObjUnlock(virNWFilterObjPtr obj);
|
||||
|
@ -540,7 +540,7 @@ nwfilterDefine(virConnectPtr conn,
|
||||
nwfilterDriverLock(driver);
|
||||
virNWFilterCallbackDriversLock();
|
||||
|
||||
if (!(def = virNWFilterDefParseString(conn, xml)))
|
||||
if (!(def = virNWFilterDefParseString(xml)))
|
||||
goto cleanup;
|
||||
|
||||
if (!(nwfilter = virNWFilterObjAssignDef(conn, &driver->nwfilters, def)))
|
||||
|
@ -33,7 +33,7 @@ testCompareXMLToXMLFiles(const char *inxml, const char *outxml,
|
||||
|
||||
virResetLastError();
|
||||
|
||||
if (!(dev = virNWFilterDefParseString(NULL, inXmlData))) {
|
||||
if (!(dev = virNWFilterDefParseString(inXmlData))) {
|
||||
if (expect_error) {
|
||||
virResetLastError();
|
||||
goto done;
|
||||
|
Loading…
Reference in New Issue
Block a user