]> xenbits.xensource.com Git - libvirt.git/commit
util: xml: Introduce virXPathU(Int|LongLong)Base
authorPeter Krempa <pkrempa@redhat.com>
Wed, 5 Oct 2022 07:17:29 +0000 (09:17 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 2 Nov 2022 08:20:57 +0000 (09:20 +0100)
commit7160805e76509ca5c237609031fb034a38418799
treec261222ec63c5312217d897775e9d28786d9b60a
parent90cb594cf6b67a940fa7892da8b4ed7aae546d49
util: xml: Introduce virXPathU(Int|LongLong)Base

In an effort to remove the 'Long' variants of XPath number fetching
functions we need a way to replace the hex number parsing capability.

The new helpers are created from the originals by adding a 'base'
argument and keeping the original function as a wrapper to pass 10.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libvirt_private.syms
src/util/virxml.c
src/util/virxml.h