diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-09-16 13:06:13 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2015-09-21 09:56:48 +0200 |
commit | 7b24626cd019ed5084c8e3370999176a1ebd44be (patch) | |
tree | 6cf99c284a2252e921cf328ecc954411cd8afeb8 /scripts | |
parent | efd2eaa6c2992c214a13f102b6ddd4dca4697fb3 (diff) | |
download | qemu-7b24626cd019ed5084c8e3370999176a1ebd44be.zip qemu-7b24626cd019ed5084c8e3370999176a1ebd44be.tar.gz qemu-7b24626cd019ed5084c8e3370999176a1ebd44be.tar.bz2 |
qapi-event: Eliminate global variable event_enum_value
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1442401589-24189-11-git-send-email-armbru@redhat.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/qapi-event.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/qapi-event.py b/scripts/qapi-event.py index aed45d6..537da17 100644 --- a/scripts/qapi-event.py +++ b/scripts/qapi-event.py @@ -137,7 +137,7 @@ def generate_event_implement(api_name, event_name, params): emit(%(event_enum_value)s, qmp, &local_err); """, - event_enum_value = event_enum_value) + event_enum_value = c_enum_const(event_enum_name, event_name)) # step 5: clean up if params: @@ -223,7 +223,6 @@ for expr in exprs: fdecl.write(ret) # We need an enum value per event - event_enum_value = c_enum_const(event_enum_name, event_name) ret = generate_event_implement(api_name, event_name, params) fdef.write(ret) |