QMP: add get_events(wait=True) option
commit91b8eddf41fd62ecbc61cb901c40f50287126fac
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 25 May 2011 18:48:00 +0000 (25 19:48 +0100)
committerLuiz Capitulino <lcapitulino@redhat.com>
Wed, 1 Jun 2011 14:43:18 +0000 (1 11:43 -0300)
treef70d142b82ef8e0d507671a7784fa4dd226bd2aa
parente9b4b432e781863869b074d46966bfa0bd672b8f
QMP: add get_events(wait=True) option

The get_events() function polls for new QMP events and then returns.  It
can be useful to wait for the next QMP event so add the boolean 'wait'
keyword argument.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
QMP/qmp.py