mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
ui: Factor out qmp_add_client() parts and move to ui/ui-qmp-cmds.c
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230109190321.1056914-11-armbru@redhat.com>
This commit is contained in:
parent
9949b06e2e
commit
3125af295e
3 changed files with 100 additions and 41 deletions
26
include/monitor/qmp-helpers.h
Normal file
26
include/monitor/qmp-helpers.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* QMP command helpers
|
||||
*
|
||||
* Copyright (c) 2022 Red Hat Inc.
|
||||
*
|
||||
* Authors:
|
||||
* Markus Armbruster <armbru@redhat.com>
|
||||
*
|
||||
* This work is licensed under the terms of the GNU GPL, version 2. See
|
||||
* the COPYING file in the top-level directory.
|
||||
*/
|
||||
|
||||
#ifndef MONITOR_QMP_HELPERS_H
|
||||
|
||||
bool qmp_add_client_spice(int fd, bool has_skipauth, bool skipauth,
|
||||
bool has_tls, bool tls, Error **errp);
|
||||
#ifdef CONFIG_VNC
|
||||
bool qmp_add_client_vnc(int fd, bool has_skipauth, bool skipauth,
|
||||
bool has_tls, bool tls, Error **errp);
|
||||
#endif
|
||||
#ifdef CONFIG_DBUS_DISPLAY
|
||||
bool qmp_add_client_dbus_display(int fd, bool has_skipauth, bool skipauth,
|
||||
bool has_tls, bool tls, Error **errp);
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue