Re: [Qemu-devel] [PATCH 5/9] qom: add generic string parsing/printing

2012-02-21 Thread Paolo Bonzini
On 02/21/2012 09:47 PM, Andreas Färber wrote: >> > +void object_property_parse(Object *obj, const char *string, >> > + const char *name, Error **errp) >> > +{ >> > +StringInputVisitor *mi; > Curious: where does mi/mo come from? Cut-and-paste from the version using QMP

Re: [Qemu-devel] [PATCH 5/9] qom: add generic string parsing/printing

2012-02-21 Thread Andreas Färber
Am 09.02.2012 15:31, schrieb Paolo Bonzini: > Add generic property accessors that take a string and parse it > appropriately for the property type. All the magic here is done > by the new string-based visitors. > > Signed-off-by: Paolo Bonzini > --- > include/qemu/object.h | 24 ++

[Qemu-devel] [PATCH 5/9] qom: add generic string parsing/printing

2012-02-09 Thread Paolo Bonzini
Add generic property accessors that take a string and parse it appropriately for the property type. All the magic here is done by the new string-based visitors. Signed-off-by: Paolo Bonzini --- include/qemu/object.h | 24 qom/object.c | 24 +