Received: from eggs.gnu.org ([140.186.70.92]:49403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUgUR-0005na-K1 for qemu-devel@nongnu.org; Thu, 09 Jun 2011 10:45:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUgUQ-00020k-30 for qemu-devel@nongnu.org; Thu, 09 Jun 2011 10:45:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUgUP-00020W-K0 for qemu-devel@nongnu.org; Thu, 09 Jun 2011 10:45:41 -0400 From: Markus Armbruster References: <4DEF2F25.5070104@redhat.com> <1307559319-16183-1-git-send-email-andreas.faerber@web.de> <1307559319-16183-2-git-send-email-andreas.faerber@web.de> Date: Thu, 09 Jun 2011 16:45:38 +0200 In-Reply-To: <1307559319-16183-2-git-send-email-andreas.faerber@web.de> ("Andreas =?utf-8?Q?F=C3=A4rber=22's?= message of "Wed, 8 Jun 2011 20:55:08 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v4 01/12] qdev: Add support for property type bool List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?utf-8?Q?F=C3=A4rber?= Cc: Juan Quintela , hpoussin@reactos.org, qemu-devel@nongnu.org, kraxel@redhat.com Andreas F=C3=A4rber writes: > VMState supports the type bool but qdev instead supports bit, backed by > uint32_t. Therefore let's add DEFINE_PROP_BOOL() and qdev_prop_set_bool(). > > Since, e.g., enabled=3Don does not look nice, parse/print "yes" and "no". The difference between bool and bit properties is implementation detail. Using "on/off" for one, and "yes/no" for the other is a gratuitously inconsistent user interface. For what it's worth, "on" doesn't look nice for many bit properties either. Options: 1. Live with the inconsistent user interface 1. Stick to on/off ugly or not 3. Switch to yes/no and deprecate on/off Opinions?