Re: [Qemu-devel] [RFC 8/8] slirp: convert save/load function to visitor interface

2011-09-30 Thread Michael Roth
On Fri, 30 Sep 2011 08:39:49 -0500, Anthony Liguori wrote: > On 09/19/2011 09:41 AM, Michael Roth wrote: > > Where possible common routines are used for both input and output, thus > > save on lines of code, theoretically. The added lines here are mostly > > due to extra logic for each save/load

Re: [Qemu-devel] [RFC 8/8] slirp: convert save/load function to visitor interface

2011-09-30 Thread Anthony Liguori
On 09/19/2011 09:41 AM, Michael Roth wrote: Where possible common routines are used for both input and output, thus save on lines of code, theoretically. The added lines here are mostly due to extra logic for each save/load routine to manipulate strings into a unique field name for each saved fie

[Qemu-devel] [RFC 8/8] slirp: convert save/load function to visitor interface

2011-09-19 Thread Michael Roth
Where possible common routines are used for both input and output, thus save on lines of code, theoretically. The added lines here are mostly due to extra logic for each save/load routine to manipulate strings into a unique field name for each saved field, and in some cases a few extra Visitor call