From: Ian Campbell Subject: Re: [PATCH V3 03/10] libxl_json: Replace JSON_TRUE/FALSE by JSON_BOOL. Date: Fri, 5 Oct 2012 14:10:49 +0100 Message-ID: <1349442649.20946.89.camel@zakaz.uk.xensource.com> References: <1348683325-12367-1-git-send-email-anthony.perard@citrix.com> <1348683325-12367-4-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1348683325-12367-4-git-send-email-anthony.perard@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Anthony PERARD Cc: Ian Jackson , Xen Devel List-Id: xen-devel@lists.xenproject.org On Wed, 2012-09-26 at 19:15 +0100, Anthony PERARD wrote: > Those two JSON_TRUE and JSON_FALSE were types of node. But it's better to have > a unique JSON_BOOL type. > > Signed-off-by: Anthony PERARD Acked-by: Ian Campbell Is it valid to call libxl__json_object_get_bool (and all the similar functions) with a wrongly typed thing? The other types seem to return NULL as an error indicator. The bool case just returns false. Just wondering if maybe there ought to be an assert in each of those? Ian.