]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
util: string: Return element count from virStringSplit
authorPeter Krempa <pkrempa@redhat.com>
Mon, 12 May 2014 07:46:37 +0000 (09:46 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 3 Jun 2014 07:27:24 +0000 (09:27 +0200)
commit682267496b946472d85f2bb07c4576dd930e8278
tree478eebd2a00f7a35e4c9ee176cf8f71763751cff
parent1423ae296f38c5249a9bb54f2385493006636bf8
util: string: Return element count from virStringSplit

To allow using the array manipulation macros on the arrays returned by
virStringSplit we need to know the count of the elements in the array.
Modify virStringSplit to return this value, rename it and add a helper
with the old name so that we don't need to update all the code.
src/libvirt_private.syms
src/util/virstring.c
src/util/virstring.h
tests/virstringtest.c