Received: from eggs.gnu.org ([2001:4830:134:3::10]:57230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boTK2-0005uL-MY for qemu-devel@nongnu.org; Mon, 26 Sep 2016 06:39:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boTJy-00061U-OX for qemu-devel@nongnu.org; Mon, 26 Sep 2016 06:39:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boTJy-00061I-Ib for qemu-devel@nongnu.org; Mon, 26 Sep 2016 06:39:38 -0400 References: <20160926101627.14296-1-lma@suse.com> From: Paolo Bonzini Message-ID: Date: Mon, 26 Sep 2016 12:39:33 +0200 MIME-Version: 1.0 In-Reply-To: <20160926101627.14296-1-lma@suse.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 0/3] object: Add 'help' option for all available backends and properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Lin Ma , qemu-devel@nongnu.org Cc: afaerber@suse.de, armbru@redhat.com, berrange@redhat.com On 26/09/2016 12:16, Lin Ma wrote: > Print available object backend types and the relevant properties. > > V2->v3: > * make type user-creatable abstract. > * auto generate enum value strings during qemu configuration.(Borrowwed Daniel's code) > * save the generated enum value strings into member description of ObjectProperty. Frankly, I don't think this is useful. At some point you need to look at some bigger manual than just the program help. However, emitting the description of the property is useful. Paolo > * drop the judgement logic of whether a property has an enumeration type anymore, > output member description of ObjectProperty directly. > * at least, user_creatable_help_func should be put after > 'object_property_add_child(object_get_root(), "machine",OBJECT(current_machine), ...)', > because host_memory_backend_init needs to access an instance of type machine.