qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] qom: add object_property_is_set


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH] qom: add object_property_is_set
Date: Tue, 18 Feb 2014 17:51:35 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Il 18/02/2014 17:46, 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.

I think this needs to go together with the use, so that I can understand what exactly you need.

Is it because the bool property is "bool *" and thus cannot be set to (for example) -1 to indicate the default value?

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]