From: Ian Jackson Subject: Re: [PATCH 6/9] libxl: Asynchronous/long-running operation infrastructure Date: Wed, 25 Jan 2012 16:56:35 +0000 Message-ID: <20256.13379.152546.739333@mariner.uk.xensource.com> References: <1326482728-10733-1-git-send-email-ian.jackson@eu.citrix.com> <1326482728-10733-7-git-send-email-ian.jackson@eu.citrix.com> <1326969875.17599.50.camel@zakaz.uk.xensource.com> <20254.59933.408785.834@mariner.uk.xensource.com> <1327488533.24561.272.camel@zakaz.uk.xensource.com> <20256.5502.898249.801471@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20256.5502.898249.801471@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Ian Jackson writes ("Re: [Xen-devel] [PATCH 6/9] libxl: Asynchronous/long-running operation infrastructure"): > Ian Campbell writes ("Re: [Xen-devel] [PATCH 6/9] libxl: Asynchronous/long-running operation infrastructure"): > > On Tue, 2012-01-24 at 17:27 +0000, Ian Jackson wrote: > > > If ao_how is non-NULL then these functions cannot return 0. > > > If it is NULL they cannot return ASYNC_INPROGRESS. > > > > > > I chose to use a new exit status because it seemed safer but that's a > > > matter of taste and if you prefer I could return 0 for that case. > > > > I'm undecided (plus it seems a bit like bikeshedding). I certainly > > prefer either 0 or {LIBXL_}ASYNC_IN_PROGRESS to ERROR_ASYNC_IN_PROGRESS > > though. > > OK, I'll rename it. Having thought about this some more, and particularly about what callers would be likely to want, I decided it would be better to abolish it and return 0 instead. So I will do that. Ian.