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