]> xenbits.xensource.com Git - libvirt.git/commit
util: typedparam: Introduce virTypedParamListAddUnsigned
authorPeter Krempa <pkrempa@redhat.com>
Tue, 18 Apr 2023 11:30:02 +0000 (13:30 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 May 2023 12:32:46 +0000 (14:32 +0200)
commite280e83bff3ae427e2cf0785f71968cbb958fe3d
tree596de4994d9269b075fa31d95e44bf78401433a3
parentf9f40a6d4bb81bb1f0b6f4eb378dfb247a9b281c
util: typedparam: Introduce virTypedParamListAddUnsigned

The new helper adds a unsigned value, stored as _UINT if it fits into
the type and stored as _ULLONG otherwise.

This is useful for the statistics code which is quite tolerant to
changes in type in cases when we'll need more range for the value.

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