monitor/qmp-cmds.c: Don't include ui/vnc.h
commitfb246f05909c57341aec9a3ba42f1908b9cbfde6
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Jan 2021 16:12:00 +0000 (4 16:12 +0000)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 4 Feb 2021 12:20:28 +0000 (4 13:20 +0100)
tree49b9afd116d97a2df058744bc8d662dad783676d
parentdb754f8ccaf2f073c9aed46a4389e9c0c2080399
monitor/qmp-cmds.c: Don't include ui/vnc.h

The qmp-cmds.c file currently includes ui/vnc.h, which (being located
in the ui/ directory rather than include) is really supposed to be
for use only by the ui subsystem.  In fact the function prototypes we
need (vnc_display_password(), etc) are all declared in
include/ui/console.h, so we can switch to including that instead.

(ui/vnc.h includes include/ui/console.h, so this change strictly
reduces the quantity of headers qmp-cmds.c pulls in.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20210104161200.15068-1-peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
monitor/qmp-cmds.c