On 06/08/2012 02:04 AM, Michal Privoznik wrote: > This API returns dynamically allocated array of IP addresses for > all domain interfaces. > --- > include/libvirt/libvirt.h.in | 32 +++++++++++++ > python/generator.py | 1 + > src/driver.h | 6 +++ > src/libvirt.c | 101 ++++++++++++++++++++++++++++++++++++++++++ > src/libvirt_public.syms | 5 ++ > 5 files changed, 145 insertions(+), 0 deletions(-) I still think XML may be the way to go for extensibility reasons. But if we stick with structs... > /** > + * virDomainInterfacesAddresses: > + * @dom: domain object > + * @ifaces: array of @dom interfaces > + * @ifaces_count: number of items in @ifaces Lose the ifaces_count parameter, and instead, > + * > + * Returns 0 on success, Return the number of ifaces allocated on return, as well as also guaranteeing an extra NULL pointer on the end of the array not counted in the return value. > > +LIBVIRT_0.9.13 { > + global: > + virDomainInterfacesAddresses; > +} LIBVIRT_0.9.11; This will need rebasing, but shouldn't be too hard to figure out. -- Eric Blake eblake@xxxxxxxxxx +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list