Il 07/03/2014 03:56, Hu Tao ha scritto:
-obj = object_new(type);
-if (qemu_opt_foreach(opts, object_set_property, obj, 1) < 0) {
-object_unref(obj);
-return -1;
+qdict_del(pdict, "qom-type");
+visit_type_str(opts_get_visitor(ov), &type, "qom-type", &err);
+if (
On Tue, Mar 04, 2014 at 03:00:37PM +0100, Paolo Bonzini wrote:
> Follow the lines of the HMP implementation, using OptsVisitor
> to parse the options. This gives access to OptsVisitor's
> rich parsing of integer lists.
>
> Signed-off-by: Paolo Bonzini
> ---
> vl.c | 87
> ++
Follow the lines of the HMP implementation, using OptsVisitor
to parse the options. This gives access to OptsVisitor's
rich parsing of integer lists.
Signed-off-by: Paolo Bonzini
---
vl.c | 87 +++-
1 file changed, 35 insertions(+)