diff options
author | Markus Armbruster <armbru@redhat.com> | 2021-02-01 14:37:40 -0500 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2021-02-08 14:15:58 +0100 |
commit | 4ab0ff6da0828e6499d633a4801f4e6b6e96d21b (patch) | |
tree | a2d52af7466fa606c099ae8d62dad7099e1fe8da /scripts/qapi/events.py | |
parent | e2bbc4eaa7f0d8efb8f49705bae0fecd3356f417 (diff) | |
download | qemu-4ab0ff6da0828e6499d633a4801f4e6b6e96d21b.zip qemu-4ab0ff6da0828e6499d633a4801f4e6b6e96d21b.tar.gz qemu-4ab0ff6da0828e6499d633a4801f4e6b6e96d21b.tar.bz2 |
qapi/gen: Combine ._add_[user|system]_module
With callers to _add_system_module now explicitly using the './' prefix
to indicate a system module, there is no longer any reason to have
separate interfaces for adding system vs user modules; use a unified
interface that differentiates based on the name.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20210201193747.2169670-10-jsnow@redhat.com>
Diffstat (limited to 'scripts/qapi/events.py')
-rw-r--r-- | scripts/qapi/events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qapi/events.py b/scripts/qapi/events.py index 26faa82..079c666 100644 --- a/scripts/qapi/events.py +++ b/scripts/qapi/events.py @@ -191,7 +191,7 @@ class QAPISchemaGenEventVisitor(QAPISchemaModularCVisitor): types=types)) def visit_end(self) -> None: - self._add_system_module('./emit', ' * QAPI Events emission') + self._add_module('./emit', ' * QAPI Events emission') self._genc.preamble_add(mcgen(''' #include "qemu/osdep.h" #include "%(prefix)sqapi-emit-events.h" |