[libvirt] [PATCH] qemu: simplify use of HAVE_YAJL

2011-10-20 Thread Eric Blake
Rather than making all clients of monitor commands that are JSON-only check whether yajl support was compiled in, it is simpler to just avoid setting the capability bit up front if we can't use the capability. * src/qemu/qemu_capabilities.c (qemuCapsComputeCmdFlags): Only set capability bit if we

Re: [libvirt] [PATCH] qemu: simplify use of HAVE_YAJL

2011-10-20 Thread Wen Congyang
At 10/21/2011 04:39 AM, Eric Blake Write: > Rather than making all clients of monitor commands that are JSON-only > check whether yajl support was compiled in, it is simpler to just > avoid setting the capability bit up front if we can't use the capability. > > * src/qemu/qemu_capabilities.c (qemu

Re: [libvirt] [PATCH] qemu: simplify use of HAVE_YAJL

2011-10-21 Thread Eric Blake
On 10/20/2011 07:30 PM, Wen Congyang wrote: At 10/21/2011 04:39 AM, Eric Blake Write: Rather than making all clients of monitor commands that are JSON-only check whether yajl support was compiled in, it is simpler to just avoid setting the capability bit up front if we can't use the capability.