Re: [Qemu-devel] new to qemu with a simple question

2017-05-25 Thread Wang Dong
On 05/24/2017 09:30 PM, Eric Blake wrote: On 05/23/2017 09:56 PM, Wang Dong wrote: Hi guys, I am new to qemu. But I need do some job in it right now. When I try read qmp code. I found a interesting part against it. Some C source code is generate from json file. I wonder why this? What is

Re: [Qemu-devel] new to qemu with a simple question

2017-05-24 Thread Eric Blake
On 05/23/2017 09:56 PM, Wang Dong wrote: > > Hi guys, > > I am new to qemu. But I need do some job in it right now. > > When I try read qmp code. I found a interesting part against it. > > Some C source code is generate from json file. > > I wonder why this? What is the benefits of this?

Re: [Qemu-devel] new to qemu with a simple question

2017-05-24 Thread Wang Dong
Thank you, Fam. On 05/24/2017 11:11 AM, Fam Zheng wrote: On Wed, 05/24 10:56, Wang Dong wrote: Some C source code is generate from json file. I wonder why this? What is the benefits of this? This allows you to concentrate on the high level semantics of the QMP API, without worrying about C

Re: [Qemu-devel] new to qemu with a simple question

2017-05-23 Thread Fam Zheng
On Wed, 05/24 10:56, Wang Dong wrote: > Some C source code is generate from json file. > > I wonder why this? What is the benefits of this? This allows you to concentrate on the high level semantics of the QMP API, without worrying about C syntax and structural code here and there. In one word,

[Qemu-devel] new to qemu with a simple question

2017-05-23 Thread Wang Dong
Hi guys, I am new to qemu. But I need do some job in it right now. When I try read qmp code. I found a interesting part against it. Some C source code is generate from json file. I wonder why this? What is the benefits of this? Thanks in advance. -- Best regards. Wang Dong