diff options
| author | Paolo Bonzini | 2013-12-20 23:21:09 +0100 |
|---|---|---|
| committer | Luiz Capitulino | 2014-01-06 19:45:47 +0100 |
| commit | ab2d0531b2e41bc5fd8f8e59405f135986599476 (patch) | |
| tree | f40c89a272948494054e57f8096253a5f50a0bd4 /qapi-schema.json | |
| parent | qom: catch errors in object_property_add_child (diff) | |
| download | qemu-ab2d0531b2e41bc5fd8f8e59405f135986599476.tar.gz qemu-ab2d0531b2e41bc5fd8f8e59405f135986599476.tar.xz qemu-ab2d0531b2e41bc5fd8f8e59405f135986599476.zip | |
monitor: add object-del (QMP) and object_del (HMP) command
These two commands invoke the "unparent" method of Object.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Tested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qapi-schema.json')
| -rw-r--r-- | qapi-schema.json | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/qapi-schema.json b/qapi-schema.json index c3c939c8c3..af3a83bf0b 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -2759,6 +2759,20 @@ { 'command': 'netdev_del', 'data': {'id': 'str'} } ## +# @object-del: +# +# Remove a QOM object. +# +# @id: the name of the QOM object to remove +# +# Returns: Nothing on success +# Error if @id is not a valid id for a QOM object +# +# Since: 2.0 +## +{ 'command': 'object-del', 'data': {'id': 'str'} } + +## # @NetdevNoneOptions # # Use it alone to have zero network devices. |
