mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
conf: rename virDomain*PostParseInternal to virDomain*PostParseCommon
These functions contain the post-parse steps common for all drivers. Rename it to use the 'Common' prefix, instead of the vagueness of 'Internal', leaving 'Internal' available for other vague uses.
This commit is contained in:
parent
1e4cc18890
commit
c4480eef08
@ -4367,7 +4367,7 @@ virDomainCheckVirtioOptions(virDomainVirtioOptionsPtr virtio)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
virDomainDeviceDefPostParseInternal(virDomainDeviceDefPtr dev,
|
virDomainDeviceDefPostParseCommon(virDomainDeviceDefPtr dev,
|
||||||
const virDomainDef *def,
|
const virDomainDef *def,
|
||||||
virCapsPtr caps ATTRIBUTE_UNUSED,
|
virCapsPtr caps ATTRIBUTE_UNUSED,
|
||||||
unsigned int parseFlags ATTRIBUTE_UNUSED,
|
unsigned int parseFlags ATTRIBUTE_UNUSED,
|
||||||
@ -4667,7 +4667,7 @@ virDomainDeviceDefPostParse(virDomainDeviceDefPtr dev,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ret = virDomainDeviceDefPostParseInternal(dev, def, caps, flags, xmlopt)) < 0)
|
if ((ret = virDomainDeviceDefPostParseCommon(dev, def, caps, flags, xmlopt)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (virDomainDeviceDefPostParseCheckFeatures(dev, xmlopt) < 0)
|
if (virDomainDeviceDefPostParseCheckFeatures(dev, xmlopt) < 0)
|
||||||
@ -4783,7 +4783,7 @@ virDomainDefPostParseCPU(virDomainDefPtr def)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
virDomainDefPostParseInternal(virDomainDefPtr def,
|
virDomainDefPostParseCommon(virDomainDefPtr def,
|
||||||
struct virDomainDefPostParseDeviceIteratorData *data)
|
struct virDomainDefPostParseDeviceIteratorData *data)
|
||||||
{
|
{
|
||||||
/* verify init path for container based domains */
|
/* verify init path for container based domains */
|
||||||
@ -4917,7 +4917,7 @@ virDomainDefPostParse(virDomainDefPtr def,
|
|||||||
if (virDomainDefPostParseCheckFailure(def, parseFlags, ret) < 0)
|
if (virDomainDefPostParseCheckFailure(def, parseFlags, ret) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if ((ret = virDomainDefPostParseInternal(def, &data)) < 0)
|
if ((ret = virDomainDefPostParseCommon(def, &data)) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (xmlopt->config.assignAddressesCallback) {
|
if (xmlopt->config.assignAddressesCallback) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user