Re: [libvirt] [PATCH 04/23] util: add VIR_AUTOSTRUCT for directly calling a struct free function

2019-07-11 Thread Daniel P . Berrangé
On Wed, Jul 10, 2019 at 05:32:16PM +0200, Ján Tomko wrote: > On Thu, Jun 27, 2019 at 10:54:33AM +0100, Daniel P. Berrangé wrote: > > The current VIR_AUTOPTR macro assumes that the struct needs to have a > > auto-free function auto-generated to call the real free function. > > > > The new VIR_AUTOS

Re: [libvirt] [PATCH 04/23] util: add VIR_AUTOSTRUCT for directly calling a struct free function

2019-07-10 Thread Ján Tomko
On Thu, Jun 27, 2019 at 10:54:33AM +0100, Daniel P. Berrangé wrote: The current VIR_AUTOPTR macro assumes that the struct needs to have a auto-free function auto-generated to call the real free function. The new VIR_AUTOSTRUCT macro allows for structs which already have a free function which tak

[libvirt] [PATCH 04/23] util: add VIR_AUTOSTRUCT for directly calling a struct free function

2019-06-27 Thread Daniel P . Berrangé
The current VIR_AUTOPTR macro assumes that the struct needs to have a auto-free function auto-generated to call the real free function. The new VIR_AUTOSTRUCT macro allows for structs which already have a free function which takes a pointer to a pointer to the struct and can thus be used directly