mirror of
https://github.com/qemu/qemu.git
synced 2025-07-27 03:38:45 +00:00
qapi: allow a 'gen' key to suppress code generation
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
83e94fb8d5
commit
5dbee474f3
@ -405,6 +405,7 @@ def gen_command_def_prologue(prefix="", proxy=False):
|
||||
|
||||
exprs = parse_schema(sys.stdin)
|
||||
commands = filter(lambda expr: expr.has_key('command'), exprs)
|
||||
commands = filter(lambda expr: not expr.has_key('gen'), commands)
|
||||
|
||||
if dispatch_type == "sync":
|
||||
fdecl = open(h_file, 'w')
|
||||
|
@ -238,6 +238,7 @@ def generate_type_cleanup(name):
|
||||
guard=guardname(h_file)))
|
||||
|
||||
exprs = parse_schema(sys.stdin)
|
||||
exprs = filter(lambda expr: not expr.has_key('gen'), exprs)
|
||||
|
||||
for expr in exprs:
|
||||
ret = "\n"
|
||||
|
Loading…
Reference in New Issue
Block a user