mirror of
https://gitlab.com/qemu-project/qemu
synced 2025-04-29 09:22:36 +08: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
@ -2486,7 +2486,7 @@ typedef struct MegasasInfo {
|
||||
const VMStateDescription *vmsd;
|
||||
const Property *props;
|
||||
size_t props_count;
|
||||
InterfaceInfo *interfaces;
|
||||
const InterfaceInfo *interfaces;
|
||||
} MegasasInfo;
|
||||
|
||||
static struct MegasasInfo megasas_devices[] = {
|
||||
|
@ -256,7 +256,7 @@ typedef struct VirtioPCIDeviceTypeInfo {
|
||||
void (*instance_init)(Object *obj);
|
||||
void (*instance_finalize)(Object *obj);
|
||||
void (*class_init)(ObjectClass *klass, const void *data);
|
||||
InterfaceInfo *interfaces;
|
||||
const InterfaceInfo *interfaces;
|
||||
} VirtioPCIDeviceTypeInfo;
|
||||
|
||||
/* Register virtio-pci type(s). @t must be static. */
|
||||
|
@ -490,7 +490,7 @@ struct TypeInfo
|
||||
void (*class_base_init)(ObjectClass *klass, const void *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_base_init: Self::CLASS_BASE_INIT,
|
||||
class_data: core::ptr::null(),
|
||||
interfaces: core::ptr::null_mut(),
|
||||
interfaces: core::ptr::null(),
|
||||
};
|
||||
|
||||
// methods on ObjectClass
|
||||
|
Loading…
x
Reference in New Issue
Block a user