From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56716) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFntd-0004jJ-K4 for qemu-devel@nongnu.org; Tue, 18 Feb 2014 11:51:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFntX-0006Rx-LX for qemu-devel@nongnu.org; Tue, 18 Feb 2014 11:51:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFntX-0006Rr-DP for qemu-devel@nongnu.org; Tue, 18 Feb 2014 11:51:43 -0500 Message-ID: <53038F97.6070000@redhat.com> Date: Tue, 18 Feb 2014 17:51:35 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1392741987-6356-1-git-send-email-marcel.a@redhat.com> In-Reply-To: <1392741987-6356-1-git-send-email-marcel.a@redhat.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qom: add object_property_is_set List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcel Apfelbaum , qemu-devel@nongnu.org Cc: imammedo@redhat.com, peter.crosthwaite@xilinx.com, afaerber@suse.de, anthony@codemonkey.ws, mst@redhat.com 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