[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 07/25] qdev: use object_property_print in info q
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 07/25] qdev: use object_property_print in info qtree |
Date: |
Tue, 03 Apr 2012 15:05:45 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 |
Il 03/04/2012 14:28, Jan Kiszka ha scritto:
>> > if (object_property_get_type(OBJECT(dev), legacy_name, NULL)) {
>> > value = object_property_get_str(OBJECT(dev), legacy_name,
>> > &err);
> This is not a criticism on this patch, but I'd like to underline that
> the line above only works because legacy props also define print
^^^^
You mean always, I guess.
> But this statement above is still inconsistent. We should either
> assert(print && parse) or handle their non-existence properly.
Yes, asserting that print/parse are always present in pairs (if at all)
would be good.
Paolo
- Re: [Qemu-devel] [PATCH 02/25] qom: add object_child_foreach, (continued)
- [Qemu-devel] [PATCH 03/25] qom: add class_base_init, Paolo Bonzini, 2012/04/03
- [Qemu-devel] [PATCH 05/25] qom: push type up to Object, Paolo Bonzini, 2012/04/03
- [Qemu-devel] [PATCH 06/25] qdev: fix -device foo,?, Paolo Bonzini, 2012/04/03
- [Qemu-devel] [PATCH 07/25] qdev: use object_property_print in info qtree, Paolo Bonzini, 2012/04/03
- [Qemu-devel] [PATCH 08/25] qdev: remove qdev_prop_set_defaults, Paolo Bonzini, 2012/04/03
- [Qemu-devel] [PATCH 09/25] qdev: move bus properties to a separate global, Paolo Bonzini, 2012/04/03
- [Qemu-devel] [PATCH 10/25] qdev: do not propagate properties to subclasses, Paolo Bonzini, 2012/04/03
- [Qemu-devel] [PATCH 11/25] qdev: pick global properties from superclasses, Paolo Bonzini, 2012/04/03
- [Qemu-devel] [PATCH 12/25] qdev: factor setting of global properties, Paolo Bonzini, 2012/04/03
- [Qemu-devel] [PATCH 13/25] qdev: replace bus properties with superclass properties, Paolo Bonzini, 2012/04/03
- [Qemu-devel] [PATCH 14/25] qapi: add Visitor interfaces for uint*_t and int*_t, Paolo Bonzini, 2012/04/03