Re: [PATCH 01/16] virml: Introduce VIR_XML_PROP_NONNEGATIVE flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  src/util/virxml.c | 7 +++++++
>  src/util/virxml.h | 3 +++
>  2 files changed, 10 insertions(+)

Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux