mirror of
https://github.com/mii443/qemu.git
synced 2025-12-12 05:18:37 +00:00
qdev: rename DeviceClass.props
Ensure that conflicts in the future will cause a syntax error. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -100,7 +100,12 @@ typedef struct DeviceClass {
|
||||
DECLARE_BITMAP(categories, DEVICE_CATEGORY_MAX);
|
||||
const char *fw_name;
|
||||
const char *desc;
|
||||
Property *props;
|
||||
|
||||
/*
|
||||
* The underscore at the end ensures a compile-time error if someone
|
||||
* assigns to dc->props instead of using device_class_set_props.
|
||||
*/
|
||||
Property *props_;
|
||||
|
||||
/*
|
||||
* Can this device be instantiated with -device / device_add?
|
||||
|
||||
Reference in New Issue
Block a user