于 2013/10/22 5:00, Eric Blake 写道:
On 10/21/2013 03:16 AM, Wenchao Xia wrote:
Signed-off-by: Wenchao Xia <xiaw...@linux.vnet.ibm.com>
---
  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'}


Reply via email to