mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-16 14:41:55 -06:00
char: remove unused qemu_chr_fe_event
I introduced this function in d61b0c9a2f
, but it isn't
used. Furthermore, it was incomplete, as it would need to translate QEMU
chr events to Spice port events.
(presumably it was used in the follow-up NBD-spice series that was not
completed: http://lists.gnu.org/archive/html/qemu-devel/2013-11/msg02024.html)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20161022100951.19562-4-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
8c260cb13c
commit
58fa54947e
3 changed files with 0 additions and 30 deletions
|
@ -103,7 +103,6 @@ struct CharDriverState {
|
||||||
void (*chr_accept_input)(struct CharDriverState *chr);
|
void (*chr_accept_input)(struct CharDriverState *chr);
|
||||||
void (*chr_set_echo)(struct CharDriverState *chr, bool echo);
|
void (*chr_set_echo)(struct CharDriverState *chr, bool echo);
|
||||||
void (*chr_set_fe_open)(struct CharDriverState *chr, int fe_open);
|
void (*chr_set_fe_open)(struct CharDriverState *chr, int fe_open);
|
||||||
void (*chr_fe_event)(struct CharDriverState *chr, int event);
|
|
||||||
CharBackend *be;
|
CharBackend *be;
|
||||||
void *opaque;
|
void *opaque;
|
||||||
char *label;
|
char *label;
|
||||||
|
@ -238,16 +237,6 @@ void qemu_chr_fe_set_echo(CharBackend *be, bool echo);
|
||||||
*/
|
*/
|
||||||
void qemu_chr_fe_set_open(CharBackend *be, int fe_open);
|
void qemu_chr_fe_set_open(CharBackend *be, int fe_open);
|
||||||
|
|
||||||
/**
|
|
||||||
* @qemu_chr_fe_event:
|
|
||||||
*
|
|
||||||
* Send an event from the front end to the back end. It does nothing
|
|
||||||
* without associated CharDriver.
|
|
||||||
*
|
|
||||||
* @event the event to send
|
|
||||||
*/
|
|
||||||
void qemu_chr_fe_event(CharBackend *be, int event);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @qemu_chr_fe_printf:
|
* @qemu_chr_fe_printf:
|
||||||
*
|
*
|
||||||
|
|
|
@ -4226,15 +4226,6 @@ void qemu_chr_fe_set_open(CharBackend *be, int fe_open)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void qemu_chr_fe_event(CharBackend *be, int event)
|
|
||||||
{
|
|
||||||
CharDriverState *chr = be->chr;
|
|
||||||
|
|
||||||
if (chr && chr->chr_fe_event) {
|
|
||||||
chr->chr_fe_event(chr, event);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
guint qemu_chr_fe_add_watch(CharBackend *be, GIOCondition cond,
|
guint qemu_chr_fe_add_watch(CharBackend *be, GIOCondition cond,
|
||||||
GIOFunc func, void *user_data)
|
GIOFunc func, void *user_data)
|
||||||
{
|
{
|
||||||
|
|
|
@ -236,15 +236,6 @@ static void spice_port_set_fe_open(struct CharDriverState *chr, int fe_open)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void spice_chr_fe_event(struct CharDriverState *chr, int event)
|
|
||||||
{
|
|
||||||
#if SPICE_SERVER_VERSION >= 0x000c02
|
|
||||||
SpiceCharDriver *s = chr->opaque;
|
|
||||||
|
|
||||||
spice_server_port_event(&s->sin, event);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
static void print_allowed_subtypes(void)
|
static void print_allowed_subtypes(void)
|
||||||
{
|
{
|
||||||
const char** psubtype;
|
const char** psubtype;
|
||||||
|
@ -292,7 +283,6 @@ static CharDriverState *chr_open(const char *subtype,
|
||||||
chr->chr_free = spice_chr_free;
|
chr->chr_free = spice_chr_free;
|
||||||
chr->chr_set_fe_open = set_fe_open;
|
chr->chr_set_fe_open = set_fe_open;
|
||||||
chr->explicit_be_open = true;
|
chr->explicit_be_open = true;
|
||||||
chr->chr_fe_event = spice_chr_fe_event;
|
|
||||||
chr->chr_accept_input = spice_chr_accept_input;
|
chr->chr_accept_input = spice_chr_accept_input;
|
||||||
|
|
||||||
QLIST_INSERT_HEAD(&spice_chars, s, next);
|
QLIST_INSERT_HEAD(&spice_chars, s, next);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue