aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/events.py
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2021-02-01 14:37:40 -0500
committerMarkus Armbruster <armbru@redhat.com>2021-02-08 14:15:58 +0100
commit4ab0ff6da0828e6499d633a4801f4e6b6e96d21b (patch)
treea2d52af7466fa606c099ae8d62dad7099e1fe8da /scripts/qapi/events.py
parente2bbc4eaa7f0d8efb8f49705bae0fecd3356f417 (diff)
downloadqemu-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.py2
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"