]> git.ipfire.org Git - thirdparty/qemu.git/commit
monitor: reuse user_creatable_add_opts() instead of user_creatable_add()
authorIgor Mammedov <imammedo@redhat.com>
Tue, 10 Jan 2017 12:53:14 +0000 (13:53 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 30 Mar 2017 17:30:09 +0000 (12:30 -0500)
commitdd39c544f4136ba390d1f976f520004a3ffad7e5
tree46e1a896f8be71992aa2ec10282f1f64ca8495b2
parent879b6454be1e29241d5b7d6986adcdb95d883856
monitor: reuse user_creatable_add_opts() instead of user_creatable_add()

Simplify code by dropping ~57LOC by merging user_creatable_add()
into user_creatable_add_opts() and using the later from monitor.
Along with it allocate opts_visitor_new() once in user_creatable_add_opts().

As result we have one less API func and a more readable/simple
user_creatable_add_opts() vs user_creatable_add().

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1484052795-158195-3-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
(cherry picked from commit 3a4641054e320d8ad7e780c30010b1c1dbfc56e8)
* functional dep for 9a6d1ac
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hmp.c
include/qom/object_interfaces.h
qom/object_interfaces.c