diff options
| author | Markus Armbruster <armbru@redhat.com> | 2019-02-14 16:22:37 +0100 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2019-02-18 14:44:04 +0100 |
| commit | c2e196a9b41235a308fb6d1c516aa91ba0a807c8 (patch) | |
| tree | 53908c99db599f1e5c4bcb8c6b74aa1174ca0062 /scripts/qapi/types.py | |
| parent | dcac64711ea906e844ae60a5927e5580f7252c1e (diff) | |
| download | focaccia-qemu-c2e196a9b41235a308fb6d1c516aa91ba0a807c8.tar.gz focaccia-qemu-c2e196a9b41235a308fb6d1c516aa91ba0a807c8.zip | |
qapi: Prepare for system modules other than 'builtin'
The next commit wants to generate qapi-emit-events.{c.h}. To enable
that, extend QAPISchemaModularCVisitor to support additional "system
modules", i.e. modules that don't correspond to a (user-defined) QAPI
schema module.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20190214152251.2073-5-armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/types.py')
| -rw-r--r-- | scripts/qapi/types.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qapi/types.py b/scripts/qapi/types.py index 9fa510f7df..2bd6fcd44f 100644 --- a/scripts/qapi/types.py +++ b/scripts/qapi/types.py @@ -183,7 +183,7 @@ class QAPISchemaGenTypeVisitor(QAPISchemaModularCVisitor): QAPISchemaModularCVisitor.__init__( self, prefix, 'qapi-types', ' * Schema-defined QAPI types', __doc__) - self._add_module(None, ' * Built-in QAPI types') + self._add_system_module(None, ' * Built-in QAPI types') self._genc.preamble_add(mcgen(''' #include "qemu/osdep.h" #include "qapi/dealloc-visitor.h" |