QMP: Disable monitor print functions
commit4a29a85db9e67fcd07e6ca55d69e369e9874ec95
authorLuiz Capitulino <lcapitulino@redhat.com>
Fri, 27 Nov 2009 00:59:05 +0000 (26 22:59 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 15:41:24 +0000 (3 09:41 -0600)
tree3c60997fb70e0aa86a3bc20bd93616273d00caf5
parentb1a15e7eaafba8f26e2263b1a9b6e6d40e585e72
QMP: Disable monitor print functions

We still have handlers which will call monitor print functions
in several places. Usually to report errors.

If they do this when we are in control mode, we will be emitting
garbage to our clients.

To avoid this problem, this commit adds a way to disable those
functions. If any of them is called when in control mode, we will
emit a generic error.

Although this is far from the perfect solution, it guarantees
that only JSON is sent to Clients.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
monitor.c