mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-14 16:45:20 +00:00
virDomainDeviceGetInfo: Make argument const
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
9e9fc9ea10
commit
7a8694e5f3
@ -4171,7 +4171,7 @@ virDomainObjGetOneDef(virDomainObj *vm,
|
|||||||
}
|
}
|
||||||
|
|
||||||
virDomainDeviceInfo *
|
virDomainDeviceInfo *
|
||||||
virDomainDeviceGetInfo(virDomainDeviceDef *device)
|
virDomainDeviceGetInfo(const virDomainDeviceDef *device)
|
||||||
{
|
{
|
||||||
switch ((virDomainDeviceType) device->type) {
|
switch ((virDomainDeviceType) device->type) {
|
||||||
case VIR_DOMAIN_DEVICE_DISK:
|
case VIR_DOMAIN_DEVICE_DISK:
|
||||||
|
@ -3340,7 +3340,7 @@ virDomainDeviceDef *virDomainDeviceDefCopy(virDomainDeviceDef *src,
|
|||||||
const virDomainDef *def,
|
const virDomainDef *def,
|
||||||
virDomainXMLOption *xmlopt,
|
virDomainXMLOption *xmlopt,
|
||||||
void *parseOpaque);
|
void *parseOpaque);
|
||||||
virDomainDeviceInfo *virDomainDeviceGetInfo(virDomainDeviceDef *device);
|
virDomainDeviceInfo *virDomainDeviceGetInfo(const virDomainDeviceDef *device);
|
||||||
void virDomainDeviceSetData(virDomainDeviceDef *device,
|
void virDomainDeviceSetData(virDomainDeviceDef *device,
|
||||||
void *devicedata);
|
void *devicedata);
|
||||||
void virDomainTPMDefFree(virDomainTPMDef *def);
|
void virDomainTPMDefFree(virDomainTPMDef *def);
|
||||||
|
@ -1345,7 +1345,7 @@ qemuValidateDomainDeviceDefAddress(const virDomainDeviceDef *dev,
|
|||||||
{
|
{
|
||||||
virDomainDeviceInfo *info;
|
virDomainDeviceInfo *info;
|
||||||
|
|
||||||
if (!(info = virDomainDeviceGetInfo((virDomainDeviceDef *)dev)))
|
if (!(info = virDomainDeviceGetInfo(dev)))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
switch ((virDomainDeviceAddressType) info->type) {
|
switch ((virDomainDeviceAddressType) info->type) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user