mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
qapi: Use c_enum_const() in generate_alternate_qtypes()
Missed in commit b0b5819
.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
02e20c7e59
commit
b42e91484d
2 changed files with 2 additions and 15 deletions
|
@ -180,11 +180,9 @@ const int %(name)s_qtypes[QTYPE_MAX] = {
|
|||
assert qtype, "Invalid alternate member"
|
||||
|
||||
ret += mcgen('''
|
||||
[ %(qtype)s ] = %(abbrev)s_KIND_%(enum)s,
|
||||
[ %(qtype)s ] = %(enum_const)s,
|
||||
''',
|
||||
qtype = qtype,
|
||||
abbrev = de_camel_case(name).upper(),
|
||||
enum = c_name(de_camel_case(key),False).upper())
|
||||
qtype = qtype, enum_const = c_enum_const(name + 'Kind', key))
|
||||
|
||||
ret += mcgen('''
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue