aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2021-06-07 16:06:33 -0400
committerJohn Snow <jsnow@redhat.com>2021-06-18 16:10:07 -0400
commit1acde76328de10beff07c7f1c8146af72813ecd7 (patch)
tree9b82a67a5159d1b9e7150adeb17775edeb2e266c /python
parent41574295829b9a34d43e7cb95847340942d1ddf5 (diff)
downloadqemu-1acde76328de10beff07c7f1c8146af72813ecd7.zip
qemu-1acde76328de10beff07c7f1c8146af72813ecd7.tar.gz
qemu-1acde76328de10beff07c7f1c8146af72813ecd7.tar.bz2
python/qmp: add QMPObject type alias
This is meant to represent any generic object seen in a QMPMessage, not just the root object itself. Signed-off-by: John Snow <jsnow@redhat.com> Message-id: 20210607200649.1840382-27-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'python')
-rw-r--r--python/qemu/qmp/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/qemu/qmp/__init__.py b/python/qemu/qmp/__init__.py
index a6e1a7b..ba0d228 100644
--- a/python/qemu/qmp/__init__.py
+++ b/python/qemu/qmp/__init__.py
@@ -41,6 +41,9 @@ QMPMessage = Dict[str, Any]
#: QMPReturnValue is the 'return' value of a command.
QMPReturnValue = object
+#: QMPObject is any object in a QMP message.
+QMPObject = Dict[str, object]
+
# QMPMessage can be outgoing commands or incoming events/returns.
# QMPReturnValue is usually a dict/json object, but due to QAPI's
# 'returns-whitelist', it can actually be anything.