OSDN Git Service

qmp: add pull_event function
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Oct 2012 14:49:29 +0000 (16:49 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 24 Oct 2012 08:26:22 +0000 (10:26 +0200)
commit9eb80eadd498fae2ad9eecbb89646b0cc4929cac
treeac36c81095422ecbbf9b6656c8cc9b12fd12b2bc
parentb952b5589a36114e06201c0d2e82c293dbad2b1f
qmp: add pull_event function

This function is unlike get_events in that it makes it easy to process
one event at a time.  This is useful in the mirroring test cases, where
we want to process just one event (BLOCK_JOB_ERROR) and leave the others
to a helper function.

Acked-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
QMP/qmp.py