summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorEduardo Habkost2020-12-11 23:05:04 +0100
committerEduardo Habkost2020-12-15 16:02:07 +0100
commit40ea00b06671f888a6d7afab95335af8ced34d77 (patch)
treebeb3ae074ca882cb2c7331912aac83ca8b63fd28 /include/hw
parentqdev: Don't use dev->id on set_size32() error message (diff)
downloadqemu-40ea00b06671f888a6d7afab95335af8ced34d77.tar.gz
qemu-40ea00b06671f888a6d7afab95335af8ced34d77.tar.xz
qemu-40ea00b06671f888a6d7afab95335af8ced34d77.zip
qdev: Make PropertyInfo.print method get Object* argument
Make the code more generic and not specific to TYPE_DEVICE. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20201211220529.2290218-8-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/qdev-properties.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/qdev-properties.h b/include/hw/qdev-properties.h
index db7ce51dd5..0ea822e6a7 100644
--- a/include/hw/qdev-properties.h
+++ b/include/hw/qdev-properties.h
@@ -32,7 +32,7 @@ struct PropertyInfo {
const char *name;
const char *description;
const QEnumLookup *enum_table;
- int (*print)(DeviceState *dev, Property *prop, char *dest, size_t len);
+ int (*print)(Object *obj, Property *prop, char *dest, size_t len);
void (*set_default_value)(ObjectProperty *op, const Property *prop);
void (*create)(ObjectClass *oc, Property *prop);
ObjectPropertyAccessor *get;