Re: [libvirt] [PATCHv3] qemu: monitor: Refactor and fix monitor checking

2015-04-16 Thread Peter Krempa
On Thu, Apr 16, 2015 at 14:38:25 +0200, Jiri Denemark wrote: On Wed, Apr 15, 2015 at 16:27:35 +0200, Peter Krempa wrote: Among all the monitor APIs some where checking if mon is NULL and some were not. Since it's possible to have mon equal to NULL in case a second call is attempted once

Re: [libvirt] [PATCHv3] qemu: monitor: Refactor and fix monitor checking

2015-04-16 Thread Jiri Denemark
On Wed, Apr 15, 2015 at 16:27:35 +0200, Peter Krempa wrote: Among all the monitor APIs some where checking if mon is NULL and some were not. Since it's possible to have mon equal to NULL in case a second call is attempted once entered the monitor. This requires that every single API checks for

[libvirt] [PATCHv3] qemu: monitor: Refactor and fix monitor checking

2015-04-15 Thread Peter Krempa
Among all the monitor APIs some where checking if mon is NULL and some were not. Since it's possible to have mon equal to NULL in case a second call is attempted once entered the monitor. This requires that every single API checks for the monitor. This patch adds a macro that helps checking the