Il 21/05/2012 16:19, Anthony Liguori ha scritto:
>>
> 
> I'm not against it in principle, just in practice.  Today, checking
> whether a command exists is:
> 
> commands = qmp.query_commands()
> 
> if 'block-stream' in commands:
>     # has block-stream
> 
> I have a hard time envisioning how schema introspection can be
> reasonably implemented in a client.

schema = qmp.query_command_schema('block-stream')
if 'on-error' in schema:
    # has on-error

Paolo

Reply via email to