From: Ian Campbell Subject: Re: [PATCH] libxl: unconst the event argument to the event_occurs hook. [and 1 more messages] Date: Wed, 1 May 2013 13:33:55 +0100 Message-ID: <1367411635.3142.727.camel@zakaz.uk.xensource.com> References: <1366976544-3428-1-git-send-email-ian.campbell@citrix.com> <517AF031.4070004@suse.com> <20864.62193.859832.819808@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20864.62193.859832.819808@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: Rob Hoes , Jim Fehlig , "George.Dunlap@citix.com" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, 2013-05-01 at 11:48 +0100, Ian Jackson wrote: > Ian Campbell writes ("[PATCH] libxl: unconst the event argument to the event_occurs hook."): > > The event is supposed to become owned, and therefore freed, by the application > > and the const prevents this. > > > > Unfortunately there is no way to remove the const without breaking existing > > callers. The best we can do is use the LIBXL_API_VERSION provisions to remove > > the const for callers who wish only to support the 4.3 API and newer. > > > > Callers who wish to support 4.2 will need to live with casting away the const. > > > > Signed-off-by: Ian Campbell > > Cc: Ian.Jackson@citrix.com > > Cc: George.Dunlap@citix.com > > Cc: Jim Fehlig > > Cc: Rob Hoes > > Acked-by: Ian Jackson Applied with this + Jim's previous R-b, thanks both. Ian.