Re: [Qemu-devel] [PATCH v7 2/7] option: make parse_option_bool/number non-static

2016-07-13 Thread Eric Blake
On 07/05/2016 07:11 AM, Daniel P. Berrange wrote: > The opts-visitor.c opts_type_bool() method has code for > parsing a string to set a bool value, as does the > qemu-option.c parse_option_bool() method, except it > handles fewer cases. > > To enable consistency across the codebase, extend > parse

[Qemu-devel] [PATCH v7 2/7] option: make parse_option_bool/number non-static

2016-07-05 Thread Daniel P. Berrange
The opts-visitor.c opts_type_bool() method has code for parsing a string to set a bool value, as does the qemu-option.c parse_option_bool() method, except it handles fewer cases. To enable consistency across the codebase, extend parse_option_bool() to handle "yes", "no", "y" and "n", and make it n