]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: add missing string->integer conversion functions
authorEric Blake <eblake@redhat.com>
Thu, 13 Jan 2011 22:09:18 +0000 (15:09 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 13 Jan 2011 22:10:40 +0000 (15:10 -0700)
commit1ff03b28e938dd0cbde076aa0875f46d0ce52d30
tree59d30dec65b6eba7353dbb2f815e76ff960da8db
parentefc892ad6f41d57d275cdc4b0f62ae5b99e360e8
util: add missing string->integer conversion functions

It was awkward having only int conversion in the virStrToLong family,
but only long conversion in the virXPath family.  Make both families
support both types.

* src/util/util.h (virStrToLong_l, virStrToLong_ul): New
prototypes.
* src/util/xml.h (virXPathInt, virXPathUInt): Likewise.
* src/util/util.c (virStrToLong_l, virStrToLong_ul): New
functions.
* src/util/xml.c (virXPathInt, virXPathUInt): Likewise.
* src/libvirt_private.syms (util.h, xml.h): Export them.
src/libvirt_private.syms
src/util/util.c
src/util/util.h
src/util/xml.c
src/util/xml.h