tests/qapi-schema: Document events with base don't work
When event FOO's 'data' is a struct with a base, we consider only the struct's direct members, and ignore its base. The generated qapi_event_send_foo() doesn't take arguments for base members. No such events currently exist in the QMP schema. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
422e16aac4
commit
999387782f
@ -128,6 +128,9 @@
|
|||||||
{ 'alternate': '__org.qemu_x-Alt',
|
{ 'alternate': '__org.qemu_x-Alt',
|
||||||
'data': { '__org.qemu_x-branch': 'str', 'b': '__org.qemu_x-Base' } }
|
'data': { '__org.qemu_x-branch': 'str', 'b': '__org.qemu_x-Base' } }
|
||||||
{ 'event': '__ORG.QEMU_X-EVENT', 'data': '__org.qemu_x-Struct' }
|
{ 'event': '__ORG.QEMU_X-EVENT', 'data': '__org.qemu_x-Struct' }
|
||||||
|
# FIXME generated qapi_event_send___org_qemu_x_event() has only a
|
||||||
|
# parameter for data's member __org_qemu_x_member2, none for its base
|
||||||
|
# __org.qemu_x-Base's member __org_qemu_x_member1
|
||||||
{ 'command': '__org.qemu_x-command',
|
{ 'command': '__org.qemu_x-command',
|
||||||
'data': { 'a': ['__org.qemu_x-Enum'], 'b': ['__org.qemu_x-Struct'],
|
'data': { 'a': ['__org.qemu_x-Enum'], 'b': ['__org.qemu_x-Struct'],
|
||||||
'c': '__org.qemu_x-Union2', 'd': '__org.qemu_x-Alt' },
|
'c': '__org.qemu_x-Union2', 'd': '__org.qemu_x-Alt' },
|
||||||
|
Loading…
Reference in New Issue
Block a user