]> Git Repo - qemu.git/commit
monitor: reuse user_creatable_add_opts() instead of user_creatable_add()
authorIgor Mammedov <[email protected]>
Tue, 10 Jan 2017 12:53:14 +0000 (13:53 +0100)
committerEduardo Habkost <[email protected]>
Thu, 12 Jan 2017 17:34:47 +0000 (15:34 -0200)
commit3a4641054e320d8ad7e780c30010b1c1dbfc56e8
treeada1ebe9f19ba0cf2f374e46d899b4bdfdc39013
parent8a000250f15051961fa45c737e661bc19a2978e9
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 <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Message-Id: <1484052795[email protected]>
Signed-off-by: Eduardo Habkost <[email protected]>
hmp.c
include/qom/object_interfaces.h
qom/object_interfaces.c
This page took 0.026786 seconds and 4 git commands to generate.