From a425d23f8fad482f7792745036896eb2f72330de Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sat, 19 Nov 2011 10:22:43 +0100 Subject: qemu-char: rename qemu_chr_event to qemu_chr_be_event and make it public Rename qemu_chr_event to qemu_chr_be_event, since it is only to be called by backends and make it public so that it can be used by chardev code which lives outside of qemu-char.c Signed-off-by: Hans de Goede Signed-off-by: Anthony Liguori --- qemu-char.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'qemu-char.h') diff --git a/qemu-char.h b/qemu-char.h index 7efcf99f53..8ca1e2d54e 100644 --- a/qemu-char.h +++ b/qemu-char.h @@ -212,6 +212,16 @@ int qemu_chr_be_can_write(CharDriverState *s); */ void qemu_chr_be_write(CharDriverState *s, uint8_t *buf, int len); + +/** + * @qemu_chr_be_event: + * + * Send an event from the back end to the front end. + * + * @event the event to send + */ +void qemu_chr_be_event(CharDriverState *s, int event); + void qemu_chr_add_handlers(CharDriverState *s, IOCanReadHandler *fd_can_read, IOReadHandler *fd_read, -- cgit v1.2.3-70-g09d2