[libvirt] [PATCH 2/8] Introduce virDomainInterfaceFree API
Daniel P. Berrange
berrange at redhat.com
Fri Dec 21 15:52:39 UTC 2012
On Fri, Dec 21, 2012 at 04:49:37PM +0100, Michal Privoznik wrote:
> This is just a free function for array of virDomainInterfacePtr as
> returned by virDomainInterfacesAddresses API.
> ---
> include/libvirt/libvirt.h.in | 3 +++
> python/generator.py | 1 +
> src/libvirt.c | 31 +++++++++++++++++++++++++++++++
> src/libvirt_public.syms | 1 +
> 4 files changed, 36 insertions(+)
>
> diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in
> index 3eb7ced..d40c4f8 100644
> --- a/include/libvirt/libvirt.h.in
> +++ b/include/libvirt/libvirt.h.in
> @@ -4613,6 +4613,9 @@ int virDomainInterfacesAddresses(virDomainPtr domain,
> unsigned int method,
> unsigned int flags);
>
> +void virDomainInterfaceFree(virDomainInterfacePtr ifaces,
> + int count);
Ewww, no. Please just have
void virDomainInterfaceFree(virDomainInterfacePtr iface);
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list