From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XobPf-0007xo-M6 for qemu-devel@nongnu.org; Wed, 12 Nov 2014 12:09:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XobPa-0004y1-G4 for qemu-devel@nongnu.org; Wed, 12 Nov 2014 12:08:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58808) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XobPa-0004xF-8A for qemu-devel@nongnu.org; Wed, 12 Nov 2014 12:08:54 -0500 From: Markus Armbruster Date: Wed, 12 Nov 2014 18:08:46 +0100 Message-Id: <1415812130-2592-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] qom: Replace "automatic arrayification" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, peter.crosthwaite@xilinx.com, afaerber@suse.de "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(-) -- 1.9.3