From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ItRF4-0005ox-7Q for qemu-devel@nongnu.org; Sat, 17 Nov 2007 12:14:02 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ItRF2-0005n8-Kj for qemu-devel@nongnu.org; Sat, 17 Nov 2007 12:14:01 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ItRF2-0005ms-Bi for qemu-devel@nongnu.org; Sat, 17 Nov 2007 12:14:00 -0500 Received: from mail.codesourcery.com ([65.74.133.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ItRF1-0006Ql-UU for qemu-devel@nongnu.org; Sat, 17 Nov 2007 12:14:00 -0500 From: Paul Brook Date: Sat, 17 Nov 2007 17:13:48 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200711171713.49528.paul@codesourcery.com> Subject: [Qemu-devel] Breaking up vl.h Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I just applied a patch that breaks up and removes vl.h My strategy (as discussed previously) is to split the contents along functional lines, and hardware split along bus/machine boundaries.. In order to avoid lots of little header files it makes fairly extensive use of opaque structure pointers. This allows e.g. network and display controllers to be prototyped in the same header without requiring all users to include net.h and console.h. It's not perfect, but I'm reasonably happy with how it ended up. There's some scope for splitting things up further, but I tended to err on the size of a few big includes. Paul