From: Ian Jackson Subject: Re: [PATCH 15/15] libxl: New event generation API Date: Thu, 12 Jan 2012 16:27:58 +0000 Message-ID: <20239.2574.701042.567123@mariner.uk.xensource.com> References: <1323108621-22654-1-git-send-email-ian.jackson@eu.citrix.com> <1323108621-22654-16-git-send-email-ian.jackson@eu.citrix.com> <20194.22539.574524.956955@mariner.uk.xensource.com> <1323463293.20936.11.camel@dagon.hellion.org.uk> <20197.59428.699013.507183@mariner.uk.xensource.com> <1323692225.20077.183.camel@zakaz.uk.xensource.com> <20197.62462.189827.239656@mariner.uk.xensource.com> <1323697723.20077.212.camel@zakaz.uk.xensource.com> <20198.9737.680162.103418@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: "xen-devel@lists.xensource.com" , Ian Campbell List-Id: xen-devel@lists.xenproject.org Stefano Stabellini writes ("Re: [Xen-devel] [PATCH 15/15] libxl: New event generation API"): > +_hidden libxl__gc *libxl__init_gc(struct libxl__ctx *ctx); > +#define GC_INIT(ctx) libxl__gc *gc = libxl__init_gc(ctx); if (gc == NULL) return ERROR_NOMEM; Also of course not all functions which use GC_INIT currently return a libxl error code. Here is a counterexample: libxl__qmp_handler *libxl__qmp_initialize(libxl_ctx *ctx, uint32_t domid) { int ret = 0; libxl__qmp_handler *qmp = NULL; char *qmp_socket; GC_INIT(ctx); Ian.