[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC 00/11]: QMP feature negotiation support
From: |
Daniel P. Berrange |
Subject: |
Re: [Qemu-devel] [RFC 00/11]: QMP feature negotiation support |
Date: |
Tue, 26 Jan 2010 14:29:12 +0000 |
User-agent: |
Mutt/1.4.1i |
On Tue, Jan 26, 2010 at 12:57:54PM +0000, Jamie Lokier wrote:
> Luiz Capitulino wrote:
> > capability_enable [ "foo", "bar" ]
> >
> > Now, only one command is not terrible difficult, but we would
> > have to accept an array of objects, like:
> >
> > [ { "name": "foo", "enabled": true }, { "name": "bar", "enabled": true } ]
>
> That looks like XML-itis.
>
> Why not { "foo": true, "bar": true }?
It depends on whether we think we're going to need to add more metadata
beyond just the enabled/disabled status. If we did want to add a further
item against foo & bar, then having the array of hashes makes that
extension easier becaue you add easily add more key/value pairs to
each.
Regards,
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
- [Qemu-devel] [PATCH 10/11] QError: New QERR_QMP_INVALID_MODE_COMMAND, (continued)
- [Qemu-devel] [PATCH 10/11] QError: New QERR_QMP_INVALID_MODE_COMMAND, Luiz Capitulino, 2010/01/21
- [Qemu-devel] [PATCH 11/11] QMP: Enable feature negotiation support, Luiz Capitulino, 2010/01/21
- Re: [Qemu-devel] [RFC 00/11]: QMP feature negotiation support, Markus Armbruster, 2010/01/22
- Re: [Qemu-devel] [RFC 00/11]: QMP feature negotiation support, Anthony Liguori, 2010/01/22
- Re: [Qemu-devel] [RFC 00/11]: QMP feature negotiation support, Markus Armbruster, 2010/01/25
- Re: [Qemu-devel] [RFC 00/11]: QMP feature negotiation support, Luiz Capitulino, 2010/01/26
- Re: [Qemu-devel] [RFC 00/11]: QMP feature negotiation support, Jamie Lokier, 2010/01/26
- Re: [Qemu-devel] [RFC 00/11]: QMP feature negotiation support, Luiz Capitulino, 2010/01/26
- Re: [Qemu-devel] [RFC 00/11]: QMP feature negotiation support,
Daniel P. Berrange <=
- Re: [Qemu-devel] [RFC 00/11]: QMP feature negotiation support, Jamie Lokier, 2010/01/26
- Re: [Qemu-devel] [RFC 00/11]: QMP feature negotiation support, Luiz Capitulino, 2010/01/26