[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH V4 09/24] libxl_json: introduce parser functions for builtin types
On Thu, 2014-05-01 at 13:58 +0100, Wei Liu wrote: Anthony, are you OK with this one now? > This changeset introduces following functions: > * libxl_defbool_parse_json > * libxl__bool_parse_json > * libxl_uuid_parse_json > * libxl_mac_parse_json > * libxl_bitmap_parse_json > * libxl_cpuid_policy_list_parse_json > * libxl_string_list_parse_json > * libxl_key_value_list_parse_json > * libxl_hwcap_parse_json > * libxl__int_parse_json > * libxl__uint{8,16,32,64}_parse_json > * libxl__string_parse_json > > They will be used in later patch to convert the libxl__json_object > tree of a builtin type to libxl_FOO struct. > > Also remove delcaration of libxl_domid_gen_json as libxl_domid uses "declaration" > yajl_gen_integer to generate JSON object. > > Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> With one small question: [...] > diff --git a/tools/libxl/libxl_nocpuid.c b/tools/libxl/libxl_nocpuid.c > index 5f7cb6a..eb525fc 100644 > --- a/tools/libxl/libxl_nocpuid.c > +++ b/tools/libxl/libxl_nocpuid.c > @@ -44,6 +44,13 @@ yajl_gen_status libxl_cpuid_policy_list_gen_json(yajl_gen > hand, > return 0; > } > > +int libxl_cpuid_policy_list_parse_json(libxl__gc *gc, > + const libxl__json_object *o, > + libxl_cpuid_policy_list *p) > +{ > + return 0; Not an error of some sort? Or even an assert? _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |