Re: [Qemu-devel] [PATCH v2 5/6] qapi: generate list struct and visit_list for enum

2012-06-11 Thread Luiz Capitulino
On Thu, 07 Jun 2012 10:52:46 +0800 Amos Kong wrote: > On 07/06/12 08:26, Michael Roth wrote: > > On Wed, Jun 06, 2012 at 03:40:37PM -0300, Luiz Capitulino wrote: > >> On Sat, 2 Jun 2012 06:54:27 +0800 > >> Amos Kong wrote: > >> > >>> Currently, if define an 'enum' and use it in one command's da

Re: [Qemu-devel] [PATCH v2 5/6] qapi: generate list struct and visit_list for enum

2012-06-06 Thread Amos Kong
On 07/06/12 08:15, Michael Roth wrote: On Sat, Jun 02, 2012 at 06:54:27AM +0800, Amos Kong wrote: Currently, if define an 'enum' and use it in one command's data, List struct for enum could not be generated, but it's used in qmp function. For example: KeyCodesList could not be generated. qapi-

Re: [Qemu-devel] [PATCH v2 5/6] qapi: generate list struct and visit_list for enum

2012-06-06 Thread Amos Kong
On 07/06/12 08:26, Michael Roth wrote: On Wed, Jun 06, 2012 at 03:40:37PM -0300, Luiz Capitulino wrote: On Sat, 2 Jun 2012 06:54:27 +0800 Amos Kong wrote: Currently, if define an 'enum' and use it in one command's data, List struct for enum could not be generated, but it's used in qmp functi

Re: [Qemu-devel] [PATCH v2 5/6] qapi: generate list struct and visit_list for enum

2012-06-06 Thread Michael Roth
On Wed, Jun 06, 2012 at 03:40:37PM -0300, Luiz Capitulino wrote: > On Sat, 2 Jun 2012 06:54:27 +0800 > Amos Kong wrote: > > > Currently, if define an 'enum' and use it in one command's data, > > List struct for enum could not be generated, but it's used in > > qmp function. > > > > For example:

Re: [Qemu-devel] [PATCH v2 5/6] qapi: generate list struct and visit_list for enum

2012-06-06 Thread Michael Roth
On Sat, Jun 02, 2012 at 06:54:27AM +0800, Amos Kong wrote: > Currently, if define an 'enum' and use it in one command's data, > List struct for enum could not be generated, but it's used in > qmp function. > > For example: KeyCodesList could not be generated. > >>> qapi-schema.json: > { 'enum': 'K

Re: [Qemu-devel] [PATCH v2 5/6] qapi: generate list struct and visit_list for enum

2012-06-06 Thread Luiz Capitulino
On Sat, 2 Jun 2012 06:54:27 +0800 Amos Kong wrote: > Currently, if define an 'enum' and use it in one command's data, > List struct for enum could not be generated, but it's used in > qmp function. > > For example: KeyCodesList could not be generated. > >>> qapi-schema.json: > { 'enum': 'KeyCod

Re: [Qemu-devel] [PATCH v2 5/6] qapi: generate list struct and visit_list for enum

2012-06-05 Thread Amos Kong
- Original Message - > Currently, if define an 'enum' and use it in one command's data, > List struct for enum could not be generated, but it's used in > qmp function. > > For example: KeyCodesList could not be generated. > >>> qapi-schema.json: > { 'enum': 'KeyCodes', > 'data': [ 'shift

[Qemu-devel] [PATCH v2 5/6] qapi: generate list struct and visit_list for enum

2012-06-01 Thread Amos Kong
Currently, if define an 'enum' and use it in one command's data, List struct for enum could not be generated, but it's used in qmp function. For example: KeyCodesList could not be generated. >>> qapi-schema.json: { 'enum': 'KeyCodes', 'data': [ 'shift', 'alt' ... ] } { 'command': 'sendkey', 'd