qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC/RFA PATCH] qapi: detect extra members inside struc


From: Anthony Liguori
Subject: Re: [Qemu-devel] [RFC/RFA PATCH] qapi: detect extra members inside structs
Date: Tue, 20 Mar 2012 14:33:31 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

On 03/20/2012 07:15 AM, Luiz Capitulino wrote:
So let's work through a few examples.   Today, you have to maintain a list of
commands returned from query-commands and check for set membership:

if 'query-netdev2' in commands:
     qmp.query_netdev2(foo)
else:
     qmp.query_netdev()

Pretty simple.  If we have a schema representation, we'll need to be able to
check for arguments.

Aren't we going to have the schema representation anyway? Or if we go for the
way above we are not going to have it?

We have it, and we should expose it, but we should not IMHO require deep schema introspection in order for a client to make use of new functionality.

Regards,

Anthony Liguori



reply via email to

[Prev in Thread] Current Thread [Next in Thread]