[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v3 18/19] libxlutil: nested list support



On Tue, Jan 13, 2015 at 03:52:48PM +0000, Ian Jackson wrote:
> Wei Liu writes ("[PATCH v3 18/19] libxlutil: nested list support"):
> > This is done with three major changes:
> > 1. Rework internal representation of setting.
> > 2. Extend grammar of parser.
> > 3. Introduce new APIs.
> 
> This commit message is very brief.  For example, under the heading of
> `Rework internal representation of setting' I would expect a clear
> description of every formulaic change.
> 

Originally the internal representation of setting is (string, string)
pair, the first string being the name of the setting, second string
being the value of the setting. Now the internal is changed to (string,
ConfigValue) pair, where ConfigValue can refer to a string or a list of
ConfigValue's. Internal functions to deal with setting are changed
accordingly.

Does the above description makes things clearer?

> Also, I think would be much easier to review if split up into 3 parts,
> which from the description above ought to be doable without trouble.
> 

OK. I can try to split this patch into three.

> AFAICT from your changes, the API is not backward compatible.  ICBW,
> but if I'm right that's not acceptable I'm afraid, even in libxlu.
> 

The old APIs still have the same semantic as before, so any applications
linked against those APIs still have the same results returned.

> > Previous APIs work as before.
> 
> That can't be right because you have to at least specify how they deal
> with the additional config file syntax.
> 

No, the old APIs don't deal with new syntax. If applications want to
support new syntax, they need to use new API.

If old APIs try to get value from new syntax, it has no effect.

Wei.

> Thanks,
> Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.