From: Ian Jackson Subject: Re: [PATCH v1 01/10] libxl: libxl-json format and internal functions to get / set it Date: Thu, 24 Jul 2014 19:09:50 +0100 Message-ID: <21457.19438.71698.477521@mariner.uk.xensource.com> References: <1405002745-5034-1-git-send-email-wei.liu2@citrix.com> <1405002745-5034-2-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1405002745-5034-2-git-send-email-wei.liu2@citrix.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: Wei Liu Cc: ian.campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Wei Liu writes ("[PATCH v1 01/10] libxl: libxl-json format and internal functions to get / set it"): > Introduce a new format in libxl userdata store called "libxl-json". This > file format contains JSON version of libxl_domain_config, generated by > libxl. ... > + * "libxl-json" libxl_domain_config object in JSON format, generated > + * by libxl Applications should probably be more strongly discouraged from accessing this directly, at least by wording here in this comment. > +int libxl__set_domain_configuration(libxl__gc *gc, uint32_t domid, > + libxl_domain_config *d_config) > +{ > + char *d_config_json; > + int rc; > + > + d_config_json = libxl_domain_config_to_json(CTX, d_config); > + if (!d_config_json) { > + LOGE(ERROR, "failed to convert domain configuration to JSON for domain %d", If you add a newline before the first " this won't need to wrap. Aside from that, Acked-by: Ian Jackson