]> git.proxmox.com Git - mirror_qemu.git/commit
qom: Add user_creatable_parse_str()
authorKevin Wolf <kwolf@redhat.com>
Fri, 19 Feb 2021 17:14:01 +0000 (18:14 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 19 Mar 2021 09:17:14 +0000 (10:17 +0100)
commitddf6dae7e34271332fbc04921d0c91ab6a009b5a
tree589d41617710da49074d54040d8555717f72e9c2
parentda0a932bbf06a71210300893eeb4d51217238b11
qom: Add user_creatable_parse_str()

The system emulator has a more complicated way of handling command line
options in that it reorders options before it processes them. This means
that parsing object options and creating the object happen at two
different points. Split the parsing part into a separate function that
can be reused by the system emulator command line.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
include/qom/object_interfaces.h
qom/object_interfaces.c