Received: from [140.186.70.92] (port=35535 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzDoj-0006dw-Ka for qemu-devel@nongnu.org; Mon, 14 Mar 2011 15:52:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzDoZ-000171-Pw for qemu-devel@nongnu.org; Mon, 14 Mar 2011 15:52:28 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:50774) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PzDoZ-00016X-D7 for qemu-devel@nongnu.org; Mon, 14 Mar 2011 15:52:27 -0400 From: =?utf-8?Q?Llu=C3=ADs?= Subject: Re: [Qemu-devel] [RFC] QCFG: a new mechanism to replace QemuOpts and option handling References: <4D7E5507.8010205@codemonkey.ws> Date: Mon, 14 Mar 2011 20:52:21 +0100 In-Reply-To: <4D7E5507.8010205@codemonkey.ws> (Anthony Liguori's message of "Mon, 14 Mar 2011 12:48:55 -0500") Message-ID: <878vwhwkcq.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Anthony Liguori writes: > I've got a spec written up at http://wiki.qemu.org/Features/QCFG. Initial code > is in my QAPI tree. What about moving the documentation to a 'doc' attribute? Thus, instead of the example vnconfig: { 'type': 'VncConfig', 'doc': 'Configuration options for the built-in VNC server.', 'data': {'address': 'str', ...} } Still, it's not clear to me how attribute documentation shoul dbe provided: 'data': {'address': {'type': 'str', 'doc': 'The hostname to bind the VNC server to...'}, ... } Or maybe: 'data': {'address': 'str', 'address.doc': 'The hostname to bind the VNC server to...'}, ... } But as I suppose these documentation comments are automatically processes, this might just prove too verbose for no benefit at all, as introspecting down to the documentation might be already doable with the format on the example. You could also have a 'since' attribute, in case dynamic interface checks are necessary (e.g., the "Since: 0.14.0" in the example). Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth