|
From: | Wenchao Xia |
Subject: | Re: [Qemu-devel] [PATCH 6/6] qapi: add doc for QEvent |
Date: | Tue, 22 Oct 2013 15:33:45 +0800 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 |
于 2013/10/22 14:55, Wenchao Xia 写道:
于 2013/10/22 5:00, Eric Blake 写道:On 10/21/2013 03:16 AM, Wenchao Xia wrote:Signed-off-by: Wenchao Xia <address@hidden> ---qapi-schema.json | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++1 files changed, 56 insertions(+), 0 deletions(-)Incomplete. Now that you are actually using the enum (see the spot I pointed out in 5/6), you ALSO need to change: -{ 'type': 'EventInfo', 'data': {'name': 'str'} } +{ 'type': 'EventInfo', 'data': {'name': 'QEvent'} } and make use of the enum in the QAPI documentation.I just found QEvent is a int(enum) so this change can't be done. Is there a way to tell use QEvent's correspond string? Add a new way to specify enum's correspond string automatically? for example: { 'type': 'EventInfo', 'data': {'name': '&QEvent'}
I just found visitor will do it for me automatically, so it is not a problem, sorry for the disturbing messsage.
[Prev in Thread] | Current Thread | [Next in Thread] |