mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
qom: Constify TypeInfo::interfaces
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20250424194905.82506-6-philmd@linaro.org>
This commit is contained in:
parent
b282b859cf
commit
231bf6dda1
4 changed files with 4 additions and 4 deletions
|
@ -2486,7 +2486,7 @@ typedef struct MegasasInfo {
|
||||||
const VMStateDescription *vmsd;
|
const VMStateDescription *vmsd;
|
||||||
const Property *props;
|
const Property *props;
|
||||||
size_t props_count;
|
size_t props_count;
|
||||||
InterfaceInfo *interfaces;
|
const InterfaceInfo *interfaces;
|
||||||
} MegasasInfo;
|
} MegasasInfo;
|
||||||
|
|
||||||
static struct MegasasInfo megasas_devices[] = {
|
static struct MegasasInfo megasas_devices[] = {
|
||||||
|
|
|
@ -256,7 +256,7 @@ typedef struct VirtioPCIDeviceTypeInfo {
|
||||||
void (*instance_init)(Object *obj);
|
void (*instance_init)(Object *obj);
|
||||||
void (*instance_finalize)(Object *obj);
|
void (*instance_finalize)(Object *obj);
|
||||||
void (*class_init)(ObjectClass *klass, const void *data);
|
void (*class_init)(ObjectClass *klass, const void *data);
|
||||||
InterfaceInfo *interfaces;
|
const InterfaceInfo *interfaces;
|
||||||
} VirtioPCIDeviceTypeInfo;
|
} VirtioPCIDeviceTypeInfo;
|
||||||
|
|
||||||
/* Register virtio-pci type(s). @t must be static. */
|
/* Register virtio-pci type(s). @t must be static. */
|
||||||
|
|
|
@ -490,7 +490,7 @@ struct TypeInfo
|
||||||
void (*class_base_init)(ObjectClass *klass, const void *data);
|
void (*class_base_init)(ObjectClass *klass, const void *data);
|
||||||
const void *class_data;
|
const void *class_data;
|
||||||
|
|
||||||
InterfaceInfo *interfaces;
|
const InterfaceInfo *interfaces;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -514,7 +514,7 @@ pub trait ObjectImpl: ObjectType + IsA<Object> {
|
||||||
class_init: Some(rust_class_init::<Self>),
|
class_init: Some(rust_class_init::<Self>),
|
||||||
class_base_init: Self::CLASS_BASE_INIT,
|
class_base_init: Self::CLASS_BASE_INIT,
|
||||||
class_data: core::ptr::null(),
|
class_data: core::ptr::null(),
|
||||||
interfaces: core::ptr::null_mut(),
|
interfaces: core::ptr::null(),
|
||||||
};
|
};
|
||||||
|
|
||||||
// methods on ObjectClass
|
// methods on ObjectClass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue