From: Ian Jackson Subject: Re: [PATCH V2 08/11] libxl_qmp, Introduce qmp_request_handle. Date: Tue, 25 Oct 2011 18:36:54 +0100 Message-ID: <20134.62390.416089.969397@mariner.uk.xensource.com> References: <1319133573-25891-1-git-send-email-anthony.perard@citrix.com> <1319133573-25891-9-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1319133573-25891-9-git-send-email-anthony.perard@citrix.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: Anthony PERARD Cc: Xen Devel , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Anthony PERARD writes ("[Xen-devel] [PATCH V2 08/11] libxl_qmp, Introduce qmp_request_handle."): > This structure helps keep the return code of the callback, so a > caller can read it. This is heading in a plausible direction but: * You need to state which of the members of the struct are for use by which parts of libxl, and when any shared members are written etc. * "handle" is the wrong word for this. "handle" would refer to a pointer or perhaps descriptor. This is a context/info structure. * The "free_it" parameter to qmp_send seems odd. Surely it should just be the case that the same person that allocated the context should free it ? Ian.