From: Ian Campbell Subject: Re: [PATCH 01/15] libxc: xc_domain_restore, make toolstack_restore const-correct Date: Thu, 31 May 2012 12:16:06 +0100 Message-ID: <1338462966.17466.9.camel@zakaz.uk.xensource.com> References: <1338394606-22693-1-git-send-email-ian.jackson@eu.citrix.com> <1338394606-22693-2-git-send-email-ian.jackson@eu.citrix.com> <1338398761.14877.17.camel@dagon.hellion.org.uk> <20423.16431.321849.778723@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20423.16431.321849.778723@mariner.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 Jackson Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Thu, 2012-05-31 at 10:55 +0100, Ian Jackson wrote: > Ian Campbell writes ("Re: [Xen-devel] [PATCH 01/15] libxc: xc_domain_restore, make toolstack_restore const-correct"): > > On Wed, 2012-05-30 at 17:16 +0100, Ian Jackson wrote: > > > Also provide typedefs for the nontrivial function callback types. > > > > Are there any other uses of these type other than the one of each > > inlined in the structs? > > There is one, later in my patch series, in libxl. Ah, I had a look up to ptch 5 (the originally posted set) but didn't spot it, sorry. > > If not then I'm not sure this makes things clearer -- you now have to > > look at both the callback struct and then go find the corresponding > > typedef. > > I'm not particularly bothered about this and could write the type out > again in its other location in libxl_internal.h. The compiler will > check it after all. > > Let me know what you think best. I prefer to write it out. Especially since the docs (such as they are) are in the struct too. Ian.