RFC qdev: property macros.
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | qdev/pci: make PCIDevice->devfn uint32_thw/ | +1 | 0 replies | |
| 2/2 | qdev/prop: macros for creating typechecked properties.hw/ hw/ hw/ | +48 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [RfC PATCH 0/2] qdev: property macros.
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