[libvirt] [PATCH v3 0/2] Add function for XML yes|no string handling
Cole Robinson
crobinso at redhat.com
Sat Mar 16 23:00:40 UTC 2019
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
More information about the libvir-list
mailing list