Re: [libvirt] [PATCH v3 1/2] util: add virStringParseYesNo()

2019-03-13 Thread Erik Skultety
On Wed, Mar 13, 2019 at 03:30:10PM +0900, Shotaro Gotanda wrote: > This function parse the string "yes" into bool true and > "no" into false, and returns 0. > If the string is anything other than "yes|no", > this function returns -1. > > Signed-off-by: Shotaro Gotanda > --- > src/util/virstring.c

[libvirt] [PATCH v3 1/2] util: add virStringParseYesNo()

2019-03-12 Thread Shotaro Gotanda
This function parse the string "yes" into bool true and "no" into false, and returns 0. If the string is anything other than "yes|no", this function returns -1. Signed-off-by: Shotaro Gotanda --- src/util/virstring.c | 21 + src/util/virstring.h | 3 +++ 2 files changed, 24