diff options
| author | Marc-André Lureau | 2018-12-01 22:23:27 +0100 |
|---|---|---|
| committer | Marc-André Lureau | 2019-01-07 13:18:42 +0100 |
| commit | 1c3994f6d2afa1ced3058aa707d43e44ca96cfc8 (patch) | |
| tree | 706a7e957773eb16dcb460252b50acec28ab14a7 /include | |
| parent | compat: remove remaining PC_COMPAT macros (diff) | |
| download | qemu-1c3994f6d2afa1ced3058aa707d43e44ca96cfc8.tar.gz qemu-1c3994f6d2afa1ced3058aa707d43e44ca96cfc8.tar.xz qemu-1c3994f6d2afa1ced3058aa707d43e44ca96cfc8.zip | |
qdev: make a separate helper function to apply compat properties
This will allow to apply compat properties on other objects than QDev easily.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/qdev-core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h index 84e612f473..5989fb6565 100644 --- a/include/hw/qdev-core.h +++ b/include/hw/qdev-core.h @@ -422,6 +422,8 @@ const char *qdev_fw_name(DeviceState *dev); Object *qdev_get_machine(void); +void object_apply_compat_props(Object *obj); + /* FIXME: make this a link<> */ void qdev_set_parent_bus(DeviceState *dev, BusState *bus); |
