From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44952 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKYEr-0006gi-RF for qemu-devel@nongnu.org; Fri, 04 Jun 2010 10:51:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OKYEn-0001Mu-JA for qemu-devel@nongnu.org; Fri, 04 Jun 2010 10:51:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33869) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKYEn-0001Mn-Aw for qemu-devel@nongnu.org; Fri, 04 Jun 2010 10:51:09 -0400 Message-ID: <4C0912D8.6040207@redhat.com> Date: Fri, 04 Jun 2010 16:51:04 +0200 From: Jes Sorensen MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 10/16] Introduce OS specific cmdline argument handling and move SMB arg to os-posix.c References: <1275583692-11678-1-git-send-email-Jes.Sorensen@redhat.com> <1275583692-11678-11-git-send-email-Jes.Sorensen@redhat.com> <4C081774.1020300@twiddle.net> <4C08A183.2070704@redhat.com> <4C091273.9020202@twiddle.net> In-Reply-To: <4C091273.9020202@twiddle.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org On 06/04/10 16:49, Richard Henderson wrote: > On 06/03/2010 11:47 PM, Jes Sorensen wrote: >> The problem is that it requires qemu-options.h to be included, which >> isn't included per default for all the files. If I put it into sysemu.h >> at least it's going to require making every .c file build with those flags. >> >> I agree it's gross, but I am not sure what would be a better solution. > > One possible solution is to put this whole block in "qemu-options-enum.h" > (or whatever) and include that in the three places that you have this block. I ended up moving qemu-options.h to qemu-options.def and then creating a proper qemu-options.h per Paolo's suggestion. Let me know what you think of the v2 patch set, minus the duplicates some idiot posted because he forgot to remove the Emacs backup files :) Cheers, Jes