diff options
| author | Markus Armbruster <armbru@redhat.com> | 2023-03-16 08:13:15 +0100 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2023-04-24 15:21:28 +0200 |
| commit | 06cc46eeaf3cf5790c85ebbb58e8875719e5eb86 (patch) | |
| tree | 559e210d383829c80805ed88442c02599f3010f1 /scripts/qapi/events.py | |
| parent | 607045ba39f6ca845ede3131a902ad785088fea3 (diff) | |
| download | focaccia-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/events.py')
0 files changed, 0 insertions, 0 deletions