]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: virtypedparam: Introduce virTypedParamsGetUnsigned
authorPeter Krempa <pkrempa@redhat.com>
Tue, 18 Apr 2023 11:43:56 +0000 (13:43 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 May 2023 12:32:46 +0000 (14:32 +0200)
commit111eeba7a7e2ce8ede461a2131b4815c9a385b66
tree41c7d9fd6ffbe356424cad8a9e734bf7e70e4af3
parente280e83bff3ae427e2cf0785f71968cbb958fe3d
util: virtypedparam: Introduce virTypedParamsGetUnsigned

Add an internal helper for fetching a typed parameter which can be
either of the '_UINT' or '_ULONG' type and store it in a unsigned long
long variable.

Since this is an internal helper it offers less protections against
invalid use compared to those we expose as public API.

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