[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RfC PATCH 0/2] qdev: property macros.
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [RfC PATCH 0/2] qdev: property macros. |
Date: |
Tue, 28 Jul 2009 12:24:22 +0200 |
Hi folks,
Presenting a new version of my patch to continue the discussion how
the macros should look like ;)
There are DEFINE_PROP_$TYPE("name", struct, field, default) macros for
each property type, thus no gcc-powered automagic selection.
typeof(struct->field) is verifyed to be the correct one for the given
property though (new in this version). This uses gcc extentions, but
as it is a check only it could easily be turned off for non-gcc
compilers if needed.
Comments?
cheers,
Gerd
- [Qemu-devel] [RfC PATCH 0/2] qdev: property macros.,
Gerd Hoffmann <=