Re: [Qemu-devel] [PATCH v3 2/3] qapi: change qapi to convert schema json

2014-01-23 Thread Luiz Capitulino
On Thu, 23 Jan 2014 11:05:06 +0800 Amos Kong ak...@redhat.com wrote: On Wed, Jan 22, 2014 at 01:06:51PM -0500, Luiz Capitulino wrote: On Sun, 5 Jan 2014 20:02:30 +0800 Amos Kong ak...@redhat.com wrote: QMP schema is defined in a json file, it will be parsed by qapi scripts and

Re: [Qemu-devel] [PATCH v3 2/3] qapi: change qapi to convert schema json

2014-01-22 Thread Luiz Capitulino
On Sun, 5 Jan 2014 20:02:30 +0800 Amos Kong ak...@redhat.com wrote: QMP schema is defined in a json file, it will be parsed by qapi scripts and generate C files. We want to return the schema information to management, this patch converts the json file to a string table in a C head file,

Re: [Qemu-devel] [PATCH v3 2/3] qapi: change qapi to convert schema json

2014-01-22 Thread Amos Kong
On Wed, Jan 22, 2014 at 01:06:51PM -0500, Luiz Capitulino wrote: On Sun, 5 Jan 2014 20:02:30 +0800 Amos Kong ak...@redhat.com wrote: QMP schema is defined in a json file, it will be parsed by qapi scripts and generate C files. We want to return the schema information to management,

Re: [Qemu-devel] [PATCH v3 2/3] qapi: change qapi to convert schema json

2014-01-22 Thread Amos Kong
On Thu, Jan 23, 2014 at 11:05:06AM +0800, Amos Kong wrote: On Wed, Jan 22, 2014 at 01:06:51PM -0500, Luiz Capitulino wrote: On Sun, 5 Jan 2014 20:02:30 +0800 Amos Kong ak...@redhat.com wrote: do_c = False do_h = False @@ -309,11 +312,17 @@ for o, a in opts: do_h =

Re: [Qemu-devel] [PATCH v3 2/3] qapi: change qapi to convert schema json

2014-01-06 Thread Fam Zheng
On 2014年01月05日 20:02, Amos Kong wrote: QMP schema is defined in a json file, it will be parsed by qapi scripts and generate C files. We want to return the schema information to management, this patch converts the json file to a string table in a C head file, then we can use the json content in

[Qemu-devel] [PATCH v3 2/3] qapi: change qapi to convert schema json

2014-01-05 Thread Amos Kong
QMP schema is defined in a json file, it will be parsed by qapi scripts and generate C files. We want to return the schema information to management, this patch converts the json file to a string table in a C head file, then we can use the json content in QEMU code. eg: (qmp-schema.h) const

Re: [Qemu-devel] [PATCH v3 2/3] qapi: change qapi to convert schema json

2014-01-05 Thread Fam Zheng
On 2014年01月05日 20:02, Amos Kong wrote: QMP schema is defined in a json file, it will be parsed by qapi scripts and generate C files. We want to return the schema information to management, this patch converts the json file to a string table in a C head file, then we can use the json content in