diff options
| author | Peter Maydell | 2020-01-14 17:42:27 +0100 |
|---|---|---|
| committer | Peter Maydell | 2020-01-14 17:42:27 +0100 |
| commit | e021e6fe5294939f286021b3f870666ccb979aa2 (patch) | |
| tree | 606b0534cb354f1b82017d408b41c2ac2555f320 /scripts/qapi/types.py | |
| parent | Merge remote-tracking branch 'remotes/kraxel/tags/ui-20200114-pull-request' i... (diff) | |
| parent | qapi: Simplify QAPISchemaModularCVisitor (diff) | |
| download | qemu-e021e6fe5294939f286021b3f870666ccb979aa2.tar.gz qemu-e021e6fe5294939f286021b3f870666ccb979aa2.tar.xz qemu-e021e6fe5294939f286021b3f870666ccb979aa2.zip | |
Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2020-01-14' into staging
QAPI patches for 2020-01-14
# gpg: Signature made Tue 14 Jan 2020 10:15:22 GMT
# gpg: using RSA key 354BC8B3D7EB2A6B68674E5F3870B400EB918653
# gpg: issuer "armbru@redhat.com"
# gpg: Good signature from "Markus Armbruster <armbru@redhat.com>" [full]
# gpg: aka "Markus Armbruster <armbru@pond.sub.org>" [full]
# Primary key fingerprint: 354B C8B3 D7EB 2A6B 6867 4E5F 3870 B400 EB91 8653
* remotes/armbru/tags/pull-qapi-2020-01-14:
qapi: Simplify QAPISchemaModularCVisitor
qapi: Fix code generation for empty modules
qapi: Proper intermediate representation for modules
qapi: Generate command registration stuff into separate files
tests/Makefile.include: Fix missing test-qapi-emit-events.[ch]
qapi: Tweak "command returns a nice type" check for clarity
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts/qapi/types.py')
| -rw-r--r-- | scripts/qapi/types.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/qapi/types.py b/scripts/qapi/types.py index d8751daa04..99dcaf7074 100644 --- a/scripts/qapi/types.py +++ b/scripts/qapi/types.py @@ -243,8 +243,9 @@ class QAPISchemaGenTypeVisitor(QAPISchemaModularCVisitor): def __init__(self, prefix): QAPISchemaModularCVisitor.__init__( self, prefix, 'qapi-types', ' * Schema-defined QAPI types', - __doc__) - self._add_system_module(None, ' * Built-in QAPI types') + ' * Built-in QAPI types', __doc__) + + def _begin_system_module(self, name): self._genc.preamble_add(mcgen(''' #include "qemu/osdep.h" #include "qapi/dealloc-visitor.h" |
