Re: [Qemu-devel] [PATCH v1 01/10] qdict: implement a qdict_crumple method for un-flattening a dict

2016-03-07 Thread Eric Blake
On 03/07/2016 08:06 AM, Daniel P. Berrange wrote: > So looking at the current usage of qdict_flatten, qdict_extract_subqdict, > qdict_array_split and qdict_array_entries, it is basically only the block > layer. > > The root cause of this usage all stems from that fact that historically > the

Re: [Qemu-devel] [PATCH v1 01/10] qdict: implement a qdict_crumple method for un-flattening a dict

2016-03-07 Thread Daniel P. Berrange
On Sat, Mar 05, 2016 at 04:15:59PM +0100, Max Reitz wrote: > On 03.03.2016 12:01, Daniel P. Berrange wrote: > > On Wed, Mar 02, 2016 at 05:13:59PM +0100, Max Reitz wrote: > >> On 19.02.2016 17:47, Daniel P. Berrange wrote: > >>> The qdict_flatten() method will take a dict whose elements are > >>>

Re: [Qemu-devel] [PATCH v1 01/10] qdict: implement a qdict_crumple method for un-flattening a dict

2016-03-05 Thread Max Reitz
On 03.03.2016 12:01, Daniel P. Berrange wrote: > On Wed, Mar 02, 2016 at 05:13:59PM +0100, Max Reitz wrote: >> On 19.02.2016 17:47, Daniel P. Berrange wrote: >>> The qdict_flatten() method will take a dict whose elements are >>> further nested dicts/lists and flatten them by concatenating >>>

Re: [Qemu-devel] [PATCH v1 01/10] qdict: implement a qdict_crumple method for un-flattening a dict

2016-03-03 Thread Daniel P. Berrange
On Wed, Mar 02, 2016 at 05:13:59PM +0100, Max Reitz wrote: > On 19.02.2016 17:47, Daniel P. Berrange wrote: > > The qdict_flatten() method will take a dict whose elements are > > further nested dicts/lists and flatten them by concatenating > > keys. > > > > The qdict_crumple() method aims todo

Re: [Qemu-devel] [PATCH v1 01/10] qdict: implement a qdict_crumple method for un-flattening a dict

2016-03-02 Thread Max Reitz
On 19.02.2016 17:47, Daniel P. Berrange wrote: > The qdict_flatten() method will take a dict whose elements are > further nested dicts/lists and flatten them by concatenating > keys. > > The qdict_crumple() method aims todo the reverse, taking a flat > qdict, and turning it into a set of nested

Re: [Qemu-devel] [PATCH v1 01/10] qdict: implement a qdict_crumple method for un-flattening a dict

2016-02-19 Thread Daniel P. Berrange
On Fri, Feb 19, 2016 at 10:01:07AM -0700, Eric Blake wrote: > On 02/19/2016 09:47 AM, Daniel P. Berrange wrote: > > The qdict_flatten() method will take a dict whose elements are > > further nested dicts/lists and flatten them by concatenating > > keys. > > > > The qdict_crumple() method aims

Re: [Qemu-devel] [PATCH v1 01/10] qdict: implement a qdict_crumple method for un-flattening a dict

2016-02-19 Thread Eric Blake
On 02/19/2016 09:47 AM, Daniel P. Berrange wrote: > The qdict_flatten() method will take a dict whose elements are > further nested dicts/lists and flatten them by concatenating > keys. > > The qdict_crumple() method aims todo the reverse, taking a flat s/todo/to do/ > qdict, and turning it

[Qemu-devel] [PATCH v1 01/10] qdict: implement a qdict_crumple method for un-flattening a dict

2016-02-19 Thread Daniel P. Berrange
The qdict_flatten() method will take a dict whose elements are further nested dicts/lists and flatten them by concatenating keys. The qdict_crumple() method aims todo the reverse, taking a flat qdict, and turning it into a set of nested dicts/lists. It will apply nesting based on the key name,