Re: [Xen-devel] [PATCH v4 20/21] libxlu: introduce new APIs

2015-02-12 Thread Wei Liu
On Wed, Feb 11, 2015 at 04:17:19PM +, Ian Jackson wrote: > Wei Liu writes ("[PATCH v4 20/21] libxlu: introduce new APIs"): > > These APIs can be used to manipulate XLU_ConfigValue and XLU_ConfigList. > ... > > +const char *xlu_cfg_value_get_string(const XLU_ConfigValue *value) > > +{ > > +a

Re: [Xen-devel] [PATCH v4 20/21] libxlu: introduce new APIs

2015-02-11 Thread Ian Jackson
Wei Liu writes ("[PATCH v4 20/21] libxlu: introduce new APIs"): > These APIs can be used to manipulate XLU_ConfigValue and XLU_ConfigList. ... > +const char *xlu_cfg_value_get_string(const XLU_ConfigValue *value) > +{ > +assert(value->type == XLU_STRING); > +return value->u.string; > +} Mo

[Xen-devel] [PATCH v4 20/21] libxlu: introduce new APIs

2015-01-23 Thread Wei Liu
These APIs can be used to manipulate XLU_ConfigValue and XLU_ConfigList. APIs introduced: 1. xlu_cfg_value_type 2. xlu_cfg_value_get_string 3. xlu_cfg_value_get_list 4. xlu_cfg_get_listitem2 Move some definitions from private header to public header as needed. Signed-off-by: Wei Liu Cc: Ian Jac