diff options
author | Markus Armbruster | 2015-05-14 14:50:50 +0200 |
---|---|---|
committer | Markus Armbruster | 2015-05-14 18:20:51 +0200 |
commit | 7c81c61f9c2274f66ba947eafd9618d60da838a6 (patch) | |
tree | aef903dac8e222731ff992e8cbe7b9473c9f527a /scripts/qapi-event.py | |
parent | qapi: Rename _generate_enum_string() to camel_to_upper() (diff) | |
download | qemu-7c81c61f9c2274f66ba947eafd9618d60da838a6.tar.gz qemu-7c81c61f9c2274f66ba947eafd9618d60da838a6.tar.xz qemu-7c81c61f9c2274f66ba947eafd9618d60da838a6.zip |
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>
Diffstat (limited to 'scripts/qapi-event.py')
-rw-r--r-- | scripts/qapi-event.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/qapi-event.py b/scripts/qapi-event.py index c4612e396e..a7e0033cc1 100644 --- a/scripts/qapi-event.py +++ b/scripts/qapi-event.py @@ -177,7 +177,7 @@ typedef enum %(event_enum_name)s event_enum_name = event_enum_name) # append automatically generated _MAX value - enum_max_value = generate_enum_full_value(event_enum_name, "MAX") + enum_max_value = c_enum_const(event_enum_name, "MAX") enum_values = event_enum_values + [ enum_max_value ] i = 0 @@ -343,8 +343,7 @@ for expr in exprs: fdecl.write(ret) # We need an enum value per event - event_enum_value = generate_enum_full_value(event_enum_name, - event_name) + event_enum_value = c_enum_const(event_enum_name, event_name) ret = generate_event_implement(api_name, event_name, params) fdef.write(ret) |