|
| From: | Amos Kong |
| Subject: | Re: [Qemu-devel] RFC: Full introspection support for QMP (with draft patch) |
| Date: | Fri, 7 Jun 2013 18:17:26 +0800 |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Fri, Jun 07, 2013 at 06:12:30PM +0800, Amos Kong wrote:
> Sent out a draft patch in the end of this week. It doesn't support:
> * output all stuffs in one shot.
> * introspect event
> * provide metadata date
>
> How can we define a dynamic dict in qmp-schema.json ?
>
> Currently I just output the raw json dict by a string, Libvirt needs
> parse two times, convert the string to json format.
>
> qmp-schema.h: auto generated head file by qapi script
>
> Attached some examples.
> * query-qmp-schema-no-param.txt
{'execute': 'query-qmp-schema'}
> * query-qmp-schema-filter-by-name.txt
{"execute": "query-qmp-schema", "arguments": { "name" : "query-name"}}
> * query-qmp-schema-filter-all-command.txt
{'execute': 'query-qmp-schema', 'arguments': {'type': 'command'}}
> * query-qmp-schema-filter-all-type.txt
{'execute': 'query-qmp-schema', 'arguments': {'type': 'type'}}
> * query-qmp-schema-filter-all-enum.txt
{'execute': 'query-qmp-schema', 'arguments': { 'type': 'enum'}}
query-qmp-schema-no-param.txt
Description: Text document
query-qmp-schema-filter-by-name.txt
Description: Text document
query-qmp-schema-filter-all-command.txt
Description: Text document
query-qmp-schema-filter-all-enum.txt
Description: Text document
query-qmp-schema-filter-all-type.txt
Description: Text document
| [Prev in Thread] | Current Thread | [Next in Thread] |