Received: from eggs.gnu.org ([140.186.70.92]:38197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKaAv-00084r-WB for qemu-devel@nongnu.org; Thu, 12 May 2011 14:00:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKaAN-0007fn-4B for qemu-devel@nongnu.org; Thu, 12 May 2011 13:59:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKaAM-0007eO-LE for qemu-devel@nongnu.org; Thu, 12 May 2011 13:59:14 -0400 From: Markus Armbruster References: <1305023443-8722-1-git-send-email-kraxel@redhat.com> <201105101624.08253.bradh@frogmouth.net> <4DCBA79B.5040608@redhat.com> <4DCBFBFF.7000203@redhat.com> <4DCBFE2F.7040202@codemonkey.ws> <4DCC0981.4070801@codemonkey.ws> Date: Thu, 12 May 2011 19:58:59 +0200 In-Reply-To: <4DCC0981.4070801@codemonkey.ws> (Anthony Liguori's message of "Thu, 12 May 2011 11:23:29 -0500") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] qdev device documentation (Re: [PATCH 0/2] usb-linux: physical port handling.) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: amit.shah@redhat.com, Gerd Hoffmann , Brad Hards , qemu-devel@nongnu.org Anthony Liguori writes: > On 05/12/2011 11:08 AM, Markus Armbruster wrote: >> Anthony Liguori writes: >> >>> On 05/12/2011 10:25 AM, Gerd Hoffmann wrote: >>>> Hi, >>>> >>>>>> What is the status of the qdev documentation patches btw.? >>>>> >>>>> http://lists.gnu.org/archive/html/qemu-devel/2011-02/msg02169.html >>>> >>>> What is the problem with the empty strings btw? >>>> >>>> The only way around I can see is having _DOC and _NODOC versions for all >>>> the property macros, but I'd prefer to not have _NODOC macros in the >>>> tree ... >>> >>> Inline documentation is bad. Our documentation should be >>> centralized. That's the only way to keep it consistent and thorough. >> >> External documentation of code details is bad. Our documentation should >> be next to the code. That's the only way to keep it up-to-date and >> consistent with the code. > > qdev properties are *not* code details. It's a public user interface > that we have to support for every. The fact that they are public user interface doesn't change the fact that they're code at all. They are *both*. > It should be disconnected from the internal implementation. And yes, > the incestuous relationship that exists today is a problem, but it's > one we're going to have to live with. I doubt we'll ever reach consensus on this one. >>> There's no way to easily extract the inline docs in a complete way >>> since some devices are built conditionally. >> >> For each configured target: extract docs of the devices it builds >> Concatenate and discard the duplicates >> >> Yes, that means you don't get docs for devices none of your targets has. >> That's a feature. If you really want docs for all devices, build all >> targets. > > But for things like Spice where the lack of libspice influences > whether the device is available, how do I extract formal documentation > to publish on qemu.org reliably? If no maintainer of QEMU can build with Spice enabled, it got more serious problems than extracting its documentation.