[PATCH 01/16] virml: Introduce VIR_XML_PROP_NONNEGATIVE flag

Peter Krempa pkrempa at redhat.com
Thu Jun 2 07:44:56 UTC 2022


On Thu, Jun 02, 2022 at 09:17:51 +0200, Michal Privoznik wrote:
> For easier attribute parsing we have virXMLProp*() family of
> functions. These accept flags through which a caller can pose
> some conditions onto the attribute value, for instance:
> VIR_XML_PROP_NONZERO when the attribute may not be zero, etc.
> 
> What we are missing is VIR_XML_PROP_NONNEGATIVE when the
> attribute value may be non-negative. Obviously, this flag makes
> sense only for some members of the virXMLProp*() family.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/util/virxml.c | 7 +++++++
>  src/util/virxml.h | 3 +++
>  2 files changed, 10 insertions(+)

Reviewed-by: Peter Krempa <pkrempa at redhat.com>


More information about the libvir-list mailing list