Re: [Qemu-devel] [PATCH RFC V2 7/9] qom: add object_property_is_set

2014-03-03 Thread Marcel Apfelbaum
On Mon, 2014-03-03 at 11:13 +0100, Paolo Bonzini wrote: > Il 02/03/2014 14:07, Marcel Apfelbaum ha scritto: > > Sometimes is not enough to get property's value, > > but it is needed to know if the value was actually set. > > > > This is especially useful when querying bool properties > > and havin

Re: [Qemu-devel] [PATCH RFC V2 7/9] qom: add object_property_is_set

2014-03-03 Thread Paolo Bonzini
Il 02/03/2014 14:07, Marcel Apfelbaum ha scritto: Sometimes is not enough to get property's value, but it is needed to know if the value was actually set. This is especially useful when querying bool properties and having different defaults on different scenarios. Signed-off-by: Marcel Apfelbau

[Qemu-devel] [PATCH RFC V2 7/9] qom: add object_property_is_set

2014-03-02 Thread Marcel Apfelbaum
Sometimes is not enough to get property's value, but it is needed to know if the value was actually set. This is especially useful when querying bool properties and having different defaults on different scenarios. Signed-off-by: Marcel Apfelbaum --- include/qom/object.h | 11 +++ qom/o