mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-24 13:35:17 +00:00
domain_conf.c: rename virDomainDeviceInfoIterateInternal()
Next patch will move virDomainDefValidateAliases() to domain_validate.c, which uses virDomainDeviceInfoIterateInternal(), meaning that this function will be made public. Rename it now to remove the 'Internal' of its name. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
f774ea1a96
commit
b47b87e873
@ -4223,7 +4223,7 @@ enum {
|
|||||||
* behaviour can be altered with virDomainDeviceIterateFlags.
|
* behaviour can be altered with virDomainDeviceIterateFlags.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
virDomainDeviceInfoIterateInternal(virDomainDefPtr def,
|
virDomainDeviceInfoIterateFlags(virDomainDefPtr def,
|
||||||
virDomainDeviceInfoCallback cb,
|
virDomainDeviceInfoCallback cb,
|
||||||
unsigned int iteratorFlags,
|
unsigned int iteratorFlags,
|
||||||
void *opaque)
|
void *opaque)
|
||||||
@ -4452,7 +4452,7 @@ virDomainDeviceInfoIterate(virDomainDefPtr def,
|
|||||||
virDomainDeviceInfoCallback cb,
|
virDomainDeviceInfoCallback cb,
|
||||||
void *opaque)
|
void *opaque)
|
||||||
{
|
{
|
||||||
return virDomainDeviceInfoIterateInternal(def, cb, 0, opaque);
|
return virDomainDeviceInfoIterateFlags(def, cb, 0, opaque);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -4460,7 +4460,7 @@ bool
|
|||||||
virDomainDefHasDeviceAddress(virDomainDefPtr def,
|
virDomainDefHasDeviceAddress(virDomainDefPtr def,
|
||||||
virDomainDeviceInfoPtr info)
|
virDomainDeviceInfoPtr info)
|
||||||
{
|
{
|
||||||
if (virDomainDeviceInfoIterateInternal(def,
|
if (virDomainDeviceInfoIterateFlags(def,
|
||||||
virDomainDefHasDeviceAddressIterator,
|
virDomainDefHasDeviceAddressIterator,
|
||||||
DOMAIN_DEVICE_ITERATE_ALL_CONSOLES,
|
DOMAIN_DEVICE_ITERATE_ALL_CONSOLES,
|
||||||
info) < 0)
|
info) < 0)
|
||||||
@ -6007,7 +6007,7 @@ virDomainDefPostParse(virDomainDefPtr def,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* iterate the devices */
|
/* iterate the devices */
|
||||||
ret = virDomainDeviceInfoIterateInternal(def,
|
ret = virDomainDeviceInfoIterateFlags(def,
|
||||||
virDomainDefPostParseDeviceIterator,
|
virDomainDefPostParseDeviceIterator,
|
||||||
DOMAIN_DEVICE_ITERATE_ALL_CONSOLES |
|
DOMAIN_DEVICE_ITERATE_ALL_CONSOLES |
|
||||||
DOMAIN_DEVICE_ITERATE_MISSING_INFO,
|
DOMAIN_DEVICE_ITERATE_MISSING_INFO,
|
||||||
@ -6496,7 +6496,7 @@ virDomainDefValidateAliases(const virDomainDef *def,
|
|||||||
if (!(data.aliases = virHashNew(NULL)))
|
if (!(data.aliases = virHashNew(NULL)))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (virDomainDeviceInfoIterateInternal((virDomainDefPtr) def,
|
if (virDomainDeviceInfoIterateFlags((virDomainDefPtr) def,
|
||||||
virDomainDeviceDefValidateAliasesIterator,
|
virDomainDeviceDefValidateAliasesIterator,
|
||||||
DOMAIN_DEVICE_ITERATE_ALL_CONSOLES,
|
DOMAIN_DEVICE_ITERATE_ALL_CONSOLES,
|
||||||
&data) < 0)
|
&data) < 0)
|
||||||
@ -6874,7 +6874,7 @@ virDomainDefValidate(virDomainDefPtr def,
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* iterate the devices */
|
/* iterate the devices */
|
||||||
if (virDomainDeviceInfoIterateInternal(def,
|
if (virDomainDeviceInfoIterateFlags(def,
|
||||||
virDomainDefValidateDeviceIterator,
|
virDomainDefValidateDeviceIterator,
|
||||||
(DOMAIN_DEVICE_ITERATE_ALL_CONSOLES |
|
(DOMAIN_DEVICE_ITERATE_ALL_CONSOLES |
|
||||||
DOMAIN_DEVICE_ITERATE_MISSING_INFO),
|
DOMAIN_DEVICE_ITERATE_MISSING_INFO),
|
||||||
@ -30846,7 +30846,7 @@ virDomainDefFindDevice(virDomainDefPtr def,
|
|||||||
virDomainDefFindDeviceCallbackData data = { devAlias, dev };
|
virDomainDefFindDeviceCallbackData data = { devAlias, dev };
|
||||||
|
|
||||||
dev->type = VIR_DOMAIN_DEVICE_NONE;
|
dev->type = VIR_DOMAIN_DEVICE_NONE;
|
||||||
virDomainDeviceInfoIterateInternal(def, virDomainDefFindDeviceCallback,
|
virDomainDeviceInfoIterateFlags(def, virDomainDefFindDeviceCallback,
|
||||||
DOMAIN_DEVICE_ITERATE_ALL_CONSOLES,
|
DOMAIN_DEVICE_ITERATE_ALL_CONSOLES,
|
||||||
&data);
|
&data);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user