Re: [Qemu-devel] [PATCH V13 2/6] avoid duplication of default value in QemuOpts

2013-05-06 Thread Markus Armbruster
Dong Xu Wang writes: > According Markus's comments, his patch will move the default value entirely > to QemuOptDesc. > > When getting the value of an option that hasn't been set, and > QemuOptDesc has a default value, return that. Else, behave as > before. > > Example: qemu_opt_get_number(opts,

[Qemu-devel] [PATCH V13 2/6] avoid duplication of default value in QemuOpts

2013-04-09 Thread Dong Xu Wang
According Markus's comments, his patch will move the default value entirely to QemuOptDesc. When getting the value of an option that hasn't been set, and QemuOptDesc has a default value, return that. Else, behave as before. Example: qemu_opt_get_number(opts, "foo", 42) If "foo" has been set