]> git.proxmox.com Git - mirror_qemu.git/blobdiff - scripts/qapi-introspect.py
Merge remote-tracking branch 'remotes/jasowang/tags/net-pull-request' into staging
[mirror_qemu.git] / scripts / qapi-introspect.py
index 541644e3504171210256cad381d27acd2f3c4d45..fb72c61d026d45e30759c3b9568247212bdc8b22 100644 (file)
@@ -64,7 +64,7 @@ class QAPISchemaGenIntrospectVisitor(QAPISchemaVisitor):
         # generate C
         # TODO can generate awfully long lines
         jsons.extend(self._jsons)
-        name = prefix + 'qmp_schema_json'
+        name = c_name(prefix, protect=False) + 'qmp_schema_json'
         self.decl = mcgen('''
 extern const char %(c_name)s[];
 ''',