[libvirt PATCH v6 3/8] util: add virXMLPropUIntDefault() function
Ján Tomko
jtomko at redhat.com
Fri Mar 3 09:20:11 UTC 2023
On a Wednesday in 2023, Jonathon Jongsma wrote:
>This function allows you to specify a default value to return if the
>property is not found rather than always setting *result to 0.
>
>Signed-off-by: Jonathon Jongsma <jjongsma at redhat.com>
>---
> src/conf/cpu_conf.c | 9 +++------
> src/conf/domain_conf.c | 6 +-----
> src/conf/numa_conf.c | 7 +------
> src/util/virxml.c | 29 ++++++++++++++++++++++++++++-
> src/util/virxml.h | 9 +++++++++
> 5 files changed, 42 insertions(+), 18 deletions(-)
>
Reviewed-by: Ján Tomko <jtomko at redhat.com>
Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20230303/f20964c1/attachment.sig>
More information about the libvir-list
mailing list