From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH 0 of 4 v2] libxl: support json for pretty printing objects Date: Fri, 7 Oct 2011 11:27:50 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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@lists.xensource.com Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org Now that Anthony's QMP series is in we can build upon the use of YAJL to add support for pretty printing libxl objects as JSON. Also includes a user in xl (to print disks on dry run) and an associated fix to the check-xl-disk-parse test script. This is the second posting. A subset of the patches have been applied so I have rebased. I have also addressed most of Ian J's review comments on "libxl: IDL: autogenerate functions to produce JSON from libxl data structures": - wrap python code to 80 columns - fixup quoting (although I had to add another case in \"%s=%#x\" because "%s=%#x" was confusing emacs' syntax highlighting due to the # being treated as a comment and hiding the closing ". - remove leftover cruft - added libxl__yagl_gen_enum helper - autogenerate *_gen_json prototypes for builtins instead of handcoding them. I didn't address the cpuid related comments. I switched to using "xl" not "/usr/sbin/xl" in that patch.