Re: [Qemu-devel] [PATCH v2 06/10] qapi: untangle next_list

2012-03-23 Thread Michael Roth
On Thu, Mar 22, 2012 at 10:38:40PM +0100, Paolo Bonzini wrote: > Right now, the semantics of next_list are complicated. The caller must: > > * call start_list > > * call next_list for each element *including the first* > > * on the first call to next_list, the second argument should point to >

[Qemu-devel] [PATCH v2 06/10] qapi: untangle next_list

2012-03-22 Thread Paolo Bonzini
Right now, the semantics of next_list are complicated. The caller must: * call start_list * call next_list for each element *including the first* * on the first call to next_list, the second argument should point to NULL and the result is the head of the list. On subsequent calls, the second a