mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 08:05:16 +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
src
@ -4171,7 +4171,7 @@ virDomainObjGetOneDef(virDomainObj *vm,
|
||||
}
|
||||
|
||||
virDomainDeviceInfo *
|
||||
virDomainDeviceGetInfo(virDomainDeviceDef *device)
|
||||
virDomainDeviceGetInfo(const virDomainDeviceDef *device)
|
||||
{
|
||||
switch ((virDomainDeviceType) device->type) {
|
||||
case VIR_DOMAIN_DEVICE_DISK:
|
||||
|
@ -3340,7 +3340,7 @@ virDomainDeviceDef *virDomainDeviceDefCopy(virDomainDeviceDef *src,
|
||||
const virDomainDef *def,
|
||||
virDomainXMLOption *xmlopt,
|
||||
void *parseOpaque);
|
||||
virDomainDeviceInfo *virDomainDeviceGetInfo(virDomainDeviceDef *device);
|
||||
virDomainDeviceInfo *virDomainDeviceGetInfo(const virDomainDeviceDef *device);
|
||||
void virDomainDeviceSetData(virDomainDeviceDef *device,
|
||||
void *devicedata);
|
||||
void virDomainTPMDefFree(virDomainTPMDef *def);
|
||||
|
@ -1345,7 +1345,7 @@ qemuValidateDomainDeviceDefAddress(const virDomainDeviceDef *dev,
|
||||
{
|
||||
virDomainDeviceInfo *info;
|
||||
|
||||
if (!(info = virDomainDeviceGetInfo((virDomainDeviceDef *)dev)))
|
||||
if (!(info = virDomainDeviceGetInfo(dev)))
|
||||
return 0;
|
||||
|
||||
switch ((virDomainDeviceAddressType) info->type) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user