From: Anthony PERARD Subject: [PATCH V8 0/7] Introduce a QMP client Date: Tue, 26 Jul 2011 20:13:00 +0100 Message-ID: <1311707587-6686-1-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen Devel Cc: Ian Campbell , Anthony PERARD , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org New: - Rename set_default_namespace() to namespace(), this is much easier to read in the .idl files. - Make get_default_namespace and default_namespace "private" to libxltypes.py with a leading '_'. - libxl__realloc should now behave like realloc. - Use libxl__ prefix when required. - Rename libxl__json_object_get to libxl__json_map_get. - Introduce libxl__json_map_node_get and libxl__json_array_get. - Put libxl__yajl_gen_asciiz in libxl_json - Make qmp_next easier to read by handling errors right after calls of select and read. Change v6-v7: - New patch that add set_default_namespaces to libxltypes.py, so we can set a namespace to use for a specific .idl. - New function: libxl__realloc and libxl__strndup. - The data is now pulled until it's completed (with a CRLF). Now libxl__json_parse expect only a whole json object. - Use of libxl__gc in sevreal place. Anthony PERARD (7): libxl: Rename libxl.idl to libxl_types.idl. libxl: Add get/set_default_namespace in libxltypes.py. libxl: Introduce libxl_internal_types.idl. libxl: Introduce libxl__realloc. libxl: Intruduce libxl__strndup. libxl: Introduce JSON parsing stuff. libxl: Introduce a QMP client README | 1 + tools/libxl/Makefile | 21 +- tools/libxl/gentypes.py | 9 +- tools/libxl/libxl.c | 2 + tools/libxl/libxl_create.c | 4 + tools/libxl/libxl_dm.c | 10 + tools/libxl/libxl_internal.c | 34 ++ tools/libxl/libxl_internal.h | 122 ++++++ tools/libxl/libxl_json.c | 560 ++++++++++++++++++++++++++ tools/libxl/libxl_qmp.c | 587 ++++++++++++++++++++++++++++ tools/libxl/{libxl.idl => libxl_types.idl} | 2 + tools/libxl/libxl_types_internal.idl | 9 + tools/libxl/libxltypes.py | 18 +- tools/ocaml/libs/xl/Makefile | 4 +- tools/python/Makefile | 4 +- 15 files changed, 1369 insertions(+), 18 deletions(-) create mode 100644 tools/libxl/libxl_json.c create mode 100644 tools/libxl/libxl_qmp.c rename tools/libxl/{libxl.idl => libxl_types.idl} (99%) create mode 100644 tools/libxl/libxl_types_internal.idl -- Anthony PERARD