]> git.proxmox.com Git - mirror_qemu.git/commit
qdev: Reuse DEFINE_PROP in all DEFINE_PROP_* macros
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 11 Dec 2020 22:05:13 +0000 (17:05 -0500)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 18 Dec 2020 20:20:17 +0000 (15:20 -0500)
commit45efa07f0f0cc8b3a6514c9743d29d73693aa8b1
tree849fd2e5ab270c922e911c9986ae2c82ab869497
parentce35e2295ea10caa97e223c1254e345a888e7ed8
qdev: Reuse DEFINE_PROP in all DEFINE_PROP_* macros

Instead of duplicating the code that sets name, info, offset,
and does type checking, make DEFINE_PROP accept a variable number
of arguments and reuse it in all DEFINE_PROP_* macros.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20201211220529.2290218-17-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
include/hw/qdev-properties-system.h
include/hw/qdev-properties.h