Re: [libvirt] [PATCH v2 22/41] util: usb: modify virUSBDeviceListAdd to take double pointer

2018-07-27 Thread Erik Skultety
On Tue, Jul 24, 2018 at 09:22:23PM +0530, Sukrit Bhatnagar wrote: > Modify virUSBDeviceListAdd to take a double pointer to > virUSBDevicePtr as the second argument. This will enable usage > of cleanup macros upon the virUSBDevicePtr item which is to be > added to the list as it will be cleared by

[libvirt] [PATCH v2 22/41] util: usb: modify virUSBDeviceListAdd to take double pointer

2018-07-26 Thread Sukrit Bhatnagar
Modify virUSBDeviceListAdd to take a double pointer to virUSBDevicePtr as the second argument. This will enable usage of cleanup macros upon the virUSBDevicePtr item which is to be added to the list as it will be cleared by virInsertElementsN upon success. Signed-off-by: Sukrit Bhatnagar ---