qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v5 5/7] qdev: make get_pointer() handle temporar


From: Igor Mammedov
Subject: Re: [Qemu-devel] [PATCH v5 5/7] qdev: make get_pointer() handle temporary strings
Date: Mon, 3 Mar 2014 13:43:09 +0100

On Mon, 3 Mar 2014 10:41:30 +0100
Stefan Hajnoczi <address@hidden> wrote:

> On Fri, Feb 28, 2014 at 05:49:09PM +0100, Andreas Färber wrote:
> > Am 28.02.2014 16:18, schrieb Stefan Hajnoczi:
> > > From: Igor Mammedov <address@hidden>
> > > 
> > > get_pointer()'s print() callback might return a heap allocated
> > > string, to avoid adding dedicated get_pointer_foo for this case
> > > convert current print() callbacks to return temporary heap
> > > allocated string and make get_pointer() free it.
> > > 
> > > Signed-off-by: Igor Mammedov <address@hidden>
> > > Signed-off-by: Stefan Hajnoczi <address@hidden>
> > > ---
> > >  hw/core/qdev-properties-system.c | 19 +++++++++++--------
> > >  1 file changed, 11 insertions(+), 8 deletions(-)
> > 
> > Not aware of the history of this patch (not CC'ed?) but looks okay,
> > 
> > Reviewed-by: Andreas Färber <address@hidden>
> > 
> > Do we have any users outside of this series?
> 
> The patch comes from Igor originally so maybe he has future patches that
> will use it.
>
> Stefan

I don't have other users/plans to use it.
Patch was suggested as alternative to adding a new API:
 http://lists.gnu.org/archive/html/qemu-devel/2014-02/msg04704.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]