On 04/19/2013 06:02 AM, Osier Yang wrote: > On 19/04/13 17:52, Amos Kong wrote: >> Libvirt doesn't have a stable way to know option support > > Actually no way now. >
>> + >> +## >> +# @ConfigSchemaInfo: >> +# >> +# Configration schema information. >> +# >> +# @option: option name >> +# >> +# @config-schema: configuration schema string of one option > > Since if no option name is specified, all the config schema is > returned, you > might want to change this comment a bit. No, this part is correct. This is an intermediate type for one option, then the QMP command returns an array of these types. > >> +# >> +# Since 1.5 >> +## >> +{ 'type': 'ConfigSchemaInfo', 'data': {'option': 'str', >> 'config-schema': 'str'} } >> + >> +## >> +# @query-config-schema >> +# >> +# Query configuration schema information of options > > And this. But here, it might make sense to call out that the default is all options, but specifying a name limits to one option. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature