Re: [Qemu-devel] Re: [PATCH 3/8] Add QBuffer

2010-05-18 Thread Avi Kivity
On 05/18/2010 03:27 PM, Markus Armbruster wrote: Surely the schema has to describe the type as well? If it does, you can use the schema to generate a classes at compile time. Doesn't that tie you to a specific version of QMP at compile-time? The client needs to ignore anything n

Re: [Qemu-devel] Re: [PATCH 3/8] Add QBuffer

2010-05-18 Thread Markus Armbruster
Anthony Liguori writes: > On 05/17/2010 02:45 AM, Avi Kivity wrote: >> On 05/17/2010 10:40 AM, Jan Kiszka wrote: >>> The alternative is to have a schema. Sun RPC/XDR doesn't carry any type information (you can't even distinguish between a number and text) yet C clients h

Re: [Qemu-devel] Re: [PATCH 3/8] Add QBuffer

2010-05-18 Thread Markus Armbruster
Jan Kiszka writes: > Avi Kivity wrote: >> On 05/17/2010 10:57 AM, Jan Kiszka wrote: >>> Avi Kivity wrote: >>> On 05/17/2010 10:40 AM, Jan Kiszka wrote: >> The alternative is to have a schema. Sun RPC/XDR doesn't carry any type >> information (you can't even distinguis