From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGMJQ-0000wt-2V for qemu-devel@nongnu.org; Fri, 24 Jun 2016 04:18:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGMJJ-0002X2-TN for qemu-devel@nongnu.org; Fri, 24 Jun 2016 04:18:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGMJJ-0002Wd-OC for qemu-devel@nongnu.org; Fri, 24 Jun 2016 04:17:57 -0400 References: <1466698330-6021-1-git-send-email-armbru@redhat.com> <1466698330-6021-5-git-send-email-armbru@redhat.com> <87oa6rxax1.fsf@dusky.pond.sub.org> From: Paolo Bonzini Message-ID: <213da4da-cc47-e0a2-c90d-dac2f8ca911f@redhat.com> Date: Fri, 24 Jun 2016 10:17:54 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH RFC 4/5] include: Move typedef qemu_irq to qemu/typedefs.h List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Markus Armbruster Cc: QEMU Developers , "Michael S. Tsirkin" On 24/06/2016 10:15, Peter Maydell wrote: >>>> >>> @@ -31,6 +31,7 @@ typedef struct FWCfgState FWCfgState; >>>> >>> typedef struct HCIInfo HCIInfo; >>>> >>> typedef struct I2CBus I2CBus; >>>> >>> typedef struct I2SCodec I2SCodec; >>>> >>> +typedef struct IRQState *qemu_irq; >>>> >>> typedef struct ISABus ISABus; >>>> >>> typedef struct ISADevice ISADevice; >>>> >>> typedef struct IsaDma IsaDma; >>> >> >>> >> Everything else in typedefs.h is a "typedef struct Thing Thing", >>> >> but qemu_irq is different... >> > >> > We want to keep our readers on their toes! > It would mean you now have to decide whether the file is orderd > by the types being defined or by the underlying implementation > type (previously both orders were the same)... Indeed, and renaming the struct is trivial because it's used in a handful of places only. Paolo