From: Wei Liu Subject: Re: [PATCH V5 04/32] libxl: libxl_uuid_copy now taks a ctx argument Date: Fri, 16 May 2014 12:17:26 +0100 Message-ID: <20140516111726.GG18551@zion.uk.xensource.com> References: <1400018054-26038-1-git-send-email-wei.liu2@citrix.com> <1400018054-26038-5-git-send-email-wei.liu2@citrix.com> <1400172667.883.31.camel@kazak.uk.xensource.com> <20140515171339.GD10525@zion.uk.xensource.com> <1400233612.8259.6.camel@kazak.uk.xensource.com> <20140516101822.GD18551@zion.uk.xensource.com> <1400236252.8259.25.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1400236252.8259.25.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: ian.jackson@eu.citrix.com, Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, May 16, 2014 at 11:30:52AM +0100, Ian Campbell wrote: > On Fri, 2014-05-16 at 11:18 +0100, Wei Liu wrote: > > On Fri, May 16, 2014 at 10:46:52AM +0100, Ian Campbell wrote: > > > On Thu, 2014-05-15 at 18:13 +0100, Wei Liu wrote: > > > > > > > > > +typedef struct libxl__ctx libxl_ctx; > > > > > > > > > > Maybe libxl_uuid.h should include libxl.h? > > > > > > > > > > > > > That leads to circular inclusion. > > > > > > Do the #define guards not solve that? > > > > > > Or do you mean that libxl.h's include of libxl_uuid.h might be before > > > libxl_ctx is typedefd? > > > > > > > The latter. libxl includes libxl_uuid.h at the beginning. > > Is reordering the typedef wrt that an option? > Moving typedef before including libxl_FOO.h does the job, I think. Wei. > Ian.