summary refs log tree commit diff stats
path: root/scripts/qapi/introspect.py
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2023-03-16 08:13:15 +0100
committerMarkus Armbruster <armbru@redhat.com>2023-04-24 15:21:28 +0200
commit06cc46eeaf3cf5790c85ebbb58e8875719e5eb86 (patch)
tree559e210d383829c80805ed88442c02599f3010f1 /scripts/qapi/introspect.py
parent607045ba39f6ca845ede3131a902ad785088fea3 (diff)
downloadfocaccia-qemu-06cc46eeaf3cf5790c85ebbb58e8875719e5eb86.tar.gz
focaccia-qemu-06cc46eeaf3cf5790c85ebbb58e8875719e5eb86.zip
qapi: Split up check_type()
check_type() can check type names, arrays, and implicit struct types.
Callers pass flags to select from this menu.  This makes the function
somewhat hard to read.  Moreover, a few minor bugs are hiding in
there, as we'll see shortly.

Split it into check_type_name(), check_type_name_or_array(), and
check_type_name_or_implicit().  Each of them is a copy of the original
specialized to a certain set of flags.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20230316071325.492471-5-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[Commit message corrected]
Diffstat (limited to 'scripts/qapi/introspect.py')
0 files changed, 0 insertions, 0 deletions