Re: [libvirt] [PATCH v2 1/4] util: string: Introduce macro for automatic string lists

2019-02-28 Thread Erik Skultety
On Wed, Feb 27, 2019 at 01:32:43PM +0100, Michal Privoznik wrote: > On 2/27/19 10:52 AM, Erik Skultety wrote: > > On Tue, Feb 26, 2019 at 04:48:23PM +0100, Peter Krempa wrote: > > > Similar to VIR_AUTOPTR, VIR_AUTOSTRINGLIST defines a list of strings > > > which will be freed if the pointer is leav

Re: [libvirt] [PATCH v2 1/4] util: string: Introduce macro for automatic string lists

2019-02-28 Thread John Ferlan
On 2/28/19 8:39 AM, Peter Krempa wrote: > On Wed, Feb 27, 2019 at 10:52:47 +0100, Erik Skultety wrote: >> On Tue, Feb 26, 2019 at 04:48:23PM +0100, Peter Krempa wrote: >>> Similar to VIR_AUTOPTR, VIR_AUTOSTRINGLIST defines a list of strings >>> which will be freed if the pointer is leaving scope

Re: [libvirt] [PATCH v2 1/4] util: string: Introduce macro for automatic string lists

2019-02-28 Thread Peter Krempa
On Wed, Feb 27, 2019 at 13:32:43 +0100, Michal Privoznik wrote: > On 2/27/19 10:52 AM, Erik Skultety wrote: > > On Tue, Feb 26, 2019 at 04:48:23PM +0100, Peter Krempa wrote: > > > Similar to VIR_AUTOPTR, VIR_AUTOSTRINGLIST defines a list of strings > > > which will be freed if the pointer is leavin

Re: [libvirt] [PATCH v2 1/4] util: string: Introduce macro for automatic string lists

2019-02-28 Thread Peter Krempa
On Wed, Feb 27, 2019 at 10:52:47 +0100, Erik Skultety wrote: > On Tue, Feb 26, 2019 at 04:48:23PM +0100, Peter Krempa wrote: > > Similar to VIR_AUTOPTR, VIR_AUTOSTRINGLIST defines a list of strings > > which will be freed if the pointer is leaving scope. > > > > Signed-off-by: Peter Krempa > > ---

Re: [libvirt] [PATCH v2 1/4] util: string: Introduce macro for automatic string lists

2019-02-27 Thread Michal Privoznik
On 2/27/19 10:52 AM, Erik Skultety wrote: On Tue, Feb 26, 2019 at 04:48:23PM +0100, Peter Krempa wrote: Similar to VIR_AUTOPTR, VIR_AUTOSTRINGLIST defines a list of strings which will be freed if the pointer is leaving scope. Signed-off-by: Peter Krempa --- src/libvirt_private.syms | 1 +

Re: [libvirt] [PATCH v2 1/4] util: string: Introduce macro for automatic string lists

2019-02-27 Thread Erik Skultety
On Tue, Feb 26, 2019 at 04:48:23PM +0100, Peter Krempa wrote: > Similar to VIR_AUTOPTR, VIR_AUTOSTRINGLIST defines a list of strings > which will be freed if the pointer is leaving scope. > > Signed-off-by: Peter Krempa > --- > src/libvirt_private.syms | 1 + > src/util/virstring.c | 10

[libvirt] [PATCH v2 1/4] util: string: Introduce macro for automatic string lists

2019-02-26 Thread Peter Krempa
Similar to VIR_AUTOPTR, VIR_AUTOSTRINGLIST defines a list of strings which will be freed if the pointer is leaving scope. Signed-off-by: Peter Krempa --- src/libvirt_private.syms | 1 + src/util/virstring.c | 10 ++ src/util/virstring.h | 10 ++ 3 files changed, 21 inser