mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
conf: remove 'bootHash' from the post-parse infrastructure
As the function signature of virDomainDefPostParseInternal does not differ from virDomainDefPostParse now, the wrapper can be dropped. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
5b75a4a80d
commit
a17b088218
@ -5007,8 +5007,7 @@ virDomainDefBootOrderPostParse(virDomainDefPtr def)
|
||||
|
||||
static int
|
||||
virDomainDefPostParseCommon(virDomainDefPtr def,
|
||||
struct virDomainDefPostParseDeviceIteratorData *data,
|
||||
virHashTablePtr bootHash ATTRIBUTE_UNUSED)
|
||||
struct virDomainDefPostParseDeviceIteratorData *data)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
@ -5116,13 +5115,12 @@ virDomainDefPostParseCheckFailure(virDomainDefPtr def,
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
virDomainDefPostParseInternal(virDomainDefPtr def,
|
||||
virCapsPtr caps,
|
||||
unsigned int parseFlags,
|
||||
virDomainXMLOptionPtr xmlopt,
|
||||
void *parseOpaque,
|
||||
virHashTablePtr bootHash)
|
||||
int
|
||||
virDomainDefPostParse(virDomainDefPtr def,
|
||||
virCapsPtr caps,
|
||||
unsigned int parseFlags,
|
||||
virDomainXMLOptionPtr xmlopt,
|
||||
void *parseOpaque)
|
||||
{
|
||||
int ret = -1;
|
||||
bool localParseOpaque = false;
|
||||
@ -5178,7 +5176,7 @@ virDomainDefPostParseInternal(virDomainDefPtr def,
|
||||
if (virDomainDefPostParseCheckFailure(def, parseFlags, ret) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if ((ret = virDomainDefPostParseCommon(def, &data, bootHash)) < 0)
|
||||
if ((ret = virDomainDefPostParseCommon(def, &data)) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (xmlopt->config.assignAddressesCallback) {
|
||||
@ -5205,18 +5203,6 @@ virDomainDefPostParseInternal(virDomainDefPtr def,
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
virDomainDefPostParse(virDomainDefPtr def,
|
||||
virCapsPtr caps,
|
||||
unsigned int parseFlags,
|
||||
virDomainXMLOptionPtr xmlopt,
|
||||
void *parseOpaque)
|
||||
{
|
||||
return virDomainDefPostParseInternal(def, caps, parseFlags, xmlopt,
|
||||
parseOpaque, NULL);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* virDomainDiskAddressDiskBusCompatibility:
|
||||
* @bus: disk bus type
|
||||
@ -20560,8 +20546,7 @@ virDomainDefParseXML(xmlDocPtr xml,
|
||||
goto error;
|
||||
|
||||
/* callback to fill driver specific domain aspects */
|
||||
if (virDomainDefPostParseInternal(def, caps, flags, xmlopt, parseOpaque,
|
||||
bootHash) < 0)
|
||||
if (virDomainDefPostParse(def, caps, flags, xmlopt, parseOpaque) < 0)
|
||||
goto error;
|
||||
|
||||
/* valdiate configuration */
|
||||
|
Loading…
Reference in New Issue
Block a user