QMP: Revamp the Python class example
authorLuiz Capitulino <lcapitulino@redhat.com>
Wed, 27 Oct 2010 19:43:34 +0000 (17:43 -0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Wed, 17 Nov 2010 11:51:07 +0000 (09:51 -0200)
commit1d00a07de980ecf643c7d7699dfc48e94bec15ae
tree13eb7068a7aeb0dbdd31c931d21627bea1c8c2c5
parent8ca209ad90bdb678932a6b18caf32b461dbe5eee
QMP: Revamp the Python class example

This commit simplifies and fixes a number of problems in the Python
QEMUMonitorProtocol example class.

It's almost a rewrite and it DOES BREAK the qmp-shell script (which
is going to be fixed in the next commit).

However, I'm not going to split this in different commits because it
could get up to 10 commits, it's really not worth it for a simple
demo class.

Highlights:

 o TCP sockets support
 o QMP events support
 o Add documentation
 o Fix a number of unhandled errors
 o Simplify methods that send commands to the Monitor

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
QMP/qmp.py