mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 09:53:10 +00:00
Remove virDomainRNGInsert
It was just a useless wrapper around VIR_APPEND_ELEMENT*.
This commit is contained in:
parent
c4111209b8
commit
d8d4b9d957
@ -14039,18 +14039,6 @@ virDomainChrRemove(virDomainDefPtr vmdef,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
|
||||||
virDomainRNGInsert(virDomainDefPtr def,
|
|
||||||
virDomainRNGDefPtr rng,
|
|
||||||
bool inplace)
|
|
||||||
{
|
|
||||||
if (inplace)
|
|
||||||
return VIR_APPEND_ELEMENT_INPLACE(def->rngs, def->nrngs, rng);
|
|
||||||
else
|
|
||||||
return VIR_APPEND_ELEMENT(def->rngs, def->nrngs, rng);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
virDomainRNGFind(virDomainDefPtr def,
|
virDomainRNGFind(virDomainDefPtr def,
|
||||||
virDomainRNGDefPtr rng)
|
virDomainRNGDefPtr rng)
|
||||||
|
@ -2909,9 +2909,6 @@ virDomainChrDefPtr
|
|||||||
virDomainChrRemove(virDomainDefPtr vmdef,
|
virDomainChrRemove(virDomainDefPtr vmdef,
|
||||||
virDomainChrDefPtr chr);
|
virDomainChrDefPtr chr);
|
||||||
|
|
||||||
int virDomainRNGInsert(virDomainDefPtr def,
|
|
||||||
virDomainRNGDefPtr rng,
|
|
||||||
bool inplace);
|
|
||||||
ssize_t virDomainRNGFind(virDomainDefPtr def, virDomainRNGDefPtr rng);
|
ssize_t virDomainRNGFind(virDomainDefPtr def, virDomainRNGDefPtr rng);
|
||||||
virDomainRNGDefPtr virDomainRNGRemove(virDomainDefPtr def, size_t idx);
|
virDomainRNGDefPtr virDomainRNGRemove(virDomainDefPtr def, size_t idx);
|
||||||
|
|
||||||
|
@ -424,7 +424,6 @@ virDomainRedirdevBusTypeToString;
|
|||||||
virDomainRNGBackendTypeToString;
|
virDomainRNGBackendTypeToString;
|
||||||
virDomainRNGDefFree;
|
virDomainRNGDefFree;
|
||||||
virDomainRNGFind;
|
virDomainRNGFind;
|
||||||
virDomainRNGInsert;
|
|
||||||
virDomainRNGModelTypeToString;
|
virDomainRNGModelTypeToString;
|
||||||
virDomainRNGRemove;
|
virDomainRNGRemove;
|
||||||
virDomainRunningReasonTypeFromString;
|
virDomainRunningReasonTypeFromString;
|
||||||
|
@ -7914,7 +7914,7 @@ qemuDomainAttachDeviceConfig(virQEMUCapsPtr qemuCaps,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (virDomainRNGInsert(vmdef, dev->data.rng, false) < 0)
|
if (VIR_APPEND_ELEMENT(vmdef->rngs, vmdef->nrngs, dev->data.rng) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
dev->data.rng = NULL;
|
dev->data.rng = NULL;
|
||||||
|
|
||||||
|
@ -1666,8 +1666,7 @@ qemuDomainAttachRNGDevice(virQEMUDriverPtr driver,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (virDomainRNGInsert(vm->def, rng, true) < 0)
|
ignore_value(VIR_APPEND_ELEMENT_INPLACE(vm->def->rngs, vm->def->nrngs, rng));
|
||||||
goto audit;
|
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user