summaryrefslogtreecommitdiffstats
path: root/python/qemu/aqmp/__init__.py
diff options
context:
space:
mode:
authorJohn Snow2021-09-15 18:29:43 +0200
committerJohn Snow2021-09-27 18:10:29 +0200
commitb3cda213a739e4e28ef7fe69a1a7e0f483e5c60c (patch)
tree6dc423488a6b2ff50b9c019e2cc9251fe50a0b89 /python/qemu/aqmp/__init__.py
parentpython/aqmp: add well-known QMP object models (diff)
downloadqemu-b3cda213a739e4e28ef7fe69a1a7e0f483e5c60c.tar.gz
qemu-b3cda213a739e4e28ef7fe69a1a7e0f483e5c60c.tar.xz
qemu-b3cda213a739e4e28ef7fe69a1a7e0f483e5c60c.zip
python/aqmp: add QMP event support
This class was designed as a "mix-in" primarily so that the feature could be given its own treatment in its own python module. It gets quite a bit too long otherwise. Signed-off-by: John Snow <jsnow@redhat.com> Message-id: 20210915162955.333025-16-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'python/qemu/aqmp/__init__.py')
-rw-r--r--python/qemu/aqmp/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/qemu/aqmp/__init__.py b/python/qemu/aqmp/__init__.py
index 96fff1e5f3..829166a2e2 100644
--- a/python/qemu/aqmp/__init__.py
+++ b/python/qemu/aqmp/__init__.py
@@ -22,6 +22,7 @@ managing QMP events.
# the COPYING file in the top-level directory.
from .error import AQMPError
+from .events import EventListener
from .message import Message
from .protocol import ConnectError, Runstate, StateError
@@ -30,6 +31,7 @@ from .protocol import ConnectError, Runstate, StateError
__all__ = (
# Classes, most to least important
'Message',
+ 'EventListener',
'Runstate',
# Exceptions, most generic to most explicit