[libvirt] [libvirt-java] [PATCH 13/65] Make Device.listCapabilities return only valid array elements
Daniel P. Berrange
berrange at redhat.com
Fri Feb 21 10:41:35 UTC 2014
On Thu, Feb 13, 2014 at 04:22:21PM +0100, Claudio Bley wrote:
> The libvirt function virNodeDeviceListCaps might return fewer elements
> than requested. Take this into account and properly decode the UTF-8
> strings returned.
>
> Additionally, the given strings are freed before returning the resulting
> string array.
>
> Signed-off-by: Claudio Bley <cbley at av-test.de>
> ---
> src/main/java/org/libvirt/Device.java | 10 +++++++---
> src/main/java/org/libvirt/jna/Libvirt.java | 2 +-
> 2 files changed, 8 insertions(+), 4 deletions(-)
ACK
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