mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 12:23:53 -06:00
qapi: Rename generate_enum_full_value() to c_enum_const()
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
fa6068a1e8
commit
7c81c61f9c
4 changed files with 10 additions and 11 deletions
|
@ -960,7 +960,7 @@ def camel_to_upper(value):
|
|||
new_name += c
|
||||
return new_name.lstrip('_').upper()
|
||||
|
||||
def generate_enum_full_value(enum_name, enum_value):
|
||||
abbrev_string = camel_to_upper(enum_name)
|
||||
value_string = camel_to_upper(enum_value)
|
||||
def c_enum_const(type_name, const_name):
|
||||
abbrev_string = camel_to_upper(type_name)
|
||||
value_string = camel_to_upper(const_name)
|
||||
return "%s_%s" % (abbrev_string, value_string)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue