Rename the original function to virDomainDefPostParseInternal to allow adding arguments that will be only used by the internal version. --- src/conf/domain_conf.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 0315ec6ff..396ace329 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -4856,12 +4856,12 @@ virDomainDefPostParseCheckFailure(virDomainDefPtr def, } -int -virDomainDefPostParse(virDomainDefPtr def, - virCapsPtr caps, - unsigned int parseFlags, - virDomainXMLOptionPtr xmlopt, - void *parseOpaque) +static int +virDomainDefPostParseInternal(virDomainDefPtr def, + virCapsPtr caps, + unsigned int parseFlags, + virDomainXMLOptionPtr xmlopt, + void *parseOpaque) { int ret = -1; bool localParseOpaque = false; @@ -4944,6 +4944,18 @@ virDomainDefPostParse(virDomainDefPtr def, } +int +virDomainDefPostParse(virDomainDefPtr def, + virCapsPtr caps, + unsigned int parseFlags, + virDomainXMLOptionPtr xmlopt, + void *parseOpaque) +{ + return virDomainDefPostParseInternal(def, caps, parseFlags, xmlopt, + parseOpaque); +} + + /** * virDomainDiskAddressDiskBusCompatibility: * @bus: disk bus type -- 2.13.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list