]> xenbits.xensource.com Git - xen.git/commit
libxl_json: introduce parser functions for builtin types
authorWei Liu <wei.liu2@citrix.com>
Mon, 9 Jun 2014 12:43:20 +0000 (13:43 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 10 Jun 2014 13:07:31 +0000 (14:07 +0100)
commit752f181fefb740523522b5730efdef28b0ff91ff
tree5393d09ec7ddaac5918e14bca0cef5a63cae0a8b
parent185123b72e122708d54451347ebcb6f83988014e
libxl_json: introduce parser functions for builtin types

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 declaration of libxl_domid_gen_json as libxl_domid uses
yajl_gen_integer to generate JSON object.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Anthony Perard <anthony.perard@citrix.com>
tools/libxl/libxl_cpuid.c
tools/libxl/libxl_json.c
tools/libxl/libxl_json.h
tools/libxl/libxl_nocpuid.c