qdev/prop: macros for creating typechecked properties.
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 3 Aug 2009 15:35:17 +0000 (17:35 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 10 Aug 2009 18:05:48 +0000 (13:05 -0500)
commitcf12b95bf5a2f30b37c4b91011fb6a9ab70c920d
treece27df4da953e74884a6d87becd3ba38a9d0aecd
parent93c8cfd9e67a62711b86f4c93747566885eb7928
qdev/prop: macros for creating typechecked properties.

There are DEFINE_PROP_$TYPE("name", struct, field, default) macros for
each property type.  These macros link the qdev_prop_$name struct to the
type used by that property.  typeof(struct->field) is verifyed to be the
correct one for the given property.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
hw/qdev-addr.h
hw/qdev.h