Skip to content

qom: Replace "automatic arrayification"

Markus Armbruster qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4qom: New object_gen_new_property_name()include/qom/object.h qom/object.c+22 -00 replies
2/4memory: Use object_gen_new_property_name() instead of "arrayification"memory.c+3 -30 replies
3/4qdev: Use object_gen_new_property_name() instead of "arrayification"hw/core/qdev.c+12 -60 replies
4/4Revert "qom: Add automatic arrayification to object_property_add()"qom/object.c+0 -215 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchAndreas Färber
1/4
2/4
3/4
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] qom: Replace "automatic arrayification"

"Automatic arrayification" is a convenience feature for creating a bunch of properties with a common type, accessors and so forth, named in a peculiar way: "foo[0]", "foo[1]", ... It's implemented by making property names ending with "[*]" magical. The magic is uncalled for, as names can be just as well generated separately from adding properties.

See also
https://lists.nongnu.org/archive/html/qemu-devel/2014-10/msg00623.html

Markus Armbruster (4):
qom: New object_gen_new_property_name()
memory: Use object_gen_new_property_name() instead of "arrayification"
qdev: Use object_gen_new_property_name() instead of "arrayification" Revert "qom: Add automatic arrayification to object_property_add()"

 hw/core/qdev.c       | 18 ++++++++++++------
 include/qom/object.h |  8 ++++++++
 memory.c             |  6 +++---
 qom/object.c         | 35 ++++++++++++++---------------------
 4 files changed, 37 insertions(+), 30 deletions(-)
Signature · 1 line
1.9.3