[libvirt] [PATCHv2 7/7] qemu: monitor: Refactor and fix monitor checking

2015-04-14 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 st

Re: [libvirt] [PATCHv2 7/7] qemu: monitor: Refactor and fix monitor checking

2015-04-15 Thread Jiri Denemark
On Tue, Apr 14, 2015 at 18:05:11 +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

Re: [libvirt] [PATCHv2 7/7] qemu: monitor: Refactor and fix monitor checking

2015-04-15 Thread Peter Krempa
On Wed, Apr 15, 2015 at 10:24:10 +0200, Jiri Denemark wrote: > On Tue, Apr 14, 2015 at 18:05:11 +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 on

Re: [libvirt] [PATCHv2 7/7] qemu: monitor: Refactor and fix monitor checking

2015-04-15 Thread John Ferlan
On 04/14/2015 12:05 PM, 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 the monito