Re: [Qemu-devel] [PATCH v5 04/22] qapi: extend qdict_flatten() for QLists

2013-12-13 Thread Eric Blake
On 12/13/2013 10:10 AM, Max Reitz wrote: > Reversing qdict_array_split(), qdict_flatten() should flatten QLists as > well by interpreting them as QDicts where every entry's key is its > index. > > This allows bringing QDicts with QLists from QMP commands to the same > form as they would be given a

Re: [Qemu-devel] [PATCH v5 04/22] qapi: extend qdict_flatten() for QLists

2013-12-13 Thread Kevin Wolf
Am 13.12.2013 um 18:10 hat Max Reitz geschrieben: > Reversing qdict_array_split(), qdict_flatten() should flatten QLists as > well by interpreting them as QDicts where every entry's key is its > index. > > This allows bringing QDicts with QLists from QMP commands to the same > form as they would b

[Qemu-devel] [PATCH v5 04/22] qapi: extend qdict_flatten() for QLists

2013-12-13 Thread Max Reitz
Reversing qdict_array_split(), qdict_flatten() should flatten QLists as well by interpreting them as QDicts where every entry's key is its index. This allows bringing QDicts with QLists from QMP commands to the same form as they would be given as command-line options, thereby allowing them to be p