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
d3b7a1096a
commit
3c7a39a2ba
@ -2644,8 +2644,7 @@ cleanup:
|
||||
|
||||
|
||||
static virNWFilterDefPtr
|
||||
virNWFilterDefParse(virConnectPtr conn ATTRIBUTE_UNUSED,
|
||||
const char *xmlStr,
|
||||
virNWFilterDefParse(const char *xmlStr,
|
||||
const char *filename) {
|
||||
virNWFilterDefPtr def = NULL;
|
||||
xmlDocPtr xml;
|
||||
@ -2660,18 +2659,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);
|
||||
}
|
||||
|
||||
|
||||
@ -3069,7 +3066,7 @@ virNWFilterObjLoad(virConnectPtr conn,
|
||||
virNWFilterDefPtr def;
|
||||
virNWFilterObjPtr nwfilter;
|
||||
|
||||
if (!(def = virNWFilterDefParseFile(conn, path))) {
|
||||
if (!(def = virNWFilterDefParseFile(path))) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -713,10 +713,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);
|
||||
|
@ -551,7 +551,7 @@ nwfilterDefineXML(virConnectPtr conn,
|
||||
nwfilterDriverLock(driver);
|
||||
virNWFilterCallbackDriversLock();
|
||||
|
||||
if (!(def = virNWFilterDefParseString(conn, xml)))
|
||||
if (!(def = virNWFilterDefParseString(xml)))
|
||||
goto cleanup;
|
||||
|
||||
if (virNWFilterDefineXMLEnsureACL(conn, def) < 0)
|
||||
|
@ -34,7 +34,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