Skip to content
Commit dd39c544 authored by Igor Mammedov's avatar Igor Mammedov Committed by Michael Roth
Browse files

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: default avatarIgor Mammedov <imammedo@redhat.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Message-Id: <1484052795-158195-3-git-send-email-imammedo@redhat.com>
Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
(cherry picked from commit 3a464105)
* functional dep for 9a6d1acb
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 879b6454
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment