Re: [PATCH v3 0/2] Add function for XML yes|no string handling

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

 



On 3/13/19 2:30 AM, Shotaro Gotanda wrote:
> Changes since v2:
> - adjust the code to the coding guideline
> 
> 
> Shotaro Gotanda (2):
>   util: add virStringParseYesNo()
>   conf: Use virStringParseYesNo()
> 
>  src/conf/domain_conf.c | 30 +++++-------------------------
>  src/conf/secret_conf.c | 12 ++----------
>  src/util/virstring.c   | 21 +++++++++++++++++++++
>  src/util/virstring.h   |  3 +++
>  4 files changed, 31 insertions(+), 35 deletions(-)
> 

FYI I updated the bitesizedtask wiki page to describe more cases we can
use it. Most of the remaining ones are cases where we only check for
"yes", so everything else is implicitly false. In that case if YesNo
errors we should just set the value to false and move on

https://wiki.libvirt.org/page/BiteSizedTasks#More_usage_of_virStringParseYesNo

- Cole

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[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