OSDN Git Service

qapi: Flatten object-add
authorKevin Wolf <kwolf@redhat.com>
Mon, 24 Feb 2020 14:29:55 +0000 (15:29 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Mar 2020 16:21:27 +0000 (17:21 +0100)
commit5f07c4d60d091320186e7b0edaf9ed2cc16b2d1e
tree26dee459d8fc099c99ba98d020ee9820df7df9e1
parent14837c6493d42f5f85d910935654725217a5770b
qapi: Flatten object-add

Mapping object-add to the command line as is doesn't result in nice
syntax because of the nesting introduced with 'props'. This becomes
nicer and more consistent with device_add and netdev_add when we accept
properties for the object on the top level instead.

'props' is still accepted after this patch, but marked as deprecated.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200224143008.13362-8-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
docs/system/deprecated.rst
hw/block/xen-block.c
include/qom/object_interfaces.h
monitor/misc.c
qapi/qom.json
qom/qom-qmp-cmds.c