diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-07-01 12:59:40 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2015-09-04 15:47:13 +0200 |
commit | 016a335bd8ca624f43adbb08fa1698c29ec52a1a (patch) | |
tree | 3e5d18605738c7a54dc4c0c43eae29766295eb6e /docs | |
parent | 00dfc3b2c272d98556ec6095d56bdd8b036babf9 (diff) | |
download | qemu-016a335bd8ca624f43adbb08fa1698c29ec52a1a.tar.gz qemu-016a335bd8ca624f43adbb08fa1698c29ec52a1a.tar.bz2 qemu-016a335bd8ca624f43adbb08fa1698c29ec52a1a.zip |
qapi-event: Clean up how name of enum QAPIEvent is made
Use c_name() instead of ad hoc code. Doesn't upcase the -p prefix,
which is an improvement in my book. Unbreaks prefix containing '.',
but other funny characters remain broken. To be fixed next.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/qapi-code-gen.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/qapi-code-gen.txt b/docs/qapi-code-gen.txt index e7e7281f5b..c2ac21c889 100644 --- a/docs/qapi-code-gen.txt +++ b/docs/qapi-code-gen.txt @@ -826,7 +826,7 @@ Example: QDECREF(qmp); } - const char *EXAMPLE_QAPIEvent_lookup[] = { + const char *example_QAPIEvent_lookup[] = { "MY_EVENT", NULL, }; @@ -843,11 +843,11 @@ Example: void qapi_event_send_my_event(Error **errp); - extern const char *EXAMPLE_QAPIEvent_lookup[]; - typedef enum EXAMPLE_QAPIEvent + extern const char *example_QAPIEvent_lookup[]; + typedef enum example_QAPIEvent { EXAMPLE_QAPI_EVENT_MY_EVENT = 0, EXAMPLE_QAPI_EVENT_MAX = 1, - } EXAMPLE_QAPIEvent; + } example_QAPIEvent; #endif |