From: Ian Campbell Subject: Re: [PATCH V4 20/24] xl: introduce load/save_domain_config Date: Tue, 6 May 2014 15:28:12 +0100 Message-ID: <1399386492.3014.174.camel@kazak.uk.xensource.com> References: <1398949101-23320-1-git-send-email-wei.liu2@citrix.com> <1398949101-23320-21-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: <1398949101-23320-21-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.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2014-05-01 at 13:58 +0100, Wei Liu wrote: > They are used to serialize / deserialize domain configuration to / from > user data store. > Signed-off-by: Wei Liu > --- > tools/libxl/xl_cmdimpl.c | 119 ++++++++++++++++++++++++++++++---------------- > 1 file changed, 77 insertions(+), 42 deletions(-) > > diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c > index 7443d86..f891ab5 100644 > --- a/tools/libxl/xl_cmdimpl.c > +++ b/tools/libxl/xl_cmdimpl.c > @@ -160,6 +160,73 @@ struct domain_create { > char **migration_domname_r; /* from malloc */ > }; > > +static int _parse_config_data_json(char *config_data, int config_len, > + libxl_domain_config *d_config) The _ namespace is reserved for something (either POSIX or the compiler, but not us, for sure) Ian.