Daniel P. Berrange wrote:
On Fri, Oct 19, 2007 at 11:05:30AM +0100, Richard W.M. Jones wrote:Daniel Veillard wrote:These are not complex structures. It's a list of volumes, and each volume has 3 or 4 attributes (name, total size, free space, and a few flags).On Fri, Oct 19, 2007 at 09:53:27AM +0100, Richard W.M. Jones wrote:Daniel P. Berrange wrote:No, that doesn't make sense. XML for an API is a hack. It's hard toUsing structures in the public API is not in keeping with the rest ofthe libvirt APIs. We should be using XML for the main metadata descriptionof volumes & pools.I disagree with you. XML is perfectly suitable for descriptions,especially when you need extendability and you can't control the future rangeof extensions. It's not proper for 'runtime' operations, but as a way to describe complex structures I find it fills its role perfectly.They are not complex /currently/ because they are missing a lot of the metadata we will need for a complete solution.
Such as ...? Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903
Description: S/MIME Cryptographic Signature